How to stop the camera from following the player?

I’ve tryied it but when i attached the camera again it changes the rotation that it has. I’v also tryied to save the rotation and then set it on the end but it doesn’t work. Could you help me?
PS:In my case i’m working on a 3D project