Attach the Camera to Rigidbody(player) (Roll-A-Ball)

Hi everyone!

I create a game from this Roll-A-Ball turorial.

My problem is, I want to attach a camera to the rolling ball.
I tried the parent-child connection between the cam and player object but the camera rotating every axis. I need to rotate (turn) with the player smoothly, and of course the ball still rolling.

Please help I only use Unity since few days.

Don’t child the camera to a rolling object. Try using one of the camera follow scripts that comes with Unity (Import → Standard Assets)