Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local InfiniteJumpEnabled = true
  2. game:GetService("UserInputService").JumpRequest:connect(function()
  3. if InfiniteJumpEnabled then
  4. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  5. end
  6. end)
  7. local InfiniteJump = CreateButton("Infinite Jump: Off", StuffFrame)
  8. InfiniteJump.Position = UDim2.new(0,10,0,130)
  9. InfiniteJump.Size = UDim2.new(0,150,0,30)
  10. InfiniteJump.MouseButton1Click:connect(function()
  11. local state = InfiniteJump.Text:sub(string.len("Infinite Jump: ") + 1) --too lazy to count lol
  12. local new = state == "Off" and "On" or state == "On" and "Off"
  13. InfiniteJumpEnabled = new == "On"
  14. InfiniteJump.Text = "Infinite Jump: " .. new
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement