abusabIe

dj

Jun 2nd, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. local candouble = false
  2. local mouse = game.Players.LocalPlayer:GetMouse()
  3. script.Parent.Humanoid.StateChanged:connect(function(old,new)
  4. if old == Enum.HumanoidStateType.Jumping and new == Enum.HumanoidStateType.Freefall then
  5. candouble = true
  6. wait(0.1)
  7. mouse.KeyDown:connect(function(key)
  8. if string.byte(key) == 32 then
  9. if candouble == true then
  10. candouble = false
  11. script.Parent.Humanoid.JumpPower = script.Parent.Humanoid.JumpPower*1.5
  12. script.Parent.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  13. repeat
  14. wait(0.1)
  15. until new ~= Enum.HumanoidStateType.Freefall or new ~= Enum.HumanoidStateType.Jumping
  16. candouble = false
  17. script.Parent.Humanoid.JumpPower = 50
  18. end
  19. end
  20. end)
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment