Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to remove part when its humanoid dies?

How do I remove a part when its humanoid dies.

1 comment

0

Please read the notes that come along with people closing your question.

1 answer

You can use:

:Destroy()

Which is the clear way to instantly get rid of something

If you wish to yield before destroying something (aka wait before destroying it, you can try this.)

game:GetService("Debris"):AddItem(yourobject, 2)

yourobject is the path to the object, 2 is the amount of seconds until it will be destroyed.

:Destroy() should be used onto the object in the script that you have made the path to.

This discussion is preserved as it was. New answers, comments, and votes are closed.