Advertisement
Joemamahacks

Flying Script

Apr 26th, 2024
706
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local humanoid = character:WaitForChild("Humanoid")
  4.  
  5. local flying = false
  6.  
  7. local function toggleFly()
  8.     flying = not flying
  9.     humanoid.PlatformStand = flying
  10.     humanoid:Move(Vector3.new(0, 1000, 0))
  11. end
  12.  
  13. game:GetService("UserInputService").InputBegan:Connect(function(input)
  14.     if input.KeyCode == Enum.KeyCode.F then
  15.         toggleFly()
  16.     end
  17. end)
  18.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement