how to do a while loop in roblox code example
Example 1: roblox repeat until
repeat
spawnGoblin()
currentGoblinCount = currentGoblinCount + 1
print("Current goblin count: " .. currentGoblinCount)
until currentGoblinCount == 25
Example 2: how to loop something in roblox
while true do print("Looping...") wait(0.5)end