PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Attachment

Show deprecated

Attachment

Show deprecated

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

Vector3

Axis

[NotReplicated]

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

CFrame

CFrame

Represents the CFrame offset of the Attachment.

Vector3

Orientation

[NotReplicated]

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

Position

[NotReplicated]

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

Vector3

SecondaryAxis

[NotReplicated]

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

bool

Visible

Toggles the visibility of the Attachment in-game.

Vector3

WorldAxis

[NotReplicated]

Represents the direction of the Attachment|Attachment's Attachment/Axis|X-Axisrelative to the world, as a unitDataType/Vector3` with a length of 1

CFrame

WorldCFrame

[NotReplicated]

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

Vector3

WorldOrientation

[NotReplicated]

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

Vector3

WorldPosition

[NotReplicated]

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

Vector3

WorldSecondaryAxis

[NotReplicated]

Represents the direction of the Attachment/SecondaryAxis|Y-Axis of the Attachment, relative to the world, as a unit DataType/Vector3 with a length of 1

Functions

Events