How do I prevent a explosion from removing player limbs? I did PlayerLimbPercent (I Don't know what it's called I tried) 1 and limbs can't be removed BUT they won't die at all.
COMMUNITY QUESTION
How do I prevent a explosion from removing player limbs?
1 answer
You want to kill the player without break his joints, right? You can connect a hit event on the explosion to check players, also making sure to set Humanoid.BreakJointsOnDeath to false. Tell me if it's wrong or not working, as I didn't test it:
explosion.Hit:Connect(function(part)
if part.Parent:findFirstChild("Humanoid") then
part.Parent.Humanoid.BreakJointsOnDeath = false
part.Parent.Humanoid.Health = 0
end
end)
Note: the Hit event fires for every part of your character that got hit from the explsion, so if you don't want the player to be affected multiple times you might have to create a check to see if the player was already hit.
This discussion is preserved as it was. New answers, comments, and votes are closed.
