Attachment
Defines a point and orientation relative to a parent BasePart, Bone, or another Attachment.
| Memory category | Instances |
|---|
Member index 18
Description
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.
History 110
- 648 Change ReturnType of GetConstraints from Objects to Instances
- 576 Add GetConstraints
- 573 Change ReturnType of SetSecondaryAxis from void to null
- 573 Change ReturnType of SetAxis from void to null
- 557 Change Tags of from [NotReplicated] to [Hidden, NotReplicated]
- 557 Change CanLoad of from true to false
- 557 Change Tags of from [NotReplicated] to [Hidden, NotReplicated]
- 557 Change CanLoad of from true to false
- 557 Change Tags of from [NotReplicated] to [Hidden, NotReplicated]
- 557 Change CanLoad of from true to false
- 557 Change Tags of from [NotReplicated] to [Hidden, NotReplicated]
- 557 Change CanLoad of from true to false
- 553 Change PreferredDescriptor of SetSecondaryAxis from to SecondaryAxis
- 553 Change PreferredDescriptor of SetAxis from to Axis
- 553 Change PreferredDescriptor of GetSecondaryAxis from to SecondaryAxis
- 553 Change PreferredDescriptor of GetAxis from to Axis
- 553 Change Default of WorldSecondaryAxis from to Vector3(0, 1, 0)
- 553 Change PreferredDescriptor of from to WorldOrientation
- 553 Change Default of from to Vector3(-0, 0, -0)
- 553 Change Default of from to Vector3(0, 0, 0)
- 553 Change Default of from to Vector3(-0, 0, 0)
- 553 Change Default of WorldCFrame from to
- 553 Change Default of WorldAxis from to Vector3(1, 0, 0)
- 553 Change Default of Visible from to false
- 553 Change Default of SecondaryAxis from to Vector3(0, 1, 0)
- 553 Change PreferredDescriptor of from to Orientation
- 553 Change Default of from to Vector3(-0, 0, -0)
- 553 Change Default of from to Vector3(0, 0, 0)
- 553 Change Default of from to Vector3(-0, 0, 0)
- 553 Change Default of CFrame from to
- 553 Change Default of Axis from to Vector3(1, 0, 0)
- 550 Change Category of from Derived Data to Derived World Data
- 550 Change Category of from Data to Transform
- 550 Change Category of from Data to Transform
- 550 Change Category of from Data to Transform
- 550 Change Category of CFrame from Data to Transform
- 486 Change ThreadSafety of WorldSecondaryAxis from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of WorldCFrame from ReadOnly to ReadSafe
- 486 Change ThreadSafety of WorldAxis from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Visible from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SecondaryAxis from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CFrame from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Axis from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SetSecondaryAxis from to Unsafe
- 462 Change ThreadSafety of SetAxis from to Unsafe
- 462 Change ThreadSafety of GetSecondaryAxis from to Unsafe
- 462 Change ThreadSafety of GetAxis from to Unsafe
- 462 Change ThreadSafety of WorldSecondaryAxis from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of WorldCFrame from to ReadOnly
- 462 Change ThreadSafety of WorldAxis from to ReadOnly
- 462 Change ThreadSafety of Visible from to ReadOnly
- 462 Change ThreadSafety of SecondaryAxis from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of CFrame from to ReadOnly
- 462 Change ThreadSafety of Axis from to ReadOnly
- 369 Add
- 369 Add
- 369 Change Tags of SetSecondaryAxis from [] to [Deprecated]
- 369 Change Tags of SetAxis from [] to [Deprecated]
- 369 Change Tags of GetSecondaryAxis from [] to [Deprecated]
- 369 Change Tags of GetAxis from [] to [Deprecated]
- 369 Change Category of WorldSecondaryAxis from Derived Data to Derived World Data
- 369 Change Tags of WorldSecondaryAxis from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldSecondaryAxis from false to true
- 369 Remove
- 369 Change CanLoad of from false to true
- 369 Change Tags of from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change Category of from Derived Data to Derived World Data
- 369 Change Tags of from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change Category of from Derived Data to Derived World Data
- 369 Change CanLoad of from false to true
- 369 Change Tags of WorldCFrame from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldCFrame from false to true
- 369 Change Category of WorldCFrame from Derived Data to Derived World Data
- 369 Change Category of WorldAxis from Derived Data to Derived World Data
- 369 Change Tags of WorldAxis from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldAxis from false to true
- 369 Remove
- 359 Change CanLoad of SecondaryAxis from false to true
- 359 Change CanLoad of Axis from false to true
- 327 Add WorldCFrame
- 290 Change Tags of from [ReadOnly, NotReplicated] to [ReadOnly, NotReplicated, Deprecated]
- 290 Add
- 290 Add
- 261 Add Visible
- 241 Add SetSecondaryAxis
- 241 Add SetAxis
- 241 Add GetSecondaryAxis
- 241 Add GetAxis
- 241 Add WorldSecondaryAxis
- 241 Add WorldAxis
- 241 Add SecondaryAxis
- 241 Add Axis
- 235 Add
- 235 Add
- 235 Add
- 235 Add
- 235 Add CFrame
- 235 Add Attachment
Members 18
Axis
| Type | Default | |
|---|---|---|
| Vector3 | 1, 0, 0 | |
Direction of the X axis of the attachment, represented as a unit Vector3.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived Data |
| Loaded/Saved | true/false |
CFrame
| Type | Default | |
|---|---|---|
| CFrame | ||
The CFrame offset of the attachment. Changes to this property will reflect onto the Position and Rotation properties of this object. Similarly, a change to either of those properties will reflect onto this property.
| Thread safety | ReadSafe |
|---|---|
| Category | Transform |
| Loaded/Saved | true |
GetAxis
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| Vector3 | ||
Returns the value of the attachment's Axis.
| Thread safety | Unsafe |
|---|
GetConstraints
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| Instances | ||
Returns a list of Constraints connected to the attachment.
| Thread safety | Unsafe |
|---|
History 2
- 648 Change ReturnType of GetConstraints from Objects to Instances
- 576 Add GetConstraints
GetSecondaryAxis
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| Vector3 | ||
Returns the value of the attachment's SecondaryAxis.
| Thread safety | Unsafe |
|---|
History 4
- 553 Change PreferredDescriptor of GetSecondaryAxis from to SecondaryAxis
- 462 Change ThreadSafety of GetSecondaryAxis from to Unsafe
- 369 Change Tags of GetSecondaryAxis from [] to [Deprecated]
- 241 Add GetSecondaryAxis
SecondaryAxis
| Type | Default | |
|---|---|---|
| Vector3 | 0, 1, 0 | |
Direction of the Y axis of the attachment, represented as a unit Vector3.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived Data |
| Loaded/Saved | true/false |
History 5
- 553 Change Default of SecondaryAxis from to Vector3(0, 1, 0)
- 486 Change ThreadSafety of SecondaryAxis from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SecondaryAxis from to ReadOnly
- 359 Change CanLoad of SecondaryAxis from false to true
- 241 Add SecondaryAxis
SetAxis
| Parameters (1) | ||
|---|---|---|
| axis | Vector3 | |
| Returns (1) | ||
| null | ||
Sets the value of the attachment's Axis.
| Thread safety | Unsafe |
|---|
SetSecondaryAxis
| Parameters (1) | ||
|---|---|---|
| axis | Vector3 | |
| Returns (1) | ||
| null | ||
Sets the value of the attachment's SecondaryAxis.
| Thread safety | Unsafe |
|---|
History 5
- 573 Change ReturnType of SetSecondaryAxis from void to null
- 553 Change PreferredDescriptor of SetSecondaryAxis from to SecondaryAxis
- 462 Change ThreadSafety of SetSecondaryAxis from to Unsafe
- 369 Change Tags of SetSecondaryAxis from [] to [Deprecated]
- 241 Add SetSecondaryAxis
Visible
| Type | Default | |
|---|---|---|
| bool | false | |
Toggles the in-experience visibility of the attachment.
| Thread safety | ReadSafe |
|---|---|
| Category | Appearance |
| Loaded/Saved | true |
WorldAxis
| Type | Default | |
|---|---|---|
| Vector3 | 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.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived World Data |
| Loaded/Saved | true/false |
History 7
- 553 Change Default of WorldAxis from to Vector3(1, 0, 0)
- 486 Change ThreadSafety of WorldAxis from ReadOnly to ReadSafe
- 462 Change ThreadSafety of WorldAxis from to ReadOnly
- 369 Change Category of WorldAxis from Derived Data to Derived World Data
- 369 Change Tags of WorldAxis from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldAxis from false to true
- 241 Add WorldAxis
WorldCFrame
| Type | Default | |
|---|---|---|
| CFrame | ||
The exact CFrame of the attachment in world space coordinates, independent of its parent. The value of this property is equivalent to multiplying the CFrame of the attachment's parent by its own CFrame.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived World Data |
| Loaded/Saved | true/false |
History 7
- 553 Change Default of WorldCFrame from to
- 486 Change ThreadSafety of WorldCFrame from ReadOnly to ReadSafe
- 462 Change ThreadSafety of WorldCFrame from to ReadOnly
- 369 Change Tags of WorldCFrame from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldCFrame from false to true
- 369 Change Category of WorldCFrame from Derived Data to Derived World Data
- 327 Add WorldCFrame
WorldSecondaryAxis
| Type | Default | |
|---|---|---|
| Vector3 | 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.
| Thread safety | ReadSafe |
|---|---|
| Category | Derived World Data |
| Loaded/Saved | true/false |
History 7
- 553 Change Default of WorldSecondaryAxis from to Vector3(0, 1, 0)
- 486 Change ThreadSafety of WorldSecondaryAxis from ReadOnly to ReadSafe
- 462 Change ThreadSafety of WorldSecondaryAxis from to ReadOnly
- 369 Change Category of WorldSecondaryAxis from Derived Data to Derived World Data
- 369 Change Tags of WorldSecondaryAxis from [ReadOnly, NotReplicated] to [NotReplicated]
- 369 Change CanLoad of WorldSecondaryAxis from false to true
- 241 Add WorldSecondaryAxis