Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to stop the player from being divided parts when dead?

Asked by 5 years ago
Edited 5 years ago

I am trying to make my own death animations, but the problem is I don't know how I would make the player not become individual parts. Is it possible?

1
Re-connect all of their joints. MakeJoints is a helpful method Rare_tendo 3000 — 5y

1 answer

Log in to vote
1
Answered by
hellmatic 1523 Moderation Voter
5 years ago

You can disable the humanoid's death state:

humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)

--this will prevent the character parts from falling. However, the player will still have the ability to walk. To counter this you can set the humanoid's walkspeed to 0
--example:
huumanoid.Died:Connect(function()
    humanoid.WalkSpeed = 0
end)
0
note that disabling the death state occasionally won't work (might be a bug not sure) hellmatic 1523 — 5y
0
Thanks! mixgingengerina10 223 — 5y
Ad

Answer this question