- 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
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                