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 » Roblox » Suggestions & Ideas
Home Search
 

Re: Another method for us Scripters

Previous Thread :: Next Thread 
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
02 Feb 2014 06:02 AM
Okay, so there's a method we can call on just about anything called FindFirstChild, which does as it says on the tin - it finds the first child with the certain name.

I'd like to see something called FindNthChild - for example:
game.Workspace:FindNthChild("Part", 2)

That would select the second item called "Part" in Workspace.

Of course, at the moment there is a getaround for it:
game.Workspace:GetChildren()[2].Name

But I feel the FindNthChild would be a lot nicer, and in turn, more effective.

~Master Scripter, ROBLOX Wiki Writer, 5 year veteran and Web Developer
Report Abuse
USMCkabar is not online. USMCkabar
Joined: 21 Oct 2007
Total Posts: 20648
02 Feb 2014 06:03 AM
Support.
Report Abuse
eTitanic is not online. eTitanic
Joined: 26 Aug 2010
Total Posts: 5725
02 Feb 2014 06:04 AM
support i guess
Report Abuse
3rdblox is not online. 3rdblox
Joined: 09 Dec 2012
Total Posts: 4741
02 Feb 2014 06:35 AM
Support
Report Abuse
Cookaie is not online. Cookaie
Joined: 04 Oct 2012
Total Posts: 2306
02 Feb 2014 06:36 AM
Support!
Report Abuse
tery215 is not online. tery215
Joined: 19 Aug 2009
Total Posts: 3879
02 Feb 2014 06:38 AM
Support.
Report Abuse
Ulrond is not online. Ulrond
Joined: 23 Jun 2011
Total Posts: 11962
02 Feb 2014 06:50 AM
Support.
Report Abuse
Zephyrical is not online. Zephyrical
Joined: 06 Jul 2009
Total Posts: 3814
02 Feb 2014 07:30 AM
Support.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
02 Feb 2014 07:30 AM
Support.
Report Abuse
Espithel is not online. Espithel
Joined: 09 Oct 2009
Total Posts: 20917
02 Feb 2014 07:36 AM
It's not often I envy people, so congratulations on that.


Well, support.
Report Abuse
Truste135 is not online. Truste135
Joined: 26 Oct 2010
Total Posts: 741
02 Feb 2014 08:37 AM
i want this so bad
yus
full support
my toaster supports as well
he can script toast

i'm not crazy just ask my toaster
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
02 Feb 2014 10:05 AM
Support

#nerdsunited
Report Abuse
cycoboy83 is not online. cycoboy83
Joined: 31 May 2011
Total Posts: 831
02 Feb 2014 10:06 AM
Support, this is beautiful.
Report Abuse
deltav is not online. deltav
Joined: 01 Jan 2008
Total Posts: 31893
02 Feb 2014 10:08 AM
Support.
Report Abuse
CoolioTree is not online. CoolioTree
Joined: 26 Dec 2012
Total Posts: 2509
02 Feb 2014 12:34 PM
Support
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
02 Feb 2014 12:38 PM
Support
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
02 Feb 2014 03:37 PM
Eh, sure.
Report Abuse
ASCORE is not online. ASCORE
Joined: 19 Oct 2013
Total Posts: 246
02 Feb 2014 03:44 PM
SUPPORT!
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
02 Feb 2014 03:54 PM
Okay, I see how this is useful, but there's already a get-around for it. Completely unnecessary.
Report Abuse
ASCORE is not online. ASCORE
Joined: 19 Oct 2013
Total Posts: 246
02 Feb 2014 07:18 PM
@Absurdism

This would be more clean.
Report Abuse
3Dwolf11 is not online. 3Dwolf11
Joined: 30 Dec 2011
Total Posts: 5904
02 Feb 2014 07:22 PM
Support
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
02 Feb 2014 07:25 PM
No support. I think that :GetChildren()[n] is much better.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
03 Feb 2014 01:26 AM
@DataBrain, but even so you would have to write more than a line of code to get the nth child of _ because game.Workspace:GetChildren(n) would just return the nth child in Workspace, and not necessarily iterate through the names.

~Master Scripter, ROBLOX Wiki Writer, 5 year veteran and Web Developer
Report Abuse
CoolioTree is not online. CoolioTree
Joined: 26 Dec 2012
Total Posts: 2509
03 Feb 2014 03:19 PM
But :GetChildren()[n] would do something else. I don't think you got what he said.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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