My character isnt jumping with this script attached. Also, how can I make jumping work only if you're below (y-axis) a certain point?

This is the script I use for jumping. its attached to the character, yet whenever I press space nothing happens. [in input setting, “Jump” is space]. And the second question is just to allow him to jump as much as he wants as long as he’s below a certain point. Thanks alot.

var jumpForce : float =5;

function Update()
{
if(Input.GetButtonUp("Jump")){
rigidbody.AddForce(Vector3.up * jumpForce);
	}
}

(If possible id like to add gravity too :smiley: , since if I turn on gravity in rigid body by character (capsule) falls forward_

I believe you probably have gravity turned on, but didn’t lock the rotations. If you set Freeze Rotation (I forget if its x, y, or z) you should stop the object toppling over.

As for your other question, I think you need to AddForce every physics frame for it to work how you expect, and also add a force greater than gravity.