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?
✓ ANSWER ACCEPTED
How do I prevent infinite jump?
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.

5 comments
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?
What exactly do you mean by preventing infinite jump?
What do you mean by infinite jump?
I think he means that he needs a wait for each jump,
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