I'm trying to make a countdown script, but when I start it up, but it counts down from 10 to 0 in less than a second....
Script :
for i=10,1,-1 do
print(i)
end
I'm trying to make a countdown script, but when I start it up, but it counts down from 10 to 0 in less than a second....
Script :
for i=10,1,-1 do
print(i)
end
for i=10,1,-1 do
wait(1) -- this is very important. It puts a wait time in between each time it loops.
print(i)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You're forgetting a "Wait(1)". You want the for loop to execute every 1 second so you wait that 1 second with "wait(1)"