- Home /
Question by
ThE_DeRAnGED_OnE · Jul 15, 2016 at 05:37 AM ·
rotationerrormouselookrotation
Why won't my player rotation script work?
I have been having trouble with my code it has four errors that I don't know how to solve:
if(Input.GetAxis ("Mouse X") < 0)
{
transform.Rotate (Vector3.up) * speed;
}
if(Input.GetAxis ("Mouse X") > 0)
{
transform.Rotate(Vector3.up) * -speed;
}
}
}
Comment
Could you please show us the errors? Also I think it should be like this:
transform.Rotate (Vector3.up * speed) ;
Your answer
![](https://koobas.hobune.stream/wayback/20220612084847im_/https://answers.unity.com/themes/thub/images/avi.jpg)