Attachment

Show Deprecated

An Attachment defines a point and orientation relative to a parent BasePart, Bone, or another Attachment. The offset is stored in the CFrame property. The offset can also be set through other properties, such as WorldCFrame.

Attachments are used by several kinds of Constraints and are also valid alternatives to BasePart as a parent for objects such as:

  • ParticleEmitters which will emit particles from the attachment's specific position/orientation instead of the BasePart bounds.
  • Light-emitting objects like PointLight and SpotLight which will shine from the attachment's position/orientation instead of the BasePart center.
  • Sound which will use the attachment's position as the sound's focal point, instead of the BasePart center.

Summary

Properties

  • Not Replicated
    Read Parallel

    Direction of the X axis of the attachment, represented as a unit Vector3.

  • Read Parallel

    CFrame offset of the attachment.

  • Hidden
    Not Replicated
    Read Parallel

    Orientation of the attachment relative to the orientation of its parent.

  • Hidden
    Not Replicated
    Read Parallel

    Positional offset of the attachment, relative to the position and orientation of its parent.

  • Not Replicated
    Read Parallel

    Direction of the Y axis of the attachment, represented as a unit Vector3.

  • Read Parallel

    Toggles the in-experience visibility of the attachment.

  • Not Replicated
    Read Parallel

    Direction of the X axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

  • Not Replicated
    Read Parallel

    The exact CFrame of the attachment in world space coordinates.

  • Hidden
    Not Replicated
    Read Parallel

    Orientation of the attachment relative to the world rather than its own parent.

  • Hidden
    Not Replicated
    Read Parallel

    Position of the attachment relative to the world rather than its own parent.

  • Not Replicated
    Read Parallel

    Direction of the Y axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

Methods

Properties

Not Replicated
Read Parallel

CFrame

Read Parallel

Orientation

Hidden
Not Replicated
Read Parallel

Position

Hidden
Not Replicated
Read Parallel

SecondaryAxis

Not Replicated
Read Parallel

Visible

Read Parallel

WorldAxis

Not Replicated
Read Parallel

WorldCFrame

Not Replicated
Read Parallel

WorldOrientation

Hidden
Not Replicated
Read Parallel

WorldPosition

Hidden
Not Replicated
Read Parallel

WorldSecondaryAxis

Not Replicated
Read Parallel

Methods

GetConstraints

Instances

Returns

Instances

Events