How to disable character moving and only enable the camera rotating for specified degrees?

Hello, i want to make a FNAF game but i don’t know how to start - i want to disable moving so the player can’t move the character AND only enable camera rotating (not 360° but for example 140° will be the maximum rotate)

Both questions already exist and answered seperately:

Disable Moving

Clamp Camera

thanks… idk why i haven’t searched for these things