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 |
|
|
|
| 14 Jul 2015 11:58 PM |
| If Results.Value is a string, it should work. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 14 Jul 2015 11:59 PM |
Dang it its an int.
u sicko! |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 15 Jul 2015 12:03 AM |
Like previously stated,
if tostring(Results.Value) then :WaitForChild("Result"..tostring(Results.Value))
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|