Skip to content
Roblox API Reference

Attachment

Defines a point and orientation relative to an ancestor PVInstance, Bone, or another Attachment.
Memory category
Instances
Own members
18
Inherited members
75
Subclasses
1
Siblings
608

Properties36

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byAttachment13

Property categoryAppearance

  • Attachment.Visible: boolean = false
    Toggles the in-experience visibility of the attachment.
    • Read capabilities: Basic

Property categoryDerived Data

  • Attachment.Axis: Vector3 = Vector3.new(1, 0, 0)
    Direction of the X axis of the attachment, represented as a unit Vector3.
    • Not replicated
    • Read capabilities: Basic
    • Load only
    • Simulation access
  • Attachment.SecondaryAxis: Vector3 = Vector3.new(0, 1, 0)
    Direction of the Y axis of the attachment, represented as a unit Vector3.
    • Not replicated
    • Read capabilities: Basic
    • Load only
    • Simulation access

Property categoryDerived World Data

  • Attachment.WorldAxis: Vector3 = Vector3.new(1, 0, 0)
    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 capabilities: Basic
    • Load only
    • Simulation access
  • Attachment.WorldCFrame: CFrame = CFrame.identity
    The exact CFrame of the attachment in world space coordinates.
    • Not replicated
    • Read capabilities: Basic
    • Load only
    • Simulation access
  • Attachment.WorldOrientation: Vector3 = Vector3.new(-0, 0, 0)
    Orientation of the attachment relative to the world rather than its own parent.
    • Hidden
    • Not replicated
    • Read capabilities: Basic
    • Simulation access
  • Attachment.WorldPosition: Vector3 = Vector3.zero
    Position of the attachment relative to the world rather than its own parent.
    • Hidden
    • Not replicated
    • Read capabilities: Basic
    • Simulation access
  • Attachment.WorldSecondaryAxis: Vector3 = Vector3.new(0, 1, 0)
    Direction of the Y axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.
    • Not replicated
    • Read capabilities: Basic
    • Load only
    • Simulation access
  • Attachment.WorldRotation: Vector3 = Vector3.new(-0, 0, -0)
    Deprecated: This item has been superseded by WorldOrientation which should be used in new work.
    Rotation of the attachment relative to the world rather than its own parent.
    • Deprecated
    • Hidden
    • Read only
    • Read capabilities: Basic
    • Simulation access

    Use WorldOrientation instead.

Property categoryTransform

  • Attachment.CFrame: CFrame = CFrame.identity
    CFrame offset of the attachment.
    • Read capabilities: Basic
    • Simulation access
  • Attachment.Orientation: Vector3 = Vector3.new(-0, 0, 0)
    Orientation of the attachment relative to the orientation of its parent.
    • Hidden
    • Not replicated
    • Read capabilities: Basic
    • Simulation access
  • Attachment.Position: Vector3 = Vector3.zero
    Positional offset of the attachment, relative to the position and orientation of its parent.
    • Hidden
    • Not replicated
    • Read capabilities: Basic
    • Simulation access
  • Attachment.Rotation: Vector3 = Vector3.new(-0, 0, -0)
    Deprecated: This property is deprecated and should not be used in new work. See Orientation instead.
    Rotation of the attachment relative to the rotation of its parent.
    • Deprecated
    • Hidden
    • Not replicated
    • Read capabilities: Basic
    • Simulation access

    Use Orientation instead.

Methods47

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byAttachment5
  • Attachment:GetConstraints(): { Instance }
    Returns a list of Constraints connected to the attachment.
    • Capabilities: Basic
    Returns
    TypeDescription
    { Instance }
    An array of Constraint objects that are connected to this attachment.
  • Attachment:GetAxis(): Vector3
    Deprecated: This method is deprecated and should not be used in new work.
    Returns the value of the attachment's Axis.
    • Deprecated
    • Capabilities: Basic
    Returns
    TypeDescription
    Vector3
    The direction of the X axis as a unit Vector3 in the attachment's local space.

    Use Axis instead.

  • Attachment:GetSecondaryAxis(): Vector3
    Deprecated: This method is deprecated and should not be used in new work.
    Returns the value of the attachment's SecondaryAxis.
    • Deprecated
    • Capabilities: Basic
    Returns
    TypeDescription
    Vector3
    The direction of the Y axis as a unit Vector3 in the attachment's local space.

    Use SecondaryAxis instead.

  • Attachment:SetAxis(axis: Vector3)
    Deprecated: This method is deprecated and should not be used in new work.
    Sets the value of the attachment's Axis.
    • Deprecated
    • Capabilities: Basic
    Parameters
    ParameterDescription
    axis: Vector3
    The Vector3 to set as the X-axis direction of the attachment.

    Use Axis instead.

  • Attachment:SetSecondaryAxis(axis: Vector3)
    Deprecated: This method is deprecated and should not be used in new work.
    Sets the value of the attachment's SecondaryAxis.
    • Deprecated
    • Capabilities: Basic
    Parameters
    ParameterDescription
    axis: Vector3
    The Vector3 to set as the Y-axis direction of the attachment.

    Use SecondaryAxis instead.

Events10

Inherited fromObject1
Inherited fromInstance9