Lock player position

Hi everyone. How do i lock my players position so they can simply only look around the area they are in?

Thanks

If you’re using charactermotor.js, make it so that the canControl variable on that script is false