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

How do i use for x= 9,5, -1?

Asked by 8 years ago

I currently have use it in many things

for x = 10,0, -1
print(x)
end

My current plan is to make it as a countdown? But it just goes: 10,9,8,7..etc. Instead of 10..9...8, Can anybody help me?

0
Can you be more specific? Do you mean adding a delay? IDidMakeThat 1135 — 8y
0
Yes. HMNapoleon 35 — 8y

1 answer

Log in to vote
3
Answered by 8 years ago

You can add a delay like this:

for x = 10,0, -1 do
    print(x)
    wait(0.1)
end

Where 0.1 is the length of the delay, in seconds.

Ad

Answer this question