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

What is the difference between :destroy() and :remove()?

What is the difference between :destroy() and :remove()

:destroy()   
:remove()

3 comments

0

If i remember correctly, :Remove() is deprecated, or isn't recommended for use

1

Sorry, :Remove() sets the instance's parent to nil, while :Destroy() locks the .Parent property. Which means that when you use :Remove(), you can still re-use the instance by setting the parent to something else.

0

Thx

1 answer

✓ Accepted answer

:remove() is deprecated. You should use :Destroy(), they do the same.

1 comment

0

:remove parents an instance to nil, :destroy does the same thing except you cant parent the instance anymore

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