How do I continue a function that has wait()
local function Test1()
print("function started")
wait(1)
print("function ended")
end
local function Test2()
print("About to call function Test")
Test1()
print("All Done!")
end
Test2()
if I run this (untested) local-script , the script will first run function Test2() and then it will automatically run Test1() because it's in the Test2() function. The thing is , the print("All Done!") will not be in the output before 1 second later because Test1 has wait(1) in it.
Question : How can I print("All Done!") without waiting even though Test1() have wait(1) ?

1 comment
THAT'S THE ANSWER! should be in details though , but still thanks. I did a quick search on google about the spawn function and BOOM. Done.