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

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

Asked by 4 years ago

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

:destroy()   
:remove()
0
If i remember correctly, :Remove() is deprecated, or isn't recommended for use Utter_Incompetence 856 — 4y
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. Utter_Incompetence 856 — 4y
0
Thx FluffySheep46209 369 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

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

0
:remove parents an instance to nil, :destroy does the same thing except you cant parent the instance anymore SoftlockedUnderZero 668 — 4y
Ad

Answer this question