RotationScript not working

There are no errors but for some reason it doesnt work:

public float rotateSpeed = 10.0f;

void FixedUpdate ()
{
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
}

Are you trying to get this object to rotate automatically or from your player pressing a button? If you’re trying to get it to rotate automatically, you need to get rid of “Input.GetAxis (“Horizontal”)” from your Y Rotational value. Otherwise your code is waiting for you to push left or right (A or D), because your rotational value includes if your button is pushed. Meaning if you don’t have left or right pushed, it will make your Y rotational value 0 (no buttons are being pressed, therefore Input.GetAxis = 0, and 0 multiplied by anything = 0)

If you’re trying to use this for a character controller, I can give you the FPS Controller modification that I made to make my character rotate rather than side-step.