I'm coding a Mode system for a Round based game, But I got a question if the script waits until the module function is finished and then it will continue? If you know please answer, I'll accept your answer if it works, Thank you! -MattVSNNL
Hiya,
After conducting experiments, to call module scripts and adding wait() functions into the scripts I have an answer!
Calling a function from a module function, an example I created here:
local module = {} function module:wait() wait(4) end return module
using this code:
local x = tick() require(game.Workspace.wait):wait() print(x - tick() .. " second(s) difference while calling function!")
It waited 4 seconds, then printed
-4.0098099708557 second(s) difference while calling function!
So to answer your question, the script will continue running after the module function has finished running.
Any questions? Don't be afraid to comment, I won't bite! (????)?