Title, how would I do it..? What I have isn't working,
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
local d = character:GetChildren()
for i=1, #d do
if (d[i].className == "Accessory") then
if (d[i]:FindFirstChild("Handle")) then
local hi=(d[i]:FindFirstChild("Handle"))
hi.Parent=character
hi.Anchored=true
local w = Instance.new('Weld', character)
w.Part0=hi
w.Part1=character.Head
end
end
end
end)
end)
end)

2 comments
So you mean to tell me that I have to choose between the clothes and the hats?
You could remove the player's head from their character model and then weld the hats. As for removing the Head, you could use the Debris service to remove the Head or use a wait() before destroying it. I'm not sure which one would be more resource efficient, but I'm guessing using Debris.AddItem(, ) would be.