Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local candouble = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- script.Parent.Humanoid.StateChanged:connect(function(old,new)
- if old == Enum.HumanoidStateType.Jumping and new == Enum.HumanoidStateType.Freefall then
- candouble = true
- wait(0.1)
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 32 then
- if candouble == true then
- candouble = false
- script.Parent.Humanoid.JumpPower = script.Parent.Humanoid.JumpPower*1.5
- script.Parent.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- repeat
- wait(0.1)
- until new ~= Enum.HumanoidStateType.Freefall or new ~= Enum.HumanoidStateType.Jumping
- candouble = false
- script.Parent.Humanoid.JumpPower = 50
- end
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment