RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Fly script"
-- local script local player = game:GetService('Players').LocalPlayer local userInputService = game:GetService('UserInputService') local flying = false local function toggleFly() flying = not flying local character = player.Character if not character then return end local humanoid = character:FindFirstChild('Humanoid') if not humanoid then return end if flying then humanoid.PlatformStand = true else humanoid.PlatformStand = false end end userInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.F then toggleFly() end end) game:GetService('RunService').Heartbeat:Connect(function() if flying then local character = player.Character if not character then return end local humanoidRootPart = character:FindFirstChild('HumanoidRootPart') if not humanoidRootPart then return end humanoidRootPart.Velocity = userInputService.MoveDirection * 50 end end)