while look lua 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 in lua
while(condition)
do
statement(s)
end