UCE0001: ';' expected. Insert a semicolon at the end.

I am making a script and it says i am missing a semicolon when i am most certainly not

here is the script.

var LookAtTarget : Transform;

function Awake()
{
	 if(!LookAtTarget)
	 {
		LooAtTarget = GameObject.FindWithTag("Player").Transform;
	 }
}

function Update () 
{
	//transform.LookAt(LookAtTarget);
	var targetRotation - Quaternion.LookRotation(target.position - transform.position, Vector3.up);;;;;;
	transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, Time.deltaTime * 2.0);
}

var targetRotation - Quaternion

= instead of -

What DaveA correctly pointed out, as well as

GameObject.FindWithTag("Player").Transform;

Transform is the name of the class, gameObject.transform refers to the GO’s tranform component. So here you want the t to be non capitalized.