this script do not work HELP!!! (java script)

#pragma strict

var rotaionspeed = 100;

function Update ()
{
var rotaion : float = Input.GetAxis (“Horizontal”) * rotationSpeed;
rotaion *= Time.deltaTime;
rigidbody.AddRelativetorque (Vector3.back * rotation);
}
java script

What does it do? Does it give an error or anything?
rigidbody is a component, so I think you need to use gameObject.GetComponent.().AddRelativeTorque(whatever);

It might be that you just didn’t capitalize Torque in AddRelativeTorque. There had to be an error given for that. It’s in the console section of the editor or the bottom line when you press play.

Your spelt rotationSpeed wrong in your decleration.

And to add you also have rotaion and rotation. So looks like a couple of typos.

You should develop in an IDE that will catch typos. Also, since UnityScript (Unity’s JavaScript like implementation) is deprecated, you should seriously consider restarting your learning process in C#.