Advertisement
rrixh

infjump toggle

Jul 4th, 2023 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. -- Infinite Jump Toggle
  2.  
  3. Section:NewToggle("Infinite jump", "yea", function(toggled)
  4. if toggled then
  5. getgenv().InfJump = true
  6. while getgenv().InfJump == true do
  7. game:GetService("UserInputService").JumpRequest:connect(function()
  8. if getgenv().InfJump == true then
  9. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  10. end
  11. end)
  12. wait()
  13. end
  14. else
  15. getgenv().InfJump = false
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement