|
| 13 Oct 2014 05:17 PM |
c = game.ServerStorage.Intermission:clone() c.Parent = player.PlayerGui for timer = 10, 0, 1 do for _, v in pairs(game.Players:GetPlayers()) do if (v['PlayerGui']) then v['PlayerGui'].Intermission.Frame.TextLabel.Text = timer wait(1) end end end
Why isn't this counting down? |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 05:18 PM |
c = game.ServerStorage.Intermission:clone() c.Parent = player.PlayerGui for timer = 10, 0, 1 do for _, v in pairs(game.Players:GetPlayers()) do if (v['PlayerGui']) then v['PlayerGui'].Intermission.Frame.TextLabel.Text = timer end end wait(1) end |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 13 Oct 2014 05:22 PM |
for timer = 10, 0, 1 do Ahem... for timer = 10, 0, -1 do |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 05:23 PM |
for timer = 10, 0, 1 do
Shouldnt that be -1? Surely timer + 1 repetitively wont get to 0, right? |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 06:06 PM |
| @Sensei Well, if it continues to go up it will eventually go negative and then go up some more until it finally reaches 0.. it would take a while, but it would eventually get there. ;) |
|
|
| Report Abuse |
|
|
| |
|