Okay so, I’m enabling and disabling motor6ds and ballsocketconstraints for ragdolls. This kills the humanoid and I have no idea why. My script:
And I have already put constraints when the character is added.
for _,v in pairs(victim:GetDescendants()) do
if v:IsA'Motor6D' then
v.Enabled = false
end
if v:IsA'BallSocketConstraint' then
v.Enabled = true
end
end
--HOW TO FIX?
It’s easier to just set the humanoid’s state to ragdoll.
Local H =
Game.Players.LocalPlayer.Character.Humanoid
H:ChangeState(enum.HumanoidStatetype.Ragdoll)
H:SetStateEnabled(enum.HumanoidStatetype.GettingUp, false)
This is happening because you’re disabling all Motor6Ds in the character. All Humanoids will die if the Neck joint is either disabled or removed. Resolve this by simply turning off RequiresNeck.
@PhAnToMjose4605 That doesn’t do what you think it does. Check HumanoidStateType for more information. Ragdoll describes a physics state caused by a character being hit by a fast moving object and thus falling over. The Humanoid will get up eventually.