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 9 years ago

I currently have use it in many things

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

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 — 9y
0
Yes. HMNapoleon 35 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

You can add a delay like this:

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

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

Ad

Answer this question