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 , since if I turn on gravity in rigid body by character (capsule) falls forward_