Vyxium
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 1020 |
|
|
| 18 Mar 2014 08:46 PM |
I can't believe nobody has thought of using a for loop -_-
for i = 10, 1, -1 do script.Parent.Value = i wait(1) end GameV.Value = 3 |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2014 08:51 PM |
t = workspace.GameV
-- Separate this script -- while true do wait(1) if t.Value <= 60 t.Value = t.Value + 1 end end -- END OF SCRIPT --
-- Put this in a separate script too! eventLast = 120 -- event will last for 2 minutes t.Changed:connect(function() if t.Value == 60 then print'event occuring' wait(eventLast) t.Value = 0 print'event finished' end end) |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2014 09:21 PM |
| At aesthetic - well, we're getting somewhere. It didn't crash the game. But, it doesn't tick? |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2014 09:23 PM |
| At vyxium - so how long will that count for? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Mar 2014 09:27 PM |
| I think I forgot a wait, but w/e |
|
|
| Report Abuse |
|
|
Vyxium
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 1020 |
|
|
| 18 Mar 2014 09:27 PM |
you can customize it, the first line is where you edit all the numbers.
the first number is how long you want it to run the second number is what number you want it to count down to, in your case, 0 the third number is what it counts down by, in this case, 1's
so it count down from 10, to 1 by 1's |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 18 Mar 2014 10:34 PM |
function Set_Da_World_on_Fieeeaaahhhh() print("It's a song :3") end
local derps = 60 local h = Instance.new("Hint", game.Workspace)
for i = 1,60,-.1 do h.Text = "Countdown: " .. derps[i] .. " seconds left" wait(.1) end
Set_Da_World_on_Fieeeaaahhhh() |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2014 11:38 PM |
to make it reset the number
repeat -awd jadaw --ndawjndw until --BLaswdwd
num = 60
its that simple, after it's done repeating just reset the variable to what ever number you want it at |
|
|
| Report Abuse |
|
|