Attachment
Defines a local position and orientation for effects, constraints, and rig controls.
- Creatable
Instance.new("Attachment")- Inherits
- Instance
- Replication
- Standard
Behavior
Attachment defines a local position and orientation for effects, constraints, and rig controls.
Summary
The attachment's primary local axis.
The local position and orientation relative to the parent.
Compatibility spelling of CFrame.
Whether the attachment is locked against editor manipulation.
The local attachment position relative to the parent.
The local attachment orientation in degrees.
The attachment's secondary local axis.
Whether the attachment or adornment visualization is displayed.
The attachment's primary axis in world space.
The attachment position in world space.
The attachment orientation in world space, in degrees.
The attachment's secondary axis in world space.
Returns this instance if it is an ExecutionGroup.
Sets the attachment's primary and secondary local axes.
Sets the attachment's primary local axis.
Properties
Axis
Attachment.Axis: Vector3 = Vector3.new(1, 0, 0)The attachment's primary local axis.
CFrame
Attachment.CFrame: CFrame = CFrame.new(0, 0, 0)The local position and orientation relative to the parent.
CoordinateFrame
Attachment.CoordinateFrame: CFrameCompatibility spelling of CFrame. Use CFrame in new code.
Locked
Attachment.Locked: boolean = falseWhether the attachment is locked against editor manipulation.
Position
Attachment.Position: Vector3 = Vector3.new(0, 0, 0)The local attachment position relative to the parent.
Rotation
Attachment.Rotation: Vector3 = Vector3.new(0, 0, 0)The local attachment orientation in degrees.
SecondaryAxis
Attachment.SecondaryAxis: Vector3 = Vector3.new(0, 1, 0)The attachment's secondary local axis.
Visible
Attachment.Visible: boolean = falseWhether the attachment or adornment visualization is displayed.
WorldAxis
Attachment.WorldAxis: Vector3 = Vector3.new(1, 0, 0)The attachment's primary axis in world space.
WorldPosition
Attachment.WorldPosition: Vector3 = Vector3.new(0, 0, 0)The attachment position in world space.
WorldRotation
Attachment.WorldRotation: Vector3 = Vector3.new(0, 0, 0)The attachment orientation in world space, in degrees.
WorldSecondaryAxis
Attachment.WorldSecondaryAxis: Vector3 = Vector3.new(0, 1, 0)The attachment's secondary axis in world space.
Methods
GetExecutionGroup
Attachment:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
SetAxes
Sets the attachment's primary and secondary local axes.
SetAxis
Attachment:SetAxis(axis: Vector3): ()Sets the attachment's primary local axis.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying