While loop.

unlike in C#/C++, theres no while loop as i see on wiki.
a example:



while(bIsZooming == true)
{
doStuff();
}


so i have no idea what i need to use. any ideas?


while <condition> do
    <statements>
end

oh damn. exactly what i wanted.

o.O the magic willox!

any ideas how can i get rid of crashes?
tried to add timer, no luck.

Don’t make something do an infinite loop?


local dostuff, i = true, 1
while dostuff do
	i=i+1
	if i > 60 then
		dostuff = false
	end
end

Or in other words you want something that changes to false if you are done with your loop.

OH, i got it.