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: Question about WaitForChild

Previous Thread :: Next Thread 
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
14 Jul 2015 11:55 PM
Is
WaitForChild("Result"..Results.Value)
Going to work? It doesn't appear to work for me.

u sicko!
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
14 Jul 2015 11:58 PM
If Results.Value is a string, it should work.
Report Abuse
PearSprite is not online. PearSprite
Joined: 02 Jul 2015
Total Posts: 230
14 Jul 2015 11:59 PM
I can't tell if your trolling or you're just stupid...

WaitForChild only works on an in-game object. Let's say you want to wait for a part named "Baseplate" in your Workspace, you would write the following line of code:

local part = game.Workspace:WaitForChild('Baseplate')

As you can see from the line I wrote, it returns the part once it finds it. So no, WaitForChild by itself won't work, it's meant for waiting for objects to be created in your game.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
14 Jul 2015 11:59 PM
Dang it its an int.

u sicko!
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
14 Jul 2015 11:59 PM
@Pear
...
I obviously already have that, I'm not an idiot.

u sicko!
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
15 Jul 2015 12:00 AM
"Result"..tostring(Results.Value)


I don't need a siggy
Report Abuse
PearSprite is not online. PearSprite
Joined: 02 Jul 2015
Total Posts: 230
15 Jul 2015 12:00 AM
^ No such thing as int in Lua, only "number". And also, Lua automatically performs the conversion from number to string.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
15 Jul 2015 12:01 AM
@Pear stfu and get off of scripters forum dumbass. Jesus christ what is with these skids trying to troll.


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
15 Jul 2015 12:03 AM
Like previously stated,

if tostring(Results.Value) then
:WaitForChild("Result"..tostring(Results.Value))
Report Abuse
PearSprite is not online. PearSprite
Joined: 02 Jul 2015
Total Posts: 230
15 Jul 2015 12:04 AM
^ I'm not trolling, I'm merely tired of this kid posting a problem with his script every few seconds. They're simple problems, it's just a matter of him actually understanding Lua and carefully reading the Wiki/help on google.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
15 Jul 2015 12:07 AM
I fixed it, I was just being dumb by putting it in the wrong spot in my script.

u sicko!
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