FPSController & transform.lookAt()

transform.lookAt() works fine with he ThirdPersonController but it doesn’t with the FPSController…
I use exactly the same script on both of them. I can’t figure out what the problem is.
Any help would be much appreciated.

     the code is:
 if (Input.GetKeyDown(KeyCode.U))
            {
                Debug.Log("U is clicked");
                transform.root.LookAt(Vector3.z);
            }

Hi, a lookat is on the three axes of a vector3.
Giving him only Vector3.z without declaring it sounds strange.
if you want to look at an object LookAt(myTransform.position); should work.