Instance
The base of every object. Name it, move it, tag it with attributes of your own and find it again from a script, whatever it is.
Every class on these pages is an Instance, so its members work on all of them. Name and Parent say where it sits, ClassName what it is. GetAttribute and SetAttribute read and write Roblox-style attributes, which Properties shows as rows and the Nodes window as sockets. FindFirstChild, WaitForChild, IsA, Clone and Destroy work as in Roblox, though playing scripts only move or destroy what they made. InstanceHidden hides it and its descendants from the Explorer, except at the top level.
abstractBase
Properties
Data
| Name | Type | Default | Description |
|---|---|---|---|
| ClassName | string | ||
| Name | string | ||
| Parent | Instance | Any instance can be parented under any other; where it doesn't apply it is inactive, and putting it back where it works makes it work again. |
Explorer
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Clone | () | Instance | Copies the instance; Root can't be copied. |
| Destroy | () | () | Deletes the instance; a ToolScript can delete anything but Root and services, and a playing script only instances it made. |
| 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 | (name: string) | any | |
| GetAttributes | () | {[string]: any} | |
| GetChildren | () | {Instance} | |
| GetDescendants | () | {Instance} | |
| GetFullName | () | string | |
| IsA | (className: string) | boolean | True when the name is the instance's own class, Instance, or any ancestor in its class tree; unknown names are false. |
| IsAncestorOf | (descendant: Instance) | boolean | |
| IsDescendantOf | (ancestor: Instance) | boolean | |
| SetAttribute | (name: string, value: any) | () | Sets an attribute; nil removes it, and a value of another type is an error. |
| WaitForChild | (name: string) | Instance |
Subclasses
RootPVInstanceTerrainLayerBoneFaceControlsMotor6DClothSquishModifierHairSwayRagdollFractureExplosionIKControlWeldConstraintRopeConstraintRodConstraintSpringConstraintHingeConstraintBallSocketConstraintNoCollisionConstraintFollowConstraintLookAtConstraintPosePoseBlendFolderSandboxContentParticleEmitterLightTrailFireSmokeSparklesHighlightAttachmentBeamTrailEmissionPointMaterialTexturePackSurfaceWearWeatheringLightDecalWaterScatterModelScatterAmbientLifeLiquidWeatherLookStyleColorCorrectionEffectBlurEffectDepthOfFieldEffectBloomEffectSunRaysEffectAtmosphereGroundMarkGlslSourceShaderNodeDataModelLuaSourceContainerEncodingServiceFileServiceBase2DCookClipSequenceItemTextAnimatorCaptionsCookMarkerReviewNoteBillboardGuiSurfaceGuiScreenGuiCookProjectTrackFolderInstanceLayerCookTrackCookKeyframeLayerMaskRunServiceNodeLayoutSurfaceNodeQFrameStickyNoteAudioEffectAudioMixAudioOutputAudioMathAudioGeneratorAudioLoudnessLayerStyle
