roblox studio loops code example
Example 1: how to do for loops roblox
--roblox forloop
for count = 1, 5 do
print(count)
end
Example 2: roblox repeat until
repeat
spawnGoblin()
currentGoblinCount = currentGoblinCount + 1
print("Current goblin count: " .. currentGoblinCount)
until currentGoblinCount == 25