take off the rotation in a parent child relatioship

so im trying to make a ball move around and when it moves it rotates. the problem is that i want the camera to follow the ball around but if i make the camera a child of the ball when i move around the camera rotates. I want to stop the camera from rotating.

Create a new script called “Camerafollow” and add the following to it :

public GameObject Player;

void Start()
{

}

void Update()
{
     transform.position = Player.tranform.position;
}

NOTE : You have to add this script to the ‘Camera’ object