-- Invisible World Platform Walk Script + Up/Down Speed Controls (Mobile + PC) local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local oldGui = CoreGui:FindFirstChild("PlatformWalkGui") or playerGui:FindFirstChild("PlatformWalkGui") if oldGui then oldGui:Destroy() end local state = { enabled = false, walkSpeed = 28, upSpeed = 24, downSpeed = 24, platformY = nil, moveUp = false, moveDown = false, pinned = false, minimized = false } local platformPart = nil local originalWalkSpeed = nil local function getCharacterParts() local char = player.Character if not char then return nil end local hum = char:FindFirstChildOfClass("Humanoid") local root = char:FindFirstChild("HumanoidRootPart") if not hum or not root or hum.Health <= 0 then return nil end return char, hum, root end local function destroyPlatform() if platformPart then platformPart:Destroy() platformPart = nil end end local function createPlatform(x, y, z) destroyPlatform() local part = Instance.new("Part") part.Name = "WorldHoverPlatform" part.Anchored = true part.CanCollide = true part.Transparency = 1 part.Size = Vector3.new(4096, 4, 4096) part.Position = Vector3.new(x, y, z) part.Material = Enum.Material.SmoothPlastic part.TopSurface = Enum.SurfaceType.Smooth part.BottomSurface = Enum.SurfaceType.Smooth local parentOk = pcall(function() part.Parent = workspace end) if not parentOk then part.Parent = workspace:FindFirstChildOfClass("Folder") or workspace end platformPart = part return part end local function getFeetLevel(hum, root) local hipOffset = (hum and hum.HipHeight > 0 and hum.HipHeight or 2) + (root.Size.Y * 0.5) return root.Position.Y - hipOffset - (platformPart and (platformPart.Size.Y * 0.5) or 2) end local function setMode(active) state.enabled = active local char, hum, root = getCharacterParts() if active then if hum then originalWalkSpeed = hum.WalkSpeed hum.WalkSpeed = state.walkSpeed end if root then local centerY = getFeetLevel(hum, root) state.platformY = centerY createPlatform(root.Position.X, centerY, root.Position.Z) end else state.moveUp = false state.moveDown = false state.platformY = nil destroyPlatform() if hum and originalWalkSpeed then hum.WalkSpeed = originalWalkSpeed end end end player.CharacterAdded:Connect(function(char) state.enabled = false state.moveUp = false state.moveDown = false state.platformY = nil destroyPlatform() local hum = char:WaitForChild("Humanoid", 5) if hum then originalWalkSpeed = hum.WalkSpeed end end) RunService.Heartbeat:Connect(function(dt) if not state.enabled then return end local char, hum, root = getCharacterParts() if not root or not hum then setMode(false) return end if hum.WalkSpeed ~= state.walkSpeed then hum.WalkSpeed = state.walkSpeed end if not platformPart or platformPart.Parent == nil then local centerY = state.platformY or getFeetLevel(hum, root) createPlatform(root.Position.X, centerY, root.Position.Z) end if state.platformY == nil then state.platformY = getFeetLevel(hum, root) end local deltaY = 0 if state.moveUp and not state.moveDown then deltaY = state.upSpeed * dt elseif state.moveDown and not state.moveUp then deltaY = -state.downSpeed * dt end if deltaY ~= 0 then state.platformY += deltaY root.CFrame = root.CFrame + Vector3.new(0, deltaY, 0) root.AssemblyLinearVelocity = Vector3.new(root.AssemblyLinearVelocity.X, 0, root.AssemblyLinearVelocity.Z) end platformPart.CFrame = CFrame.new(root.Position.X, state.platformY, root.Position.Z) end) -- ==================== GUI ==================== local FULL_HEIGHT = 242 local MIN_HEIGHT = 28 local screenGui = Instance.new("ScreenGui") screenGui.Name = "PlatformWalkGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling local parentOk = pcall(function() screenGui.Parent = CoreGui end) if not parentOk then screenGui.Parent = playerGui end local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 232, 0, FULL_HEIGHT) mainFrame.Position = UDim2.new(0.05, 0, 0.22, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(14, 14, 16) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = mainFrame local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(45, 45, 52) stroke.Thickness = 1 stroke.Parent = mainFrame local topBar = Instance.new("Frame") topBar.Name = "TopBar" topBar.Size = UDim2.new(1, 0, 0, MIN_HEIGHT) topBar.BackgroundColor3 = Color3.fromRGB(22, 22, 26) topBar.BorderSizePixel = 0 topBar.Parent = mainFrame local topCorner = Instance.new("UICorner") topCorner.CornerRadius = UDim.new(0, 8) topCorner.Parent = topBar local topFix = Instance.new("Frame") topFix.Size = UDim2.new(1, 0, 0, 8) topFix.Position = UDim2.new(0, 0, 1, -8) topFix.BackgroundColor3 = Color3.fromRGB(22, 22, 26) topFix.BorderSizePixel = 0 topFix.Parent = topBar local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -84, 1, 0) titleLabel.Position = UDim2.new(0, 8, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "Платформа / Platform Fly" titleLabel.TextColor3 = Color3.fromRGB(240, 240, 245) titleLabel.TextSize = 12 titleLabel.Font = Enum.Font.GothamBold titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = topBar local function makeHeaderBtn(text, offsetX, bgColor) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 22, 0, 20) btn.Position = UDim2.new(1, offsetX, 0.5, -10) btn.BackgroundColor3 = bgColor or Color3.fromRGB(34, 34, 40) btn.Text = text btn.TextColor3 = Color3.fromRGB(240, 240, 245) btn.TextSize = 11 btn.Font = Enum.Font.GothamBold btn.BorderSizePixel = 0 btn.Parent = topBar local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 5) c.Parent = btn return btn end local closeBtn = makeHeaderBtn("×", -25, Color3.fromRGB(110, 28, 34)) local minBtn = makeHeaderBtn("-", -49) local pinBtn = makeHeaderBtn("📌", -73) local dragging = false local dragStart, startPos topBar.InputBegan:Connect(function(input) if state.pinned then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mainFrame.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and not state.pinned then if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = input.Position - dragStart mainFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) local bodyFrame = Instance.new("Frame") bodyFrame.Name = "BodyFrame" bodyFrame.Size = UDim2.new(1, -16, 1, -36) bodyFrame.Position = UDim2.new(0, 8, 0, 32) bodyFrame.BackgroundTransparency = 1 bodyFrame.Parent = mainFrame local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(1, 0, 0, 30) toggleBtn.Position = UDim2.new(0, 0, 0, 0) toggleBtn.BackgroundColor3 = Color3.fromRGB(32, 32, 38) toggleBtn.Text = "Режим: ВЫКЛ / OFF" toggleBtn.TextColor3 = Color3.fromRGB(235, 235, 240) toggleBtn.TextSize = 12 toggleBtn.Font = Enum.Font.GothamBold toggleBtn.BorderSizePixel = 0 toggleBtn.Parent = bodyFrame local toggleCorner = Instance.new("UICorner") toggleCorner.CornerRadius = UDim.new(0, 6) toggleCorner.Parent = toggleBtn local function refreshToggleVisual() if state.enabled then toggleBtn.BackgroundColor3 = Color3.fromRGB(28, 110, 62) toggleBtn.Text = "Режим: ВКЛ / ON" else toggleBtn.BackgroundColor3 = Color3.fromRGB(32, 32, 38) toggleBtn.Text = "Режим: ВЫКЛ / OFF" end end toggleBtn.MouseButton1Click:Connect(function() setMode(not state.enabled) refreshToggleVisual() end) local function createSpeedRow(labelText, posY, defaultValue, onCommit) local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(0.62, 0, 0, 24) lbl.Position = UDim2.new(0, 0, 0, posY) lbl.BackgroundTransparency = 1 lbl.Text = labelText lbl.TextColor3 = Color3.fromRGB(205, 205, 212) lbl.TextSize = 11 lbl.Font = Enum.Font.Gotham lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.Parent = bodyFrame local box = Instance.new("TextBox") box.Size = UDim2.new(0.38, 0, 0, 24) box.Position = UDim2.new(0.62, 0, 0, posY) box.BackgroundColor3 = Color3.fromRGB(24, 24, 29) box.Text = tostring(defaultValue) box.TextColor3 = Color3.fromRGB(255, 255, 255) box.TextSize = 12 box.Font = Enum.Font.GothamBold box.ClearTextOnFocus = false box.BorderSizePixel = 0 box.Parent = bodyFrame local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = box box.FocusLost:Connect(function() local num = tonumber(box.Text) if num and num > 0 and num <= 500 then onCommit(num) end box.Text = tostring(onCommit()) end) return box end createSpeedRow("Ходьба / Walk:", 36, state.walkSpeed, function(val) if val then state.walkSpeed = val if state.enabled then local _, hum = getCharacterParts() if hum then hum.WalkSpeed = state.walkSpeed end end end return state.walkSpeed end) createSpeedRow("Подъём / Up Speed:", 64, state.upSpeed, function(val) if val then state.upSpeed = val end return state.upSpeed end) createSpeedRow("Спуск / Down Speed:", 92, state.downSpeed, function(val) if val then state.downSpeed = val end return state.downSpeed end) local upBtn = Instance.new("TextButton") upBtn.Size = UDim2.new(0.485, 0, 0, 36) upBtn.Position = UDim2.new(0, 0, 0, 124) upBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) upBtn.Text = "▲ Вверх / Up" upBtn.TextColor3 = Color3.fromRGB(240, 240, 245) upBtn.TextSize = 12 upBtn.Font = Enum.Font.GothamBold upBtn.BorderSizePixel = 0 upBtn.Parent = bodyFrame local upCorner = Instance.new("UICorner") upCorner.CornerRadius = UDim.new(0, 6) upCorner.Parent = upBtn local downBtn = Instance.new("TextButton") downBtn.Size = UDim2.new(0.485, 0, 0, 36) downBtn.Position = UDim2.new(0.515, 0, 0, 124) downBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) downBtn.Text = "▼ Вниз / Down" downBtn.TextColor3 = Color3.fromRGB(240, 240, 245) downBtn.TextSize = 12 downBtn.Font = Enum.Font.GothamBold downBtn.BorderSizePixel = 0 downBtn.Parent = bodyFrame local downCorner = Instance.new("UICorner") downCorner.CornerRadius = UDim.new(0, 6) downCorner.Parent = downBtn upBtn.MouseButton1Down:Connect(function() state.moveUp = true upBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 62) end) upBtn.MouseButton1Up:Connect(function() state.moveUp = false upBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) end) upBtn.MouseLeave:Connect(function() state.moveUp = false upBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) end) downBtn.MouseButton1Down:Connect(function() state.moveDown = true downBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 62) end) downBtn.MouseButton1Up:Connect(function() state.moveDown = false downBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) end) downBtn.MouseLeave:Connect(function() state.moveDown = false downBtn.BackgroundColor3 = Color3.fromRGB(26, 26, 32) end) pinBtn.MouseButton1Click:Connect(function() state.pinned = not state.pinned pinBtn.BackgroundColor3 = state.pinned and Color3.fromRGB(65, 65, 85) or Color3.fromRGB(34, 34, 40) end) minBtn.MouseButton1Click:Connect(function() state.minimized = not state.minimized bodyFrame.Visible = not state.minimized mainFrame.Size = state.minimized and UDim2.new(0, 232, 0, MIN_HEIGHT) or UDim2.new(0, 232, 0, FULL_HEIGHT) minBtn.Text = state.minimized and "+" or "-" end) closeBtn.MouseButton1Click:Connect(function() setMode(false) screenGui:Destroy() end)