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: wait for child

Previous Thread :: Next Thread 
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
04 Sep 2016 12:22 PM
What does script.Parent:WaitforChild("andre") do
after it waits does it do basically script.Parent.andre


https://www.roblox.com/BC-R-1-item?id=422869492 https://www.roblox.com/BC-R-2-item?id=422869716 https://www.roblox.com/BC-R-3-item?id=422869880
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 12:23 PM
it does the same thing except if it does not exist, it pauses :|
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Sep 2016 12:23 PM
http://wiki.roblox.com/index.php?title=API:Class/Instance/WaitForChild

Yields the current thread until a child with the given name is found, then returns the child.


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
04 Sep 2016 12:25 PM
Thanks guys I finally understand now!


https://www.roblox.com/BC-R-1-item?id=422869492 https://www.roblox.com/BC-R-2-item?id=422869716 https://www.roblox.com/BC-R-3-item?id=422869880
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
04 Sep 2016 12:25 PM
so if I make it were
Andre = script.Parent:WaitforChild("andre")
I can do
Andre.Value


https://www.roblox.com/BC-R-1-item?id=422869492 https://www.roblox.com/BC-R-2-item?id=422869716 https://www.roblox.com/BC-R-3-item?id=422869880
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 12:26 PM
obviously yes

it waits for the child

instead of indexing a child
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
04 Sep 2016 12:28 PM
Now it says WaitforChild is not a valid member of PlayerGui


https://www.roblox.com/BC-R-1-item?id=422869492 https://www.roblox.com/BC-R-2-item?id=422869716 https://www.roblox.com/BC-R-3-item?id=422869880
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 12:28 PM
.....

typo


:\

do you ever spell check anything
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
04 Sep 2016 12:31 PM
@thedaily thanks for helping me even though I was being dumb


https://www.roblox.com/BC-R-1-item?id=422869492 https://www.roblox.com/BC-R-2-item?id=422869716 https://www.roblox.com/BC-R-3-item?id=422869880
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