|
| 04 Jul 2015 07:59 PM |
So here's my loop.
for lobbytime = 30, 1, -1 do wait(1) tvalue.Text = "Intermission: " .. lobbytime .. "" end
Basically, it counts down from 30 to 1, but I want to detect when the loop hits the number 1, and run code there. How could I accomplish this?
Ba-Ba-Ba-Ba-Barium, Ba-Ba-Ba-Ba-Barium, a POTASSIUM! |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 04 Jul 2015 08:00 PM |
if lobbytime == 1 then print("yay") end |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 08:02 PM |
i feel idiotic, didn't know 'twas that easy.
Ba-Ba-Ba-Ba-Barium, Ba-Ba-Ba-Ba-Barium, a POTASSIUM! |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 Jul 2015 08:06 PM |
for i = 30,1,-1 do tvalue.Text = "Intermission: "..i if i == 1 then break end wait(1) end
--do more stuff |
|
|
| Report Abuse |
|
|