spawn
Accepts a function or a thread (as returned by coroutine.create()) and calls/resumes it immediately through the engine's scheduler. Arguments after the first are sent to the function/thread.
If the calling script is currently running in a serial execution phase, then the spawned function or thread is resumed in the current serial execution phase. If the calling script is currently running in a parallel execution phase, then the spawned function or thread is resumed in the current parallel execution phase. For more information, see Parallel Luau.
Parameters
A function or a thread returned by coroutine.create().
...: Variant
Arguments to send to the function or thread.
Returns
The scheduled thread.