Fandom

ROBLOX Wikia

For loop

12,564pages on
this wiki
Add New Page
Talk0 Share

What the for loop does is makes your command, or commands go a set number of times.

L = 10
for i = 1, 10, L do 
print("Hey")
end

What that does is prints Hey in the output 10 times.


The for loop sets i to 1, then adds 1 to i, and then after 1 is = to L

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.