Skip to content

Instance Configuration

This section refers to every configuration values of a LightBorn instance.


  • Type: "Client" | "Server"
  • Specifies whether the rendering should be handled on the client or server side. Defaults to the global config

  • 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: The SystemData context.
    • Mode: The type triggered.
    • Value: The value being pushed.
    • Status: For toggles, the status of it.

  • Type: boolean?
  • If true, enables legacy audio system for compatibility.

  • 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.

  • Type: {Instance}
  • List of Instance objects representing vehicle seats where systems are attached.

  • Type: {[string]: {[string]: {number | boolean}}}
  • Automatic turn off of specific statuses when requirements are met.
  • ADD EX

  • Type: {[string]: {[string]: {number | boolean}}}
  • Requirements for turning on a status.
  • ADD EX

  • Type: number?
  • Stage state set by default.

  • Type: number?
  • Maximum state for stage.

  • Type: number?
  • Directional state set by default.

  • Type: number?
  • Maximum state for directional.

  • Type: {Instance}?
  • List of Instances reference indicating where lights are located.

  • 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.

  • Type: {[string]: Color3}
  • Named color definitions lights colors.
  • Example: "Blue": Color3.fromRGB(0, 0, 255)

  • Type: string?
  • Identifier for the UI interface to load.

  • Type: {[string]: Enum.KeyCode}
  • Maps action names to inputs.
  • Example: "ToggleSiren": Enum.KeyCode.E

  • Type: {[SirenType]: SirenData}?
  • Map of siren configurations.
  • Uses SirenType as key and SirenData object as value.

  • Type:
    {
    Volume: number,
    Speed: number,
    Looped: boolean,
    AcousticSimulation: boolean,
    Distance: {[string]: any},
    Angle: {[string]: any}
    }

  • 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.

  • Type: {[string]: number}?
  • Map of priority to set for specific tasks.

  • Type: number?
  • The default priority for tasks.

  • Type: boolean?
  • Unused

  • Type: number?
  • Unused

  • Type: "Wail" | "Yelp" | "Phaser" | "Manual" | "Airhorn" | "Hyper" | "Q2"
  • Different type of Siren that can exist. Used in Sirens
  • 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 SoundID for 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)