Advertisement
SKOSHILOKI

(Roblox) sorta-bypassed fly

Dec 7th, 2019
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. local Plr = game:GetService("Players").LocalPlayer
  2. local Mouse = Plr:GetMouse()
  3. local char = Plr.Character
  4. local human = char:FindFirstChild("Humanoid")
  5. local floating = true
  6. local runnyboi = true
  7. local falling = false
  8.  
  9. Mouse.KeyDown:connect(function(KeyDown)
  10. if KeyDown == "e" then
  11. floating = false
  12. falling = false
  13. human:ChangeState(Enum.HumanoidStateType.Jumping)
  14. runnyboi = false
  15. elseif KeyDown == "q" then
  16. floating = false
  17. falling = true
  18. runnyboi = false
  19. end
  20. end)
  21.  
  22. Mouse.KeyUp:connect(function(KeyUp)
  23. if KeyUp == "e" or KeyUp == "q" then
  24. floating = true
  25. runnyboi = true
  26. end
  27. end)
  28.  
  29. game:GetService("RunService").RenderStepped:Connect(function()
  30. if char and human then
  31. if floating then
  32. human:ChangeState(11)
  33. end
  34. if falling then
  35. game:GetService("Workspace").Gravity = 50
  36. else
  37. game:getService("Workspace").Gravity = 0
  38. end
  39. if runnyboi then
  40. human.WalkSpeed = 100
  41. else
  42. human.WalkSpeed = 0
  43. end
  44. end
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement