title: How Can i Make Fps Controller Rotate and face a target
body: <p>I'm developing my first game so am a bit new to Unity. So my problem is am trying to rotate the Fps Controller to face a target by the push of a button. I managed to rotate the camera alone by attaching this code to it but only the camera rotates so it completely messes up the walking</p>
  
  <pre><code>public class PlayerRotate : MonoBehaviour {
  
       public Transform target;
  
       void Update(){
           if(Input.GetKeyDown("r")){
               print ("Rotate");
               transform.LookAt(target.position);
           }
       } 
   }
  </code></pre>
  
  <p>I also tried attaching the same script to the Fps Controller but nothing happens. Anyone's help would be greatly appreciated, Thanks.</p>