Limiting camera rotation

i’ve been messing around with first person alot, and i’ve noticed that i do not know how to correctly limit the camera’s rotation, for example;

Say you’re sitting down, i wouldn’t want to be able to move the camera, relative to the body, farther than 60° left and right, how would i go about doing that?

I’ve found a couple of posts about it in the past, but they seem to be either not resolved, or just straight up don’t work correctly

Perhaps you have to do some experimentation using for example the script in Customizing the Camera | Roblox Creator Documentation and change the code to restrict the changes to the camera CFrame.