Stopping player turning

I am making a dead rails like dragging system and when the player rotates a part, I want them to be unable to turn around and stuff. I already got the dragging system done but I just need to know how I would go about disabling their ability to turn. (Always in first person btw)

the code

humanoid.AutoRotate = false

should make your player not rotate.

1 Like

but the problem is the player rotates the part using right click

I think they may have a custom camera script but maybe you can turn the player camera to scriptable or locked when right click is held, if you lock it in place it will become a bit buggy if the player is moved

You can unlock the mouse by modifying the default player scripts.

This makes it so they cant turn in first person: