Accessory
The Accessory class is an extension to the Hat class, and is also the successor to the legacy Hat system.
It’s designed to be cross-compatible with both the legacy R6 character system, and the new R15 character system. If an Attachment is inserted into the Accessory’s Handle with the same name as an Attachment found in one of the character’s limbs, they will connect, and the properties inherited from the Accoutrement class will be ignored. Otherwise, the Accessory functions identically to a Hat.
Note: If two matching Attachment are found the resulting Weld will be a child of the Handle of the Accessory. This differs from the legacy behavior of Hats where the Weld is always a child of the Head of the character.
Properties
Inherited from Accoutrement:
Vector3
AttachmentForward
[notreplicated]
Sets the offset position of the object on the Player.
CFrame
AttachmentPoint
The exact CFrame of the Accoutrement.
Vector3
AttachmentRight
[notreplicated]
Sets the position of the object on the Player.
Vector3
AttachmentPos
[notreplicated]
Sets the offset position of the object on the Player.
Vector3
AttachmentUp
[notreplicated]
Sets the offset position of the object on the Player.
Inherited from Instance:
bool
Archivable
Determines if an Instance can be cloned using Instance:Clone or saved to file.
string
ClassName
[readonly]
[notreplicated]
A read-only string representing the class this Instance belongs to.
string
Name
A non-unique identifier of the Instance
Instance
Parent
Determines the hierarchical parent of the Instance
Functions
Inherited from Accoutrement:
void
ClearAllChildren ( )
This function destroys all of an Instance's children.
Instance
Clone ( )
Create a deep copy of a Roblox instance and descendants where Archivable = true
.
void
Destroy ( )
Sets the Instance.Parent
property to nil, locks the Instance.Parent
property, disconnects all connections and calls Destroy on all children.
Instance
FindFirstAncestor (
string
name )
Sets the Instance.Parent
property to nil, locks the Instance.Parent
property, disconnects all connections and calls Destroy on all children.
Events
Inherited from Instance:
RBXScriptSignal
AncestryChanged ( Instance child , Instance parent )
Fires when the Instance.Parent
property of the object or one of its ancestors is changed.
Last updated
Was this helpful?