Camera Follow sphere with ridgidbody?

Trying to make a script that will make the main camera folow the sphere ingame. I can get it to follow just fine, but when it comes to dramatically rolling with the sphere, its not a pretty sight. How can I just make it follow, and not roll around with the ball as if it is focusing on a single point of the sphere but instead just follow the sphere in general ?

You can add a script to the camera that simply updates the camera’s position to the player’s position.

Something like this:

public class CameraScript : MonoBehaviour
{
    public GameObject player;
    private Vector3 _offset;

    public void Start()
    {
        _offset = transform.position - player.position;
    }

    public void Update()
    {
        transform.position = player.position + _offset;
    }
}

The beginner Unity tutorial, Roll-a-ball, has an example of this.

You can set the camera into the sphere?

Thank you for this. I need to change my approach in another question I posted. I was trying to have an instantiated object tell the secondary camera to follow it. The secondary camera was jerking, unstable and rotating wrong. This points to competing scripts in seperate objects. Key statement here.

i follow the script properly and there is still no player slot in the main camera inspector please help