Im new to this help me plz!
var speed = 3.0;
var rotateSpeed = 3.0;
{
funtion: (EOF) };EOF;EOF
: CharacterJoint ;GetComponent(CharacterController);
// Rotate around y - axis
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed,0);
// Move forward / backward
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
EOF;
}
@script RequireComponent(CharacterController)