How do I script camerabones

Hey so I’m trying to script a camerabone where in an animation whenever the camerabone is lets say rotated towards the left, the camera will follow. The camerabone is a basepart and I hope someone can please just send me a code sample or anything to help me since I’m clueless, thank you.