How to stop the player from rotating

Hello, I’m working on a combat system which will include grab moves, and I don’t want players to be able to rotate and face the other direction while being grabbed since that’d kind of ruin it. Is there a way to outright stop a person from being able to rotate/look around all together without changing their camera type?

Any and all help means a lot to me. Thank you.

5 Likes

I believe you can disable certain things inside of the default camera modules roblox gives you

3 Likes

You should be able to disable AutoRotate, a boolean which turns the character relative to their camera.

Try:

humanoid.AutoRotate = false

Then doing the same but setting it back to true will re-enable character’s turning relative to their camera.


Source: Humanoid | Documentation - Roblox Creator Hub

5 Likes

Gonna try this right now, I’ll come back to tell you how it goes.

This solved my problem, thank you so much to both of you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.