|
| 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
|
  |
| Joined: 21 Oct 2007 |
| Total Posts: 20648 |
|
| |
|
eTitanic
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 5725 |
|
| |
|
3rdblox
|
  |
| Joined: 09 Dec 2012 |
| Total Posts: 4741 |
|
| |
|
Cookaie
|
  |
| Joined: 04 Oct 2012 |
| Total Posts: 2306 |
|
| |
|
tery215
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 3879 |
|
| |
|
Ulrond
|
  |
| Joined: 23 Jun 2011 |
| Total Posts: 11962 |
|
| |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
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
|
  |
| 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 |
|
|
| |
|
cycoboy83
|
  |
| Joined: 31 May 2011 |
| Total Posts: 831 |
|
|
| 02 Feb 2014 10:06 AM |
| Support, this is beautiful. |
|
|
| Report Abuse |
|
|
deltav
|
  |
| Joined: 01 Jan 2008 |
| Total Posts: 31893 |
|
| |
|
| |
|
| |
|
| |
|
ASCORE
|
  |
| Joined: 19 Oct 2013 |
| Total Posts: 246 |
|
| |
|
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
|
  |
| Joined: 19 Oct 2013 |
| Total Posts: 246 |
|
|
| 02 Feb 2014 07:18 PM |
@Absurdism
This would be more clean. |
|
|
| Report Abuse |
|
|
3Dwolf11
|
  |
| Joined: 30 Dec 2011 |
| Total Posts: 5904 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 03 Feb 2014 03:19 PM |
| But :GetChildren()[n] would do something else. I don't think you got what he said. |
|
|
| Report Abuse |
|
|