';' expected. Insert a semicolon at the end. I already have a ;

It says the error is in the second line under the movement check but I already have a semicolon. I tried to figure it out but I have no idea what to do now.

function Update () {
	//Movement Left and Right
	var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
	rotation *= Time.deltaTime;
	rigidbody.AddRelativeTorque (Vector3.back * rotation);
	
	//Jump Ability
	if(Input.GetKeyDown(KeyCode.W) && isFalling == false)
	{
		rigidbody.velocity.y = jumpHeight;
	}
	isFalling = true;
	
	//Movement Check
	var stop = GameObject.Find("StopCamera");
	var stopScript = (stopCameraScript)stop.GetComponent("stopCameraScript");
	
	var curPos = transform.position;
	var lastPos : Vector3;
	
	if(curPos == lastPos){
		stopScript.reset = true;
	} else {
		stopScript.reset = false;
	}
	lastPos = curPos;
}

Thanks

Some dude

You don’t cast like that in Javascript:

   var stopScript : stopCameraScript = stop.GetComponent("stopCameraScript");

Or

   var stopScript = stop.GetComponent(stopCameraScript)