generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Destroy() and Deprecated remove()

Previous Thread :: Next Thread 
KOzero is not online. 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 is not online. 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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
LotsOfViolence is not online. LotsOfViolence
Joined: 29 Jun 2011
Total Posts: 8375
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 is not online. 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 is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
28 Sep 2015 06:17 AM
@lots

remove still doesn't disconnect any events
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image