Skip to content

Scheduler:register_system

Registers a new system

Arguments

settings SystemData

The initial data to register the system with.

Return Values

id number

The system id unique to the scheduler.

luau
type SystemData = {
    name: string,
    phase: string?,
    paused: boolean?
}
luau
local id = scheduler:register_system({
    name = "update_velocity",
    phase = "physics",
    paused = false
})

Released under the MIT License.