how do i fix this code error BCE0020: An instance of type 'UnityEngine.Transform' is required to access non static member 'rotation'.

this is the script help

var speed:float = 6.0;

var jumpSpeed = 8.0;

var gravity:float = 20.0;

private var moveDirection:Vector3 = Vector3.zero;

function Update(){

var controller:CharacterController = GetComponent(CharacterController);

if(controller.isGrounded){

moveDirection = Vector3(0,0,Input.GetAxis(“Horizontal”));

moveDirection *= speed;

if(moveDirection.sqrMagnitude > 0.01)

transform.Rotate = Quaternion.Slerp(Transform.rotation,Quaternion.LookRotation(moveDirection),1);

if(Input.GetButton(“jump”)){

moveDirection.y = jumpSpeed;

}

}

moveDirection.y -= gravity * Time.deltaTime;

controller.Move(moveDirection * Time.deltaTime);

}

tell me how to fix it or fix it for me plz!!!

This: Transform.rotation

Needs to be this: transform.rotation

Transform is a class; transform is a reference to an object of type Transform. The two are related, but are not the same thing.