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: If one parents a script to itself-

Previous Thread :: Next Thread 
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
29 Mar 2013 09:00 PM
How would we be able to tell? First off, if it's not in workspace, where would the script be holding the child script? If you wanted to print the parent, wouldn't it crash due to the parent script not being able to print it's parent, due to it being itself?


❖ VOID Successor Parthax ❖
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
29 Mar 2013 09:03 PM
Circular parent references aren't allowed. That's not a crash, either. It's easily resolvable.

Trees simply do not have cycles in them. Graphs can easily, and then that's just like a singleton, but a lot harder to detect as that.
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
29 Mar 2013 10:45 PM
Actually, if you were to visualise ROBLOX's hierarchy literally, (strong emphasis on literally,) all of the objects would be all crammed into the same level with links to their 'parent'. And it would look like a big giant spider web with all the links going from one to the other.
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
29 Mar 2013 10:46 PM
You cannot parent something to itself

It errors the script

Ok



Modifying the .rblx file cannot make it happen either
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
29 Mar 2013 10:48 PM
"Actually, if you were to visualise ROBLOX's hierarchy literally, (strong emphasis on literally,) all of the objects would be all crammed into the same level with links to their 'parent'. And it would look like a big giant spider web with all the links going from one to the other."

Isn't that how everyone thinks about it? Have I been doing it wrong?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
30 Mar 2013 06:36 AM
I think of it more like a tree, having Game/DataModel as the root, and then multiple 'sprouts' from the root indicating things like Workspace, Terrain etc.
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
30 Mar 2013 08:03 AM
^ That is what it emulates, but iirc the truth is they all are stuffed into memory and their "Parent" property is just a link.
Report Abuse
ColorfulBody is not online. ColorfulBody
Joined: 17 Jun 2012
Total Posts: 2353
30 Mar 2013 09:47 AM
@coplox

Explain, then, how the GetChildren function works. Are you implying it looks through all the objects in the game and returns those that have the object as a parent?
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
30 Mar 2013 09:54 AM
Yes. Keep in mind it's c-side.
Report Abuse
lah30303 is not online. lah30303
Joined: 15 Feb 2008
Total Posts: 10027
30 Mar 2013 10:04 AM
Why do they do it that way?
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
30 Mar 2013 10:37 AM
parent to itself...
keep clicking the plus button :D
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