Scheduler:run
Runs the given function and profiles it with the given system.
Arguments
id
number
The system id associated with the function. This system must be registered, otherwise an error will be thrown.
system
(T...) -> ()
A dictionary of settings that will overwrite the existing settings. This is automatically patched, and new values will replace old values.
...
T...
Any arguments passed will be passed to the system.
luau
scheduler:run(
id: number,
system: (T...) -> (),
...: T...
)