while true do
print("Привет!")
endlocal i = 1
while i <= 10 do
print(i)
endlocal i = 1
while i <= 10 do
print(i)
i = i + 1
endwhile true do
print("Проверка")
task.wait(1)
endwhile true do
print("Проверка")
endfor i = 1, 1000 do
for j = 1, 1000 do
print(i, j)
end
endScript timeout: exhausted allowed execution timewhile condition do
-- действия
endwhile true do
-- действия
task.wait(1)
end