Hey, I was working on my game and was trying to add simple death physics where the character will fall over and die, without ragdoll physics. here is my best demonstration of what I want to acheive:
I am trying to achieve this by simply rotating the HRP of the character forward when they die by 20 degrees. However, when I do it in the script, it doesn’t work and there is no error message. Here is the script I am using:
You should not use orientation because it is really weird and messes up your avatar. Instead, create an animation like that and then when finished, set the anim speed to 0 so it pauses like that.
Changing the Orientation of a Part breaks any welds it has; in this case, it breaks the Motor6D joining it to the LowerTorso. The HumanoidRootPart is getting rotated, but since you’re breaking the Motor6D that joins it to the rest of the character assembly, the rest of the body stays as is. You should be altering its CFrame instead:
HRP.CFrame *= CFrame.Angles(math.rad(-20),0,0);
The code above should rotate the entire body 20 degrees forward.