Basically, many ragdolls in Roblox are glitching out due to outdated code. However, there are some ways to fix this issue.
Before disabling the ragdoll, you can add the following lines of code:
local statesToDisable = {
Enum.HumanoidStateType.Ragdoll,
Enum.HumanoidStateType.FallingDown,
Enum.HumanoidStateType.Climbing,
Enum.HumanoidStateType.Swimming
}
for _, stateType in ipairs(statesToDisable) do
Humanoid:SetStateEnabled(stateType, false)
}
If you are using ragdoll on an NPC, you can set the network ownership of the NPC to nil before ragdolling them. This seems to fix the ragdoll fling issue. Here’s the code:
Character.HumanoidRootPart:SetNetworkOwner(nil)
These solutions have been suggested by the devforum community, I just gathered them into one post.
Sorry for my english I am Russian