KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 28 Sep 2015 05:28 AM |
What is the difference between Destroy() and remove()? Why is remove deprecated?
if I cloned an object without a parent will it be stored in memory and if it is can I use the Destroy() method on it? |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 28 Sep 2015 05:29 AM |
| remove only sets parent to nil, while destroy disconnects all the events connected to the object and clears it from memory or something |
|
|
| Report Abuse |
|
|
KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 28 Sep 2015 05:38 AM |
| Can you still retrieve an object with it's parent set to nill(Using the object again)? |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2015 05:40 AM |
| Yes, but don't use remove for that. Just do Object.Parent = nil if you want to be able to use it again. |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2015 05:47 AM |
It really doesn't matter if you're not removing more then 150 blocks.
People flip out when you use :Remove() on a single block for no reason.
http://www.roblox.com/Coon-left-item?id=296811217 http://www.roblox.com/Coon-right-item?id=296811237 |
|
|
| Report Abuse |
|
|
KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 28 Sep 2015 05:48 AM |
| One last question, Would be better to clone an object then after you've finished with it, destroy , loop this process or I just set it to nil when I don't need it then set it's parent to an object when needed and loop this process? |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 28 Sep 2015 06:17 AM |
@lots
remove still doesn't disconnect any events
|
|
|
| Report Abuse |
|
|