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: /

Previous Thread :: Next Thread 
Sorcus is not online. Sorcus
Forum Moderator
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 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
12 Feb 2013 04:24 PM
Thank you satan.
Report Abuse
DannyCore is not online. 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
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
12 Feb 2013 05:11 PM
it's WaitForChild not camelCase you noob
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
12 Feb 2013 05:11 PM
It's someobject:WaitForChild("instance name")
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
12 Feb 2013 05:12 PM
camelCase should work too, right? ...

i beat an elephant at poker ( ° ͜ʖ °)
Report Abuse
agent767 is not online. 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
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
12 Feb 2013 05:43 PM
That's quite cool.
Report Abuse
Sorcus is not online. Sorcus
Forum Moderator
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 is not online. booing
Joined: 04 May 2009
Total Posts: 6594
12 Feb 2013 05:51 PM
Sorcus, check your e-mail
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
12 Feb 2013 05:52 PM
I would laugh if it's Instance.WaitForChild(workspace.model, "Part")

[ AbsoluteLOL - Pancaik Enthusiast ]
Report Abuse
Tenal is not online. 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 is not online. booing
Joined: 04 May 2009
Total Posts: 6594
12 Feb 2013 06:05 PM
ur not a csritper at al sily
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
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
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