What is the difference between :destroy() and :remove()
:destroy()
:remove()
What is the difference between :destroy() and :remove()
:destroy()
:remove()
:remove() is deprecated. You should use :Destroy(), they do the same.
: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.
3 comments
If i remember correctly, :Remove() is deprecated, or isn't recommended for use
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.
Thx