- Memory category
- Instances
- Own members
- 0
- Inherited members
- 118
- Subclasses
- 0
- Siblings
- 1
Properties44
Property categoryBehavior
- Determines if an
Instanceand its descendants can be cloned usingInstance:Clone(), and can be saved/published. - Deprecated: This deprecated property is a variant of
Instance.Archivablewhich should be used instead.Use Archivable instead.
Property categoryData
Property categoryPermissions
- The set of capabilities allowed to be used for scripts inside this container.
- Indicates whether the instance is inside a sandboxed container.
- When enabled, the instance can only access abilities in its
Capabilitieslist.
Property categoryPivot
- Editor-only property that displays and edits the pivot's
CFramerelative to the instance, moving only the pivot and leaving the instance in place.
Property categoryTransform
- Editor-only property that reads and sets the world
CFrameof thePVInstance's pivot, moving the entire instance when changed from the Studio Properties window.
Property categoryCamera
- Specifies the
CameraTypeto be read by the camera scripts. Camera.DiagonalFieldOfView: number = 88.8765335 Sets the angle of the camera's diagonal field of view.Camera.FieldOfView: number = 70 Sets the angle of the camera's vertical field of view.- Determines the FOV value of the
Camerathat's invariant under viewport size changes. Camera.MaxAxisFieldOfView: number = 70 Sets the angle of the camera's field of view along the longest viewport axis.Camera.OrthographicSize: number = 300 Camera.ViewStretch: number = 1
Property categoryData
- Sets the area in 3D space that is prioritized by Roblox's graphical systems.
Camera.HeadLocked: boolean = true Toggles whether the camera will automatically track the head motion of a player using a VR device.- Sets the scale of the user's perspective of the world when using VR.
Camera.NearPlaneZ: number = -0.5 Describes the negative Z offset, in studs, of the camera's near clipping plane.Camera.ViewportSize: Vector2 = Vector2.one The dimensions of the device safe area on a Roblox client.Camera.VRTiltAndRollEnabled: boolean = false Toggles whether to apply tilt and roll from theCFrameproperty while the player is using a VR device.Camera.CoordinateFrame: CFrame = CFrame.new(0, 20, 20, 1, 0, -0, -0, 0.707106829, 0.707106829, 0, -0.707106829, 0.707106829) Deprecated: This item has been superseded byCamera.CFramewhich should be used in all new work.Use CFrame instead.
- Deprecated: This property is a deprecated variant of
Focuswhich should be used instead.Use Focus instead.
No properties match the filters.
Methods62
Object:GetPropertyChangedSignal( property: string): RBXScriptSignal Get an event that fires when a given property of the object changes.Parameters Parameter Description property: stringThe property to connect to.Returns Type Description RBXScriptSignalA signal that fires whenever the property changes.- Returns true if an object's class matches or inherits from a given class.
Parameters Parameter Description className: stringThe class against which the Object's class will be checked. Case-sensitive.Returns Type Description booleanDescribes whether the Object's class matched or is a subclass of the given class. - Deprecated: This deprecated function is a variant of
Object:IsA()which should be used instead.Parameters Parameter className: stringReturns Type booleanUse IsA instead.
- Applies a tag to the instance.
Parameters Parameter Description tag: stringThe tag to apply to the instance. - This method destroys all of an instance's children.
- Create a copy of an instance and all its descendants, ignoring instances that are not
Archivable.Returns Type Description InstanceA copy of the instance, ornilif the instance is notArchivable. - Sets the
Instance.Parentproperty tonil, locks theInstance.Parentproperty, disconnects all connections, and callsDestroy()on all children. Instance:FindFirstAncestor( name: string): Instance Returns the first ancestor of theInstancewhoseInstance.Nameis equal to the given name.Parameters Parameter Description name: stringTheInstance.Nameto be looked for.Instance:FindFirstAncestorOfClass( className: string): Instance Returns the first ancestor of theInstancewhoseObject.ClassNameis equal to the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstAncestorWhichIsA( className: string): Instance Returns the first ancestor of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChild( name: string, recursive: boolean? = false): Instance Returns the first child of theInstancefound with the given name.Parameters Parameter Description name: stringTheInstance.Nameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstChildOfClass( className: string): Instance Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChildWhichIsA(className: string,recursive: boolean? = false,): Instance Returns the first child of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstDescendant( name: string): Instance Returns the first descendant found with the givenInstance.Name.Parameters Parameter Description name: stringTheInstance.Nameto search for.- Returns the
Actorassociated with the Instance, if any. Instance:GetAttribute( attribute: string): any Returns the value which has been assigned to the given attribute name.Parameters Parameter Description attribute: stringThe name of the attribute being retrieved.Returns Type Description anyThe value which has been assigned to the given attribute name. If no attribute has been assigned,nilis returned.Instance:GetAttributeChangedSignal( attribute: string): RBXScriptSignal Returns an event that fires when the given attribute changes.Parameters Parameter Description attribute: stringThe name of the specified attribute for which the change signal is being returned.Returns Type Description RBXScriptSignalAn event that fires when the given attribute changes.- Returns a dictionary of the instance's attributes.
Returns Type Description { [string]: any }A dictionary of string → variant pairs for each attribute where the string is the name of the attribute and the variant is a non-nil value. - Returns an array containing all of the instance's children.
Returns Type Description { Instance }An array containing the instance's children. Instance:GetDebugId( scopeLength: number? = 4): string Returns a coded string of the debug ID used internally by Roblox.Parameters Parameter Description scopeLength: number? = 4The scope length.Returns Type Description stringThe Debug ID string.- Returns an array containing all of the descendants of the instance.
Returns Type Description { Instance }An array containing the instance's descendants. - Returns a string describing the instance's ancestry.
- Returns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Parameters Parameter Description name: stringName of the property to query.selector: string?Optional selector for the pseudo instance you are targeting on the instance.Returns Type Description anyThe styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified. Instance:GetStyledPropertyChangedSignal( property: string): RBXScriptSignal Returns an event that fires when the given style property changes on the instance.Parameters Parameter Description property: stringName of the style property for which to listen for changes.Returns Type Description RBXScriptSignalEvent that fires when the given style property changes.- Gets an array of all tags applied to the instance.
Returns Type Description { any }An array of strings, each representing a tag applied to the instance. - Check whether the instance has a given tag.
Parameters Parameter Description tag: stringThe tag to check for on the instance.Returns Type Description booleantrueif the instance has the given tag,falseotherwise. Instance:IsAncestorOf( descendant: Instance): boolean Returns true if anInstanceis an ancestor of the given descendant.Instance:IsDescendantOf( ancestor: Instance): boolean Returnstrueif anInstanceis a descendant of the given ancestor.Instance:IsPropertyModified( property: string): boolean Returnstrueif the value stored in the specified property is not equal to the code-instantiated default.Parameters Parameter Description property: stringName of the property to query.Returns Type Description booleanBoolean indicating whether the property is modified from its code‑instantiated default.Instance:QueryDescendants( selector: string): { Instance } Returns an array containing all descendants of the instance that match theselectorstring.Parameters Parameter Description selector: stringSelector string used to filter elements.Returns Type Description { Instance }An array of instances (empty if nothing matched the selector).- Removes a tag from the instance.
Parameters Parameter Description tag: stringThe tag to remove from the instance. Instance:ResetPropertyToDefault( property: string) Resets a property to its default value.Parameters Parameter Description property: stringName of the property to reset.Instance:SetAttribute( attribute: string, value: any) Sets the attribute with the given name to the given value.Instance:WaitForChild( childName: string, timeOut: number): Instance Returns the child of theInstancewith the given name. If the child does not exist, it will yield the current thread until it does.Parameters Parameter Description childName: stringTheInstance.Nameto be looked for.timeOut: numberAn optional time out parameter.- Deprecated: This item is deprecated in favor of
Instance:Destroy()andInstance:ClearAllChildren(). If you must remove an object from the game, and wish to use the object later, set itsParentproperty tonilinstead of using this method.
Sets the object'sParenttonil, and does the same for all its descendants. - Deprecated: This item has been superseded by
Instance:GetChildren()which should be used in all new work.
Returns an array of the object's children.Returns Type Description { Instance }Array of child objects/instances.Use GetChildren instead.
- Deprecated: This deprecated function is a variant of
Instance:Clone()which should be used instead.Returns Type InstanceUse Clone instead.
- Deprecated: This deprecated function is a variant of
Instance:Destroy()which should be used instead.Use Destroy instead.
Instance:findFirstChild( name: string, recursive: boolean? = false): Instance Deprecated: This deprecated function is a variant ofInstance:FindFirstChild()which should be used instead.Returns Type InstanceUse FindFirstChild instead.
- Deprecated: This deprecated function is a variant of
Instance:GetChildren()which should be used instead.Returns Type { Instance }Use GetChildren instead.
Instance:isDescendantOf( ancestor: Instance): boolean Deprecated: This deprecated function is a variant ofInstance:IsDescendantOf()which should be used instead.Parameters Parameter ancestor: InstanceReturns Type booleanUse IsDescendantOf instead.
- Deprecated: This deprecated function is a variant of
Instance:Remove()which has also been deprecated. Neither function should be used in new work.Use Remove instead.
- Gets the pivot of a
PVInstance. PVInstance:PivotTo( targetCFrame: CFrame) Transforms thePVInstancealong with all of its descendantPVInstancessuch that the pivot is now located at the specifiedCFrame.Parameters Parameter Description targetCFrame: CFrameTheCFramethat thePVInstancepivot should equal after moving it.
Camera:GetPartsObscuringTarget(castPoints: { any },ignoreList: { Instance },): { Instance } Returns an array ofBasePartsthat are obscuring the lines of sight between the camera'sCFrameand the cast points.Parameters Parameter Description castPoints: { any }An array ofVector3positions of cast points.ignoreList: { Instance }An array ofInstancesthat should be ignored, along with their descendants.Returns Type Description { Instance }An array ofBasePartsthat obscure the lines of sight between the camera'sCFrameand thecastPoints.- Creates a unit
Rayfrom a position on the screen (in pixels), at a set depth from theCameraorientated in the camera's direction. Accounts for the GUI inset.Parameters Parameter Description x: numberThe position on the X axis, in pixels, of the screen point at which to originate theRay. This position accounts for the GUI inset.y: numberThe position on the Y axis, in pixels, of the screen point at which to originate theRay. This position accounts for the GUI inset.depth: number? = 0 Camera:SetImageServerView( modelCoord: CFrame) Parameters Parameter modelCoord: CFrame- Sets the current rotation applied around the camera's Z-axis.
- Creates a unit
Rayfrom a position on the viewport (in pixels), at a given depth from theCamera, orientated in the camera's direction. Does not account for theCoreUISafeInsetsinset.Parameters Parameter Description x: numberThe position on the X axis, in pixels, of the viewport point at which to originate theRay, in device safe area coordinates.y: numberThe position on the Y axis, in pixels, of the viewport point at which to originate theRay, in device safe area coordinates.depth: number? = 0 Camera:WorldToScreenPoint( worldPoint: Vector3): ...any Returns the screen location and depth of aVector3worldPointand whether this point is within the bounds of the screen. Accounts for the GUI inset.Returns Type Description ...anyA tuple containing, in order:Camera:WorldToViewportPoint( worldPoint: Vector3): ...any Returns the screen location and depth of aVector3worldPointand whether this point is within the bounds of the screen. Does not account for the GUI inset.Returns Type Description ...anyA tuple containing, in order:- A
Vector3whose X and Y components represent the offset of theworldPointfrom the top left corner of the viewport, in pixels forWorkspace.CurrentCamera. For cameras inside aViewportFrame, the values are normalized to [0, 1]. TheVector3Z component represents the depth of theworldPointfrom the screen (in studs). - A boolean indicating if the
worldPointis within the bounds of the screen.
- A
Parameters Parameter distance: numberReturns Type booleanCamera:ZoomToExtents( boundingBoxCFrame: CFrame, boundingBoxSize: Vector3) Adjusts theCFrameso that the specified bounding box is fully visible within the camera's viewport.Camera:GetLargestCutoffDistance( ignoreList: { Instance }): number Deprecated: This method is deprecated. Do not use it for new work.
Returns how much theCameraneeds to be pushed towards itsFocusin order to make sure there is no obstructions between theFocusandCFrame.Parameters Parameter Description ignoreList: { Instance }An array ofInstancesto ignore. Descendants of these instances will also be ignored.- Deprecated: This method has been deprecated and no longer works. It should not be used in new work.
Returns the current 'pan' speed of theCamera. - Deprecated: This method has been deprecated and no longer works.
Returns the current tilt speed of theCamera. Camera:Interpolate( endPos: CFrame, endFocus: CFrame, duration: number) Deprecated: This method has been deprecated. Instead useTweenServiceto smoothly animate theCamera, see the code snippets below for an example.
Tweens theCamerain a linear fashion towards a newCFrameandFocusover a given duration.- Deprecated: This method has been deprecated and should not be used in new work.
Sets theCameraPanModeto be used by theCameraon mobile devices.Parameters Parameter Description mode: Enum.CameraPanMode? = Enum.CameraPanMode.ClassicTheCameraPanModeto set theCamerato. - Deprecated: This method was used for legacy camera controls and has been deprecated. Do not use in new work.
Tilts theCameraaround itsFocusin 10 degree increments around the camera's X axis.
No methods match the filters.
Events12
Object.Changed: RBXScriptSignal<( property: string)> Fires immediately after a property of the object changes, with some limitations.Parameters Parameter property: string
Instance.AncestryChanged: RBXScriptSignal<( child: Instance, parent: Instance)> Fires when theInstance.Parentproperty of this object or one of its ancestors is changed.Instance.AttributeChanged: RBXScriptSignal<( attribute: string)> Fires whenever an attribute is changed on theInstance.Parameters Parameter attribute: stringInstance.ChildAdded: RBXScriptSignal<( child: Instance)> Fires after an object is parented to thisInstance.Parameters Parameter child: InstanceInstance.ChildRemoved: RBXScriptSignal<( child: Instance)> Fires after a child is removed from thisInstance.Parameters Parameter child: InstanceInstance.DescendantAdded: RBXScriptSignal<( descendant: Instance)> Fires after a descendant is added to theInstance.Parameters Parameter descendant: InstanceInstance.DescendantRemoving: RBXScriptSignal<( descendant: Instance)> Fires immediately before a descendant of theInstanceis removed.Parameters Parameter descendant: Instance- Fires immediately before (or is deferred until after) the instance is destroyed via
Instance:Destroy(). - Fires whenever any style property is changed on the instance, including when a property is set to
nil. Instance.childAdded: RBXScriptSignal<( child: Instance)> Deprecated: This deprecated event is a variant ofInstance.ChildAddedwhich should be used instead.Parameters Parameter child: InstanceUse ChildAdded instead.
Camera.FirstPersonTransition: RBXScriptSignal<( entering: boolean)> Parameters Parameter entering: boolean- Fired when the
Camerahas finished interpolating usingInterpolate().
No events match the filters.