I need help with the infinite jumping

Use code tags .

Check your console for error messages.

My guess is that there’s something wrong with your ground check. Possibly you have set one of the parameters incorrectly, such as using a ground check position that doesn’t move with the player, or setting a ground mask that matches the sky.