NEED MUCH HELP WITH AN ERROR please help

in the first script script i have a variable called zForce

var zForce : float = 0;

function Update () {

zForce = Mathf.Clamp(zForce, 0, 1000);

     if(Input.GetButtonUp("Jump"))

		if(!gameObject.rigidbody){

		gameObject.AddComponent(Rigidbody);

		rigidbody.AddForce(Vector3(0,0,zForce));

    }
	
	if(Input.GetKeyUp("up")){
	zForce += 100;
	}else{
	if(Input.GetKeyUp("down")){
	zForce -= 100;
	}
}

}

and in this script i am trying to make the guitext element which the script below is attached to change depending on what zForce is, this is what i have

var push: pushBall = GetComponent(pushBall);

function Update ()
{

guiText.text = push.zForce();

}

it comes up with the error
BCE0077: It is not possible to invoke an expression of type ‘float’

I’ve edited your code to format it correctly, you should do this yourself. There is the button with ‘101010’, highlight your code and click that button, it does WONDERS for reading your code/script.

zForce is a float variable. When you see parenthesis this is a method call, like Update, it can take arguments/parameters, the zForce variable is not a method/function.

Change:

function Update ()
{
  guiText.text = push.zForce();
}

to:

function Update ()
{
  guiText.text = push.zForce;
}