Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I prevent infinite jump?

I'm making a game where quite a lot of jumping is needed, but infinite jump ruins the experience for others. I don't know how to stop infinite jumping without making jumping weird for other players. Any way to prevent?

5 comments

0

How do players “infinite jump” exactly? Are you using some custom jump script or something? Do you mean you don’t want them jumping every second?

0

What exactly do you mean by preventing infinite jump?

0

What do you mean by infinite jump?

0

I think he means that he needs a wait for each jump,

0

Sorry I explained poorly, basically how can I make a script so that when a player jumps, it waits for the jump to finish (you touch the ground again) before allowing you to jump again

1 answer

✓ Accepted answer

You could use HumanoidStateType and change the humanoid’s JumpPower to 0 when someone jumps. You can then change the JumpPower back to normal when the player lands.

I’d give an example script but I never used HumanoidStateType and I’m on mobile. Hope this helped anyways though!

1 comment

0

Definitely helped! Thank you so much, I know what to do now.

This discussion is preserved as it was. New answers, comments, and votes are closed.