Attachment
Last updated
Attachment : Instance
An Attachment is an instance that defines a specific position and orientation, typically parented to a BasePart, Bone, or another Attachment
Its relative position and rotation are set via the CFrame property, with WorldCFrame available for adjustments in absolute coordinates.
This instance integrates with various functionalities beyond mere positioning. For example, a Beam connects two Attachments to create visual effects, and physics-based instances can operate relative to an Attachmentβs position, enabling precise control.
Attachments make it easy to configure positioning and interaction points that are challenging to achieve with BaseParts alone, allowing flexible configuration of pivots of various effects or actions.
Vector3
This property represents the Attachmentβs X-axis orientation.
local Attachment = script.Parent
print(Attachment.Axis)CFrame
This property represents the offset in position and orientation relative to the parent object.
Vector3
This property represents the Attachmentβs Y-axis orientation.
Vector3
This property represents the Attachment's X-axis orientation relative to the game worldβs coordinate system.
CFrame
This property represents the absolute position and orientation relative to the game world.
This is calculated by applying the Attachmentβs unique offset to the parent objectβs position and rotation.
Vector3
This property represents the Attachment's Y-axis orientation relative to the game worldβs coordinate system.
Currently not supported.
Array
Currently not supported.
Last updated
local Attachment = script.Parent
print(Attachment.CFrame)local Attachment = script.Parent
print(Attachment.SecondaryAxis)local Attachment = script.Parent
print(Attachment.WorldAxis)local Attachment = script.Parent
print(Attachment.WorldCFrame)local Attachment = script.Parent
print(Attachment.WorldSecondaryAxis)