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()
		LooAtTarget = GameObject.FindWithTag("Player").Transform;

function Update () 
	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


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.