Skip to content

Instance API Reference

This section refers to every method and property available on a SystemData instance.


  • Type: (self: SystemData) -> ()
  • Intiates the controller (if available)

  • Type: (self: SystemData, Siren: string, SirenIDs: {number} | number) -> ()
  • Intiates the siren

  • Type: (self: SystemData, IDs: {number} | number) -> ()
  • Refreshes a siren

  • Type: (self: SystemData, SirenCategory: number, Name: string, Asset: {AssetID: string, Volume: number, Speed: number}, Playing: boolean, NoEffectCheck: boolean?, Player: Player?) -> ()
  • Play a siren

  • Type: (self: SystemData, SirenCategory: number) -> ()
  • Stop a siren

  • Type: (self: SystemData, Siren: string, IDs: {number} | number, Overwrite: boolean?, Player: Player | boolean | nil) -> ()
  • Logic for siren handling - enabling

  • Type: (self: SystemData, IDs: {number} | number | "All", Stop: boolean?, Ignore: {string}?) -> ()
  • Logic for siren handling - disabling

  • Type: (self: SystemData, IDs: {number} | number) -> ()
  • Logic for siren handling - resuming

  • Type: (self: SystemData) -> ()
  • Clean up the instance

  • Type: (self: SystemData, Player: Player, Seat: Seat) -> ()
  • Initialize the controller UI for a player seated (if any)

  • Type: (self: SystemData, Seat: Seat) -> ()
  • remove the controller UI from the player seated

  • Type: (self: SystemData) -> ()
  • Initialize the logic for the controller

  • Type: (self: SystemData, From: string, NewVal: any) -> ()
  • Update the pattern when an update occures

  • Type: (self: SystemData) -> ()
  • Initialize the lights

  • Type: (self: SystemData, ModulesLocation: Instance) -> ()
  • Initialize the pattern modules

  • Type: (self: SystemData, module: string, name: string, exe: () -> ()) -> ()
  • Create a pattern task

  • Type: (self: SystemData, module: string, name: string, NoDL: boolean?) -> ()
  • Kill a pattern task

  • Type: (self: SystemData) -> ()
  • Kill all pattern tasks

  • Type: boolean
  • Whenever the system is halted (for clean up)

  • Type: { Shadow: boolean?, Range: number?, Angle: number?, Brightness: number? }
  • DefaultLightProp propriety

  • Type: { Volume: number, Speed: number }
  • SirenDefaultProp propriety

  • Type: {}
  • List of states that are considered “special”, uses a different logic

  • Type: string
  • ID of the instance

  • Type: Instance
  • The instance

  • Type: number
  • The current stage

  • Type: number
  • MaxStage propriety

  • Type: number
  • MaxDir propriety

  • Type: number
  • The current directional stage

  • Type: number
  • The current alternative value

  • Type: {[string]: boolean}
  • Unused

  • Type: Config
  • The instance configuration

  • Type: {[string]: Instance}
  • All of the surfaces from the controller

  • Type: {[number]: string}
  • List of every available siren instances

  • Type:
    {
    [number]: {
    [number]: {
    ["Player"]: AudioPlayer,
    ["Emitter"]: AudioEmitter,
    ["Effects"]: Folder,
    ["Wires"]: {
    ["Player"]: Wire,
    ["Effects"]: {Wire}
    }
    }
    }
    }
  • List of every siren parts

  • Type: {[number]: Instance}
  • Unused

  • Type:
    {
    [string]: {
    Content: {},
    Tasks: {[string]: thread},
    Spawns: {[string]: thread},
    DL: () -> (),
    Settings: {
    RunOnce: {string},
    },
    RunningData: string,
    Data: {
    [string]: {
    Started: boolean,
    Cancelled: boolean,
    Running: boolean,
    Ended: boolean,
    Stopped: boolean
    }
    }
    }
    }
  • List of every pattern modules