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: 2 things

Previous Thread :: Next Thread 
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
03 Aug 2013 10:30 AM
1: Say, there is a script within a script. The script holding the other script is deleted. Are they both deleted?

2: If the child script isn't deleted, can I use a clone of it, from the child, and recreate it and parent itself again?

Thanks. I'm working on prevention against hackers, if you have any tips please, do, say them!

I'm not going to go overboard, it's just that if someone decided to hack my game, I made my admin list out of values. Rename = free admin
e,e
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
03 Aug 2013 10:37 AM
Hello.


That depends on what you mean by 'deleted'.

Do you mean something like:

script:Destroy()

or

script:Remove()

or do you do it manually by selecting the Script (in edit/solo mode) and clicking 'cut'?


If it's Destroy, then the object including it's descendants is removed, and all references to it is wiped out. There's no way to regain them after calling :Destroy()

The other methods will simply set the .Parent property to nil, as :Remove() does that with the object, then all it's descendant objects.


- As, herp, :Remove() is getting deprecated, harhar. Get control, use :Destroy()!
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
03 Aug 2013 06:05 PM
Manually with roblox studio tools.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Aug 2013 06:18 PM
^^
it get's removed, than collected by the gc. So since it's not referenced, then in a way--yes.
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
03 Aug 2013 06:25 PM
Then, as long as these tools don't use Destroy (as I assume you're talking about the 'cut' button in the top of your Roblox Studio... which is the same as just rightclicking and clicking cut)...

Then it should be possible. Though you'll have to store the object before clicking 'cut'.


- As, you can use the Command Bar while in Edit mode. Fancinezz.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Aug 2013 06:26 PM
^^Or plugins c:
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
03 Aug 2013 06:27 PM
Execute script?


Anything but level 2 identity?

- As, Level 0. We pwn ya'
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Aug 2013 06:31 PM
It's probably some GarbageService poop or a plugin that does childremoved, idk I just saw sorcus talking about it
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