local clone = game.ReplicatedStorage.Catalog[args[2]]:Clone()
for _,accessory in pairs(clone:GetChildren()) do
if accessory:IsA("Accessory") then
accessory.AccessoryWeld.Part1 = workspace[player.Name].Head -- part0 is the handle
workspace[player.Name].Humanoid:AddAccessory(accessory)
end
end
New to accessories, can’t seem to get things working.
You must move the Attachment of the hat down or up until it is well positioned, you can place the Instance on an NPC and move the Attachment until it is well positioned.
This isn’t on a LocalScript, right? I would assume no, because localscripts do not insert accessories correctly.
Personally I’ve never used :AddAccessory(). I would always clone the accessory itself and parent it into the character, and the accessory would respond accordingly by fitting itself on the head properly.
local clone = game.ReplicatedStorage.Catalog[args[2]]:Clone()
clone.Parent = Player.Character --or however you reference it