How to make a button gui that makes you jump once if you click it once?s

I’m making a button gui and if the player clicks it (client) then that player just jumps once if they click it once and repeats if they click again.

My script didnt work and this is it:

player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
  player.Character.Humanoid.Jump = true
end)

can anyone please help?

Try changing the state.

player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
2 Likes

which line to change? 3rd one?

Change player.Character.Humanoid.Jump = true.

wow it works, thanks alot dude!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.