Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I clone a Player Head, and it's accessories on it?

Asked by 3 years ago
Edited 3 years ago

I've been trying to figure out how to clone an entire player head on the click of a gui button, but I can't get the accessories on the head. This is my code for getting the accessories:

`for i, Accessories in pairs(player:GetDescendants()) do
    if Accessories:IsA("Accessory") then
    newAccessory = Accessories:Clone()  
    newAccessory.Parent = Model
    newAccessory.Handle.AccessoryWeld.Part0 = newAccessory:FindFirstChild("Handle")
        newAccessory.Handle.AccessoryWeld.Part1 = Model.Head
                    ``
        Accessories:Destroy()
end
end`

Is there a problem with the code? Also is there a way to only get hat accessories instead of others like back accessories?

0
(Edit) Sorry I didn't know how to format the code block ~.~ FastMasterMustache 5 — 3y
0
Have you tried humanoid description? Dovydas1118 1495 — 3y

Answer this question