chugmilk
|
  |
| Joined: 28 May 2011 |
| Total Posts: 5756 |
|
|
| 07 Nov 2015 03:12 PM |
before executing next line of code?
Knife? What knife?.... ( ͡° ͜V ͡°)\🔪 |
|
|
| Report Abuse |
|
|
| 07 Nov 2015 03:13 PM |
| If you're waiting for an instance, use WaitForChild. |
|
|
| Report Abuse |
|
chugmilk
|
  |
| Joined: 28 May 2011 |
| Total Posts: 5756 |
|
|
| 07 Nov 2015 03:22 PM |
I used WaitForChild() here, but it only runs the function sometimes
inlobby = script.Parent.Main.inlobby ok = script.Parent.Main.Lobbytime
inlobby.Changed:connect(function() --The event I'm trying to run if inlobby.Value == true then while inlobby.Value==true do for i = ok.Value-1, 0, -1 do print(i) wait(1) end i=ok end end end)
script.Parent:WaitForChild("poop") -- "poop" is in a seperate script! inlobby = script.Parent.Main.inlobby inlobby.Value = true -- This is supposed to fire the event
Knife? What knife?.... ( ͡° ͜V ͡°)\🔪 |
|
|
| Report Abuse |
|