roblox loop statment code example
Example 1: loop true childs roblox
for i,v in pairs(game.Players:GetChildren()) do
-- v is your player
end
Example 2: roblox repeat until
repeat
spawnGoblin()
currentGoblinCount = currentGoblinCount + 1
print("Current goblin count: " .. currentGoblinCount)
until currentGoblinCount == 25