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
 

I'm New

Previous Thread :: Next Thread 
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
24 Apr 2012 04:01 PM
My friend told me that I would be sucessful in ROBLOX , if I leanred how to script , so my question is , what is GetChildren?
Report Abuse
Grannel is not online. Grannel
Joined: 07 Nov 2010
Total Posts: 565
24 Apr 2012 04:02 PM
Hi! Welcome to ROBLOX. Please, if you have any questions, you can ask them on "Scripting Helpers". This is for advanced discussions. Thanks and good luck!
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
24 Apr 2012 04:03 PM
It's here anyways.

*Ahem (clears troath)*.

GetChildren() returns a table containing all the objects within the object where the method was called on.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
24 Apr 2012 04:04 PM
It's in all BaseParts (BasePart::GetChildren()) and returns all objects who have their 'Parent' property set to the model.

Since everything in roblox is absolutely positioned, other than GUIs, in the 3D space parenting has no real effect from what I can think of, so it's mainly used to organise things to make you scan less data.

Ie

Workspace.Nodes:GetChildren()

And looping the result

Is more efficient than putting the nodes in workspace and doing Workspace:GetChildren() then checking if it's a node then doing whatever to it.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
24 Apr 2012 04:06 PM
Guys,Trapping is proubaly a better scripter than all of you.

And (Forgot name) scripting helpers is dumb. All of them tell me 'Free Models'.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
24 Apr 2012 04:07 PM
LOL, trying to help and rapidly gets insulted.

G'day...
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
24 Apr 2012 04:07 PM
I'm not a better scripter than everyone :l

Where'd you get that logic from? O.o
Report Abuse
Grannel is not online. Grannel
Joined: 07 Nov 2010
Total Posts: 565
24 Apr 2012 04:07 PM
If you're really new, you have no possible way of telling if Trapping is better than us. Scripters forum is made for advanced Lua discussions, not to teach new players basic things like GetChildren.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
24 Apr 2012 04:08 PM
grannel y u no fix your other post past the filter so that you posted and my prediction came true?

now I look like a fail at prediction magic ;'(
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
24 Apr 2012 04:14 PM
[ Content Deleted ]
Report Abuse
Grannel is not online. Grannel
Joined: 07 Nov 2010
Total Posts: 565
24 Apr 2012 04:16 PM
Recursive functions ftw!

function get(x)
t={}
for i,v in x:GetChildren(), next do
table.insert(t,v)
get(v)
end
return t;
end

Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
24 Apr 2012 04:19 PM
[ Content Deleted ]
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
24 Apr 2012 04:20 PM
Yeah oysi's right

I honestly cannot beleive I wrote that

not sure if momentary lapse of stupidity, information overload from chemistry revision, tiredness, or too much dr pepper, or all of the above (6 cans in the last 3 hours lol)
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
24 Apr 2012 04:32 PM
This is a funny joke, Garnished.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
24 Apr 2012 09:30 PM
Wow , really saw lots of people post 'hahahaha'.
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