Sorcus
|
  |
 |
| Joined: 29 Nov 2010 |
| Total Posts: 3775 |
|
|
| 12 Feb 2013 04:22 PM |
Not sure if this has already been discussed but as of a couple of days ago WaitForChild has now been added to Instance.
Please note that yes, it does stall the thread until it gets the child. This is by design.
~Sorcus |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
| |
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 12 Feb 2013 04:24 PM |
is it just part of the api or does it really work
because you guys put in loadinggui and it doesn't work yet |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 04:26 PM |
"is it just part of the api or does it really work"
You are my new favorite person. |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 12 Feb 2013 04:27 PM |
| Oops, sometimes I forget that phrase isn't commonly used to express joy. |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 12 Feb 2013 04:29 PM |
awwwwwwww, inator
but seriously, does it work or not serious business guys |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 12 Feb 2013 04:30 PM |
I just tried it out and have no clue how it works.
THANKS FOR THE DOCUMENTATION OP |
|
|
| Report Abuse |
|
|
goalzero
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 132 |
|
|
| 12 Feb 2013 04:35 PM |
Not being super nice to a moderator guys.
But yus, Sorcus do you mind giving a few pointers? |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 04:37 PM |
1) How is it called? Instance::WaitForChild(string ChildName) ? 2) Does it have a timeout? Instance::WaitForChild(string ChildName, int timeout)
I would go play around and test it myself, but I don't have Roblox installed on the computer I'm currently using. |
|
|
| Report Abuse |
|
|
goalzero
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 132 |
|
|
| 12 Feb 2013 04:40 PM |
Or: Instance:WaitForChild(script.Parent, 'SomeInstance')
or: Instance:WaitForChild(script.Parent.SomeInstance)
again: local Part = WaitForChild(script.Parent, 'SomeInstance') |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 12 Feb 2013 04:55 PM |
"Not being super nice to a moderator guys."
> implying we have to |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 12 Feb 2013 04:58 PM |
^was going to say but was scared of ban :< |
|
|
| Report Abuse |
|
|
agent767
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 12 Feb 2013 05:02 PM |
waitForChild() > attempt to call global 'waitForChild' (a nil value) workspace:waitForChild() > waitForChild is not a valid member of Workspace
:c |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 12 Feb 2013 05:10 PM |
well, that's great!
they added something else to the api the doesn't even work yet cool |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 12 Feb 2013 05:11 PM |
| it's WaitForChild not camelCase you noob |
|
|
| Report Abuse |
|
|
Charl3s7
|
  |
| Joined: 07 Dec 2007 |
| Total Posts: 4146 |
|
|
| 12 Feb 2013 05:11 PM |
| It's someobject:WaitForChild("instance name") |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 05:12 PM |
camelCase should work too, right? ...
i beat an elephant at poker ( ° ͜ʖ °) |
|
|
| Report Abuse |
|
|
agent767
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 12 Feb 2013 05:18 PM |
"it's WaitForChild not camelCase you noob" Neither do work so I will have to return that insult. |
|
|
| Report Abuse |
|
|
| |
|
Sorcus
|
  |
 |
| Joined: 29 Nov 2010 |
| Total Posts: 3775 |
|
|
| 12 Feb 2013 05:50 PM |
Please note that the whole camelCase API will disappear in the future. We have moved to PascalCase but camelCase has been deprecated for quite some time now. Don't expect it to work for any of the new API calls.
~Sorcus |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
| |
|
|
| 12 Feb 2013 05:52 PM |
I would laugh if it's Instance.WaitForChild(workspace.model, "Part")
[ AbsoluteLOL - Pancaik Enthusiast ] |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
|
| 12 Feb 2013 06:04 PM |
| thedestroyer119: omg how 2 use dis???????? im only a begening scripter so idk how |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 12 Feb 2013 06:05 PM |
| ur not a csritper at al sily |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2013 06:08 PM |
"Please note that the whole camelCase API will disappear in the future. We have moved to PascalCase but camelCase has been deprecated for quite some time now. Don't expect it to work for any of the new API calls."
But what about Player.userId? |
|
|
| Report Abuse |
|
|