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
| Name | Type | Notes |
|---|---|---|
Archivable | boolean | Not saved in places. |
ClassName | string | Read-only. |
Name | string | |
Parent | Instance? |
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): anyGetAttributeChangedSignal(attribute: string): Signal<()>GetAttributes(): {[string]: any}GetChildren(): {Instance}GetDescendants(): {Instance}GetFullName(): stringGetPropertyChangedSignal(property: string): Signal<()>GetTags(): {string}HasTag(tag: string): booleanIsA(className: string): booleanIsAncestorOf(descendant: Instance): booleanIsDescendantOf(ancestor: Instance): booleanIsPropertyModified(property: string): booleanQueryDescendants(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().