Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a gamer timer?

Asked by
Myuuckn -5
9 years ago

I am making a Project.. The project name is Lights On, basically you need to hide with the lights off in under 1 minute and once the 1 minute is done, a monster will seek you, you will give a remaining of 3 minutes, once the 3 minutes are done you get 10 points.

I am trying to figure out how to make a gamer timer, I'd really appreciate if anyone could help me out, and I do not have a script. (idk how to script)

1 answer

Log in to vote
0
Answered by
Scriptree 125
9 years ago

Game timer would be:

local timer = 60 -- Amount of seconds

while timer > 0 do -- while the timer is more than 0 it will keep subtracting one every minute
    wait(1) -- every 1 second
    timer = timer - 1  -- subtract 1 from the timer
end

Hope it helped!

Ad

Answer this question