Skip to main content

Settings

Pass overrides as the second argument of Init.start. A name that isn't a setting is an error, so typos are caught.

Init.start(entries, { Verbose = true, StartTimeout = 30 })
SettingDefaultWhat
Verbosefalselog every module as it loads, inits and starts
DefaultLogEnabledtruelog 🔲 Initializing and ✅ Initialized N modules
DebugLabelFormat"%s - %s"MicroProfiler label for per-frame hooks (module, method)
InitTimeout3seconds to wait for each Init
StartTimeout15seconds to wait for each Start
DefaultPriority0priority of modules without a Priority attribute
IgnoreAttribute"Ignore"attribute that skips a module
PriorityAttribute"Priority"attribute that orders modules

The method names are settings too, if you'd rather call them something else:

SettingDefault
InitMethod"Init"
StartMethod"Start"
PlayerAdded"OnPlayerAdded"
PlayerRemoving"OnPlayerRemoving"
Accumulator"Step"
Heartbeat"OnHeartbeat"
Stepped"OnStepped"
RenderStepped"OnRenderStepped"
Died"OnDied"
CharacterAdded"OnCharacterAdded"
CharacterRemoving"OnCharacterRemoving"

Source: Settings.luau.