lua do while code example
Example 1: lua while loops
--// Basic while true do loop
while true do
--// Looped text
print("Looped Text")
--// Time the loop waits before looping again
wait(1)
end
Example 2: while true do lua
while (statement) do
-- code
end
Example 3: while in lua
while(condition)
do
statement(s)
end
Example 4: repeat until in lua
repeat
statement(s)
until( condition )