A friend helped me make this script so a dummy can copy the local player's appearance, but it has the problem that it only copies the clothes, not the accessories. Could someone help me make it copy the accessories?
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local head = character:WaitForChild("Head")
local dummy = workspace:WaitForChild("Dummy")
local dummyhead = dummy:WaitForChild("Head")
task.wait()
for i, v in pairs(dummy:GetChildren()) do
if v:IsA("Pants") or v:IsA("Shirt") or v:IsA("CharacterMesh") or v:IsA("BodyColors") or v:IsA("Accessory") then
v:Destroy()
end
end
if dummyhead:FindFirstChild("face") then
dummyhead.face:Destroy()
end
for i, v in pairs(character:GetChildren()) do
if v:IsA("Pants") or v:IsA("Shirt") or v:IsA("CharacterMesh") or v:IsA("BodyColors") or v:IsA("Accessory") then
v:Clone().Parent = dummy
end
end
if head:FindFirstChild("face") then
head.face:Clone().Parent = dummyhead
end
(The image shows what the dummy looks in game)