Humanoid Auto Rotating

Hello everyone, I am trying to create a rag doll for a video I am working on. I have already rigged it to be animated and to rag doll.

I want to be able to create a multipurpose model so I can script it to either move, play an animation, rag doll, etc.

My issue is when I try to flip the model to test the rag doll, it automatically rotates. How can I fix this without destroying the joints?

I’ve already tried to enable platform standing, sitting and deleting the joints. I’d like to preserve the joints so I can enable and disable it as I please. Thank you.

Video of the issue:

Enabling the Physics state should stop the humanoid from forcing itself upright.

Ah! Why didn’t I think of that. Thank you so much!