Instance Configuration
Configuration Reference
Section titled “Configuration Reference”This section refers to every configuration values of a LightBorn instance.
Renderer
Section titled “Renderer”- Type:
"Client" | "Server" - Specifies whether the rendering should be handled on the client or server side. Defaults to the global config
OnInterfaceUse
Section titled “OnInterfaceUse”- Type:
(self: SystemData, Mode: "Stage" | "Dir" | "Siren" | "SpecialSiren" | "Rumbler" | "Special", Value: any, Status: boolean?) -> ()? - A callback function triggered when an interface element is used.
- Parameters:
self: TheSystemDatacontext.Mode: The type triggered.Value: The value being pushed.Status: For toggles, the status of it.
UseLegacyAudio
Section titled “UseLegacyAudio”- Type:
boolean? - If
true, enables legacy audio system for compatibility.
CustomTypes
Section titled “CustomTypes”- Type:
{[string]: { IsStatus: boolean?, Type: string }} - Defines custom types for system components.
- Keys: String identifiers.
- Values: Objects with:
IsStatus: Indicate if the type represents a status.Type: String name of the custom type.
SeatLocations
Section titled “SeatLocations”- Type:
{Instance} - List of
Instanceobjects representing vehicle seats where systems are attached.
TurnOff
Section titled “TurnOff”- Type:
{[string]: {[string]: {number | boolean}}} - Automatic turn off of specific statuses when requirements are met.
- ADD EX
TurnOn
Section titled “TurnOn”- Type:
{[string]: {[string]: {number | boolean}}} - Requirements for turning on a status.
- ADD EX
DefaultStage
Section titled “DefaultStage”- Type:
number? - Stage state set by default.
MaxStage
Section titled “MaxStage”- Type:
number? - Maximum state for stage.
DefaultDir
Section titled “DefaultDir”- Type:
number? - Directional state set by default.
MaxDir
Section titled “MaxDir”- Type:
number? - Maximum state for directional.
LightLocation
Section titled “LightLocation”- Type:
{Instance}? - List of
Instances reference indicating where lights are located.
LightProperties
Section titled “LightProperties”- Type:
{ Shadow: boolean?, Range: number?, Angle: number?, Brightness: number? } - Default properties for lights:
Shadow: Enables shadow casting.Range: Light reach distance.Angle: Cone angle (for spotlights).Brightness: Intensity level.
Colors
Section titled “Colors”- Type:
{[string]: Color3} - Named color definitions lights colors.
- Example:
"Blue": Color3.fromRGB(0, 0, 255)
Interface
Section titled “Interface”- Type:
string? - Identifier for the UI interface to load.
Keybinds
Section titled “Keybinds”- Type:
{[string]: Enum.KeyCode} - Maps action names to inputs.
- Example:
"ToggleSiren": Enum.KeyCode.E
Sirens
Section titled “Sirens”- Type:
{[SirenType]: SirenData}? - Map of siren configurations.
- Uses
SirenTypeas key andSirenDataobject as value.
SirenProperties
Section titled “SirenProperties”- Type:
{Volume: number,Speed: number,Looped: boolean,AcousticSimulation: boolean,Distance: {[string]: any},Angle: {[string]: any}}
Lighto
Section titled “Lighto”- Type:
string? - Identifier for the light display to use for the standard type.
- Type:
string? - Identifier for the Face to use on the standard type.
- Type:
boolean? - Whenever the speaker system is enabled.
Priority
Section titled “Priority”- Type:
{[string]: number}? - Map of priority to set for specific tasks.
DefaultPriority
Section titled “DefaultPriority”- Type:
number? - The default priority for tasks.
- Type:
boolean? - Unused
ParkStage
Section titled “ParkStage”- Type:
number? - Unused
Configuration Types
Section titled “Configuration Types”SirenType
Section titled “SirenType”- Type:
"Wail" | "Yelp" | "Phaser" | "Manual" | "Airhorn" | "Hyper" | "Q2" - Different type of Siren that can exist. Used in Sirens
SirenData
Section titled “SirenData”- Type:
{ SoundID: {default: number, alternative: number?}, Volume: number, Speed: number, Instances: { [number]: { {class: string, properties: {}} } }? }- Data of a siren instance. Used in Sirens
- SoundID: Default and alternative
SoundIDfor the siren. - Volume: Default volume of the siren.
- Speed: Default playback speed of the siren.
- Instances: Map of instances added to siren. (can be used for effects, etc)