use while in roblox script code example Example: how to do for loops roblox --roblox forloop for count = 1, 5 do print(count) end