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 » Scripting Helpers
Home Search
 

Re: Differrences of removal methods?

Previous Thread :: Next Thread 
dylanbuider is not online. dylanbuider
Joined: 14 Jun 2008
Total Posts: 17141
27 Apr 2013 10:23 AM
Why would you use either of these, I never understood the differrences really.

:Remove()
:Destroy()
.Parent = nil
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
27 Apr 2013 10:31 AM
Remove sets the object's parent to nil
Destroy set's the object's parent to nil and the locks the parent
Report Abuse
dylanbuider is not online. dylanbuider
Joined: 14 Jun 2008
Total Posts: 17141
27 Apr 2013 10:31 AM
.Parent = nil

I'm taking a guess that this puts it into some kind of folder where it could be used again in other instances?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
27 Apr 2013 10:34 AM
Using the Remove method and just setting the Parent to nil do almost the exact same thing...

Remove ->Sets parent to nil
.Parent = nil ->Sets parent to nil
Destroy ->Sets parent to nil and locks it.

if you use Remove or just set the parent to nil the object can be re-parented and used again. With destroy you can not do this because it locks the parent.
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
27 Apr 2013 10:37 AM
:Remove() no longer works....
It's replaced by .Parent=nil
Also, if you use Destroy, you can't call back whatever you used it on. I personally recommend using :Destroy() on clones only.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
27 Apr 2013 10:41 AM
Remove works fine...It is just deprecated
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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