Skip to content

Instance ​

Not made by name: the engine makes it, or it is a base for other classes.

Classes that inherit it: Actions, AnimationTrack, Animator, Atmosphere, Attachment, Audio, BindableEvent, BindableFunction, CharacterController, Clouds, Constraint, Content, DataStores, Debris, Debug, Encoding, Files, Folder, GlobalDataStore, Http, IKControl, Input, InputObject, KeyEvent, Light, Lighting, Location, Log, LuaSourceContainer, Network, PVInstance, PartBatch, ParticleEmitter, Path, Pathfinding, Player, Players, PointerEvent, PostEffect, Process, RemoteEvent, RemoteFunction, Run, Serial, SerialPort, ServiceProvider, Shortcut, Sound, SoundEffect, SoundGroup, Sprite, Stats, StyleSheet, Tags, TileMap, TweenBase, Tweens, UiNode, ValueBase, VirtualInput, VolumetricFog, WebStreamClient, WeldConstraint.

Properties ​

NameTypeNotes
ArchivablebooleanNot saved in places.
ClassNamestringRead-only.
Namestring
ParentInstance?

Methods ​

  • AddTag(tag: string): ()
  • ClearAllChildren(): ()
  • Clone(): Instance?
  • Destroy(): ()
  • FindFirstAncestor(name: string): Instance?
  • FindFirstAncestorOfClass(className: string): Instance?
  • FindFirstAncestorWhichIsA(className: string): Instance?
  • FindFirstChild(name: string, recursive: boolean?): Instance?
  • FindFirstChildOfClass(className: string): Instance?
  • FindFirstChildWhichIsA(className: string, recursive: boolean?): Instance?
  • GetAttribute(attribute: string): any
  • GetAttributeChangedSignal(attribute: string): Signal<()>
  • GetAttributes(): {[string]: any}
  • GetChildren(): {Instance}
  • GetDescendants(): {Instance}
  • GetFullName(): string
  • GetPropertyChangedSignal(property: string): Signal<()>
  • GetTags(): {string}
  • HasTag(tag: string): boolean
  • IsA(className: string): boolean
  • IsAncestorOf(descendant: Instance): boolean
  • IsDescendantOf(ancestor: Instance): boolean
  • IsPropertyModified(property: string): boolean
  • QueryDescendants(selector: string): {Instance}
  • RemoveTag(tag: string): ()
  • ResetPropertyToDefault(property: string): ()
  • SetAttribute(attribute: string, value: any): ()
  • WaitForChild(childName: string, timeOut: number?): Instance?

Events ​

  • AncestryChanged, whose handlers get (Instance, Instance?).
  • AttributeChanged, whose handlers get (string).
  • Changed, whose handlers get (string).
  • ChildAdded, whose handlers get (Instance).
  • ChildRemoved, whose handlers get (Instance).
  • DescendantAdded, whose handlers get (Instance).
  • DescendantRemoving, whose handlers get (Instance).
  • Destroying, whose handlers get ().

Apache License 2.0