How would I do a "timer" loop?

So I have this for loop in Java script:

for(int i=0;i<anim.length;i++)
        {
            //anim[i] = new GreenfootImage("coin"+(i+1)+".png");
            //anim[i].scale(anim[i].getWidth()/2,anim[i].getHeight()/2);
        }

But how would I do this kind of loop in Roblox Lua? (without the commented part of course)
This is what I was thinking, but clearly not working:

for i = 0, i<10, i += 1 do 
	print("9 times?")
end

Maybe look here: Introduction to Scripting | Roblox Creator Documentation

Roblox has a couple of tutorials on there, one of which is a counting down timer.

Right off the bat:


Thanks!

1 Like