How would i rotate a player's character horizontally

Im making a fighting game and I need to turn a character to stay horizontally on his back after getting slammed into the ground while he is being ragdolled. I tried rotating every bodypart by 90 degrees on X axis but it looks distorted on the server, while on the client remains normal, and I do not want that because it might mess things up further on, can anyone help me?

1 Like

Bump? Im still stuck, i need help

You should just be able to rotate the HumanoidRootPart and have the rest of the rig follow suit.

1 Like

You can rotate the player to face down with this code:

local char = player.Character
local charc = char:GetPivot() -- Player CFrame
charc *= CFrame.Angles(math.deg(90),0,0)
char:PivotTo(charc)

You should change the humanoid’s state to be tripped or fallen down so you can show when this face down state is happening. That way, you could avoid running this code if you’re already face down. If it ran multiple times, you could do a front flip. If you want code to set the rotation, instead of translating it, you can ask!

Changing the rotation or position of the HumanoidRootPart is unreliable and could cause desync with the torso position.

Ill try this, thanks, also my ragdolling already sets the humanoid state, so i dont really need to do anything else.

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