how do you make a wait()/sleep in lua microscript?
I've tried after and every functions and the sleep function wont work SyntaxError: [string "source"]:72: syntax error near '99', in file "source" at line 72 keeps appearing
I've tried after and every functions and the sleep function wont work SyntaxError: [string "source"]:72: syntax error near '99', in file "source" at line 72 keeps appearing
You can make the project public - then you will be able to provide its link and other programmers will see the project source code.
wait and sleep functions in other languages usually stop the entire program / thread.
In microScript it works like this
sleep 1 second
You probably want something to be executed after a certain time. If so, you need to
init = function()
start = system.time()
end
update = function()
if system.time() - startTime > 5000 then print( "Time end") end
end
after 5 seconds do
call_This_Function()
end