Variables not showing up in Inspector (JavaScript)

#pragma strict

var rotationSpeed = 100;
var jumpHeight = 8;

private var isFalling = false

function Update () 
{
	//Handle ball rotation
	var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
	rotation *= Time.deltaTime;
	GetComponent.<Rigidbody>().AddRelativeTorque (Vector3.back * rotation);
	
	if (Input.GetKeyDown (KeyCode.W))
	{
		rigidbody.velocity.y = jumpHeight;
	}
}

The JumpHeight Variable is not showing BTW

You can either reset the script by clicking on the gear icon (to the right of the script name) and choose “Reset”, or you can remove your script and add it back.

Also, a script will not reload or update if there are any script errors within your scene/game. So if any errors exist on other scripts, you must fix those first.

Try using

public var jumpHeight : Int = 8;