All hats have been converted to use the new Accessory class.
Additional information
Blog
dev forum
The new system uses Attachments which connect to the same attachment name in the players character model.
To add an accessory we should use the new system available in the humanoid called AddAccessory which will add the accessory to the character model.
A small example
local hat = game:GetService('ReplicatedStorage'):WaitForChild('Morphs'):WaitForChild('SithA'):WaitForChild('EyeciesHat')
script.Parent.MouseButton1Click:connect(function()
local humanoid = [some path to the humanoid]
humanoid:AddAccessory(hat:Clone())
end)
I hope this helps please comment if you have any questions about this code.
1 comment
Is the hat archivable?