Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoid = character:WaitForChild("Humanoid")
- local flying = false
- local function toggleFly()
- flying = not flying
- humanoid.PlatformStand = flying
- humanoid:Move(Vector3.new(0, 1000, 0))
- end
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.F then
- toggleFly()
- end
- end)
Advertisement
Comments
-
- how do u use it
-
- like where do u put it in roblox chat?
Add Comment
Please, Sign In to add comment
Advertisement