Good evening,
How can I loop my function but not have it restart until the function is finished? Thank you for any help.
Good evening,
How can I loop my function but not have it restart until the function is finished? Thank you for any help.
function blah()
print("hi")
task.wait()
blah()
end
could you go into more detail?
The main thread of execution won’t execute two or more functions concurrently anyway, so the following would suffice.
local function delayPrint(n, s)
task.wait(n)
print(s)
end
while true do
delayPrint(10, "Hello world!") --Every 10 seconds this will print.
end