Unity wont let me rotate, when I rotate the FPS camera it keeps on trying to rotate to its original location

this is the code in my update area

transform.Rotate(0f, playerCamera.transform.rotation.y, 0f);
        transform.Translate(Input.GetAxis("Horizontal") * Time.deltaTime * walkSpeed, 0f, Input.GetAxis("Vertical") * Time.deltaTime * walkSpeed);

It’s not that clear what you are trying to do. I’m going to make the assumption this script lives on your player because of the movement. Which means you are trying to rotate your player towards your camera? Making the assumption that “playerCamera” is the FPS camera.

Where do you want the camera to rotate to really? If it’s a FPS then you probably want the camera to be a child object of the player so it’s always keeping the same camera angle. Then rotate the camera and player based on the mouse position or whatever input controller you are using.