|
| 26 Apr 2014 02:43 PM |
After I define a function, how do I run it, so that it loops when it finishes?
what i tried to do:
while true do local gameplr = game.Players:GetChildren() if #gameplr > 1 then do start() end else do m.Text = "Not enough players. There is currently "..numplrs.."/2 required players." end end wait(1) end |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 02:44 PM |
| AND just say i already defined numplrs, and the function start() |
|
|
| Report Abuse |
|
|
| |
|
| |
|
gijsbel11
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 4223 |
|
|
| 26 Apr 2014 02:51 PM |
while wait(1) do
local gameplr = game.Players:GetChildren()
if #gameplr > 1 then start() else m.Text = "Not enough players. There is currently "..numplrs.."/2 required players." end
end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Apr 2014 02:54 PM |
@Silver
Your script wouldn't work if he hadn't made that change... |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 02:57 PM |
| wait....no not yet maybe not maybe you did |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 02:58 PM |
| No I forgot one part of the script change thing. Thats all. |
|
|
| Report Abuse |
|
|