I want a timer for my mini game and when it his zero a random map comes how do I make it?
COMMUNITY QUESTION
How do I make a timer and when it beeps we get a map?
1 answer
To make a timer, you need to use a loop and make it so it subtracts every second. An example is right here :
for i=30,0,-1 do
i = i -1
print(i)
wait(1)
end
You can change (1) to how fast you want the timer to countdown. Also change 30 to the max seconds you want in the timer
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Your a life saver man
Np :)
Do you not know the reason why theres an argument with the for loop? Your doing 2 calculations, one you are not using, and another you are. You can prevent that