I have a problem jumping

hello I have a problem with my character in fact I want him to stop jumping to infinity but when I save the scripts I can’t jump anymore so if someone can help me it’s with pleasure I you but the scripts.

Maybe the value of jumpForce is 0 in the Editor?
Regarding jumping to infinity, maybe “use Gravity” is not checked for the Rigidbody in the Editor?