We use cookies on this site to enhance your user experience

An Attachment is a special class used by constraint based objects. It represents an offset relative to the object it is parented to, in both its Attachment/Position and Attachment/Orientation properties.

The Position/Orientation properties of this object correspond with the object’s CFrame property, which are then outputted in real time to the WorldPosition and WorldOrientation properties.


Properties

Name Type Description
Vector3

Represents the direction of the X-Axis, relative to the Attachment’s Attachment/Rotation, as a unit Vector3 with a length of 1.

CFrame

Represents the CFrame offset of the Attachment.

Vector3

A Vector3 that describes the orientation of the Attachment relative to the orientation of its parent, in degrees. Rotations are applied in Z, X, Y order.

Vector3

A Vector3 that describes the positional offset of the Attachment, relative to the position and orientation of its parent.

Vector3

A Vector3 that describes the rotation of the Attachment relative to the rotation of its parent, in degrees. Rotations are applied in Z, Y, X order.

Vector3

Represents the direction of the Y-Axis, relative to the Attachment’s Attachment/Rotation, as a unit Vector3 with a length of 1.

bool

Toggles the visibility of the Attachment in-game.

Vector3

Represents the direction of the Attachment’s X-Axis relative to the world, as a unit Vector3 with a length of 1.

CFrame

Describes the exact CFrame of the attachment in world-space coordinates.

Vector3

Describes the orientation (in degrees) of the attachment relative to the world, rather than the parent of the Attachment.

Rotations are described in Z, X, Y order.

Vector3

Describes the position of the attachment relative to the world, rather than the parent of the Attachment.

Vector3

Represents the direction of the Y-Axis of the Attachment, relative to the world, as a unit Vector3 with a length of 1.

Inherited from Instance

Archivable ClassName DataCost Name Parent RobloxLocked

Functions

Name Type Description
Vector3

Returns the value of the Attachment’s Attachment/Axis.

Vector3

Returns the value of the Attachment’s Attachment/SecondaryAxis.

void

Sets the value of the Attachment’s Attachment/Axis.

void

Sets the value of the Attachment’s Attachment/SecondaryAxis.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild