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

How do I make a timer and when it beeps we get a map? [closed]

Asked by
god3030 -48
6 years ago

I want a timer for my mini game and when it his zero a random map comes how do I make it?

Closed as Not Constructive by hiimgoodpack, lukeb50, and abnotaddable

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
2
Answered by
oSyM8V3N 429 Moderation Voter
6 years ago

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

0
Your a life saver man god3030 -48 — 6y
0
Np :) oSyM8V3N 429 — 6y
0
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 hiimgoodpack 2009 — 6y
Ad