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: :remove() or :Destroy()

Previous Thread :: Next Thread 
JoshD43 is not online. JoshD43
Joined: 03 Jul 2012
Total Posts: 1390
11 Dec 2014 02:14 PM
which is better.

Mr. Mustachio | ( ͡°╭͜ʖ╮͡° )
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:16 PM
remove() is Parent = nil
on the object its called on and all children

destroy() is Parent = nil; Parent locked
on the object its called on and all children

doesnt really make a difference

Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
11 Dec 2014 02:18 PM
:Destroy() also sets the instance to nil, and helps clean up a lot better.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:20 PM
destroy is in my opinion a method that helped exploiters more than it helped scripters
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:22 PM
Well, you're dumb then breu.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:25 PM
i may be dumb, but i am happy
life's good
sweet 16, a nice relationship with my girlfriend, good grades, I have more common knowledge than the average 16 year old guy and I was just elected to the deputy chairman of a students political organization
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:28 PM
also: exploiter destroy()s your scripts, you wont be able to recover them
exploiter remove()s your scripts, script.Parent = Workspace
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
11 Dec 2014 02:29 PM
Good for you dude.
:remove() has helped exploiters more than :Destroy(), mind.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:30 PM
Every single time someone posts their life story, it's the same.
"I'm 16 years old, super attractive, I work out, I have a super hot girlfriend"

I mean really? You hear that 50 year old stalkers say that online
Report Abuse
JoshD43 is not online. JoshD43
Joined: 03 Jul 2012
Total Posts: 1390
11 Dec 2014 02:32 PM
I'm 15 years old, not very attractive, I work out, I am currently single

so ya
it's all out there now

Mr. Mustachio | ( ͡°╭͜ʖ╮͡° )
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:33 PM
'I'm 16 years old, super attractive, I work out, I have a super hot girlfriend'
I didn't say I was super attractive (I am not), I didn't say I would work out (I don't), I didn't say my girlfriend was super hot (shes normal).
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:34 PM
I'm saying it always follows those "lines"
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:34 PM
well it didn't this time, did it
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:38 PM
It did, you had part of one :)
now shh
Report Abuse
SimplyRemove is not online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
11 Dec 2014 02:45 PM
With remove, you can get the object back if you insert it, but destroy removes it forever, I think.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:47 PM
But why remove when you can do .Parent = nil?
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:53 PM
because it sets the parents of all children to nil aswell
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 02:53 PM
Why would you want to do that, why would it matter?
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 02:57 PM
well, why would you not want to do it?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 03:01 PM
Because if all the childrens' parents are going to be nil, then just call Destroy since you won't be able to recover things with stuff in it.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
11 Dec 2014 03:06 PM
or you just use it as a cheap alternative to clearallchildren()
Report Abuse
UnvaryingC0DER is not online. UnvaryingC0DER
Joined: 10 Aug 2014
Total Posts: 173
11 Dec 2014 03:11 PM
They have no difference in functionality at all, though the word "remove" is shorter than "destroy"...


I still don't understand why people don't capitalize the remove method, like they do with destroy...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Dec 2014 03:15 PM
They do have a difference.
Destroy will destroy the object no matter if you have a reference or not. Also it disconnects any events IIRC.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
11 Dec 2014 03:33 PM
:Destroy() does the following:
Disconnects all associated events
Calls :Destroy() on all members of the Instance
Destroys the Instance. Completely. It sets the pointer to nil on the C side so that nothing knows where it is in memory anymore, and then it gets gc'd and its memory adresses are freed
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
11 Dec 2014 03:36 PM
Oh good. Scripting related arguments.

Oh. I want rbxdev access.
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