I'm trying to make the camera follow the player in unity 3D I attached the camera to the player but it also rotates with him cause he's a ball I don't want that to happen I added a rigidbody to the camera it worked one time IDK how but then it stopped following him due to the rigidbody any help ??
So you have made your camera a child of your player? If so the camera will inherit all transformations on you player, which is definitely not what you want. You can follow this video to learn a camera follow script. https://www.youtube.com/watch?v=MFQhpwc6cKE
And you will almost never need to put a rigidbody on a camera, so you can remove that.