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