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

How do I make a gui timer ....??

Asked by 10 years ago

So when it is over everyone teleports

0
Please go more in depth with your questions. IntellectualBeing 430 — 10y

2 answers

Log in to vote
0
Answered by
yurhomi10 192
10 years ago

I ll give an example

for i = 10, 0 do --we start at 10 and go down to zero by increments of one
print(i) -- we print i so we see whats its value
wait(1) -- waits 1 second then prints its value
end -- finish with an end 
Ad
Log in to vote
0
Answered by 10 years ago

@yurhomi10 That's right but it isn't recommended, use this instead if you want:

local counter = 0 -- The time will start at this second, you can change this to 5 or something else =)
local max = 20 -- The time will end at this second, you can change this to 30 or something else too!
while counter < max do
    counter = counter + 1 -- It will increase the counter by 1, you can decrease it just using the minus
    wait(1) -- Wait 1 second before increasing again
end

Answer this question