I keep getting this error and I haven't a clue as to why; other than it has to do with this script. Please help me understand why this is happening
var Player : Transform;
var rotateAmount = 90;
var controller : CharacterController;
var Hit : RaycastHit;
function Start(){
}
function FixedUpdate (){
//casts a ray from camera to point in world
var ray = Camera.main.ScreenPointToRay (Input.mousePosition);
// If the controller is grounded and the ray hits an object; then you can Rotate walls
if ((controller.isGrounded) && (Physics.Raycast (ray, Hit, 50))) {
canRotate =true;
var Hitobject : GameObject = Hit.transform.gameObject && Hit.collider;
var pivot : Transform = Hitobject.transform;
if (Hitobject.tag == "Left"){
if(Input.GetMouseButtonDown(0))
RotateObjectForward(Player.position,pivot.forward, 90,1);
if(Input.GetMouseButtonDown(1))
RotateObjectForward(Player.position,-pivot.forward,90,1);
}
}