#does not copy the accessories

1 messages · Page 1 of 1 (latest)

pseudo valve
#

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)

atomic olive
#

Make an r6 rig in studio, add the accessories, name it StarterCharacter and drag it into starter player. Then swap to r6 in avatar build settings

#

you dont need code to change the avatar

pseudo valve
atomic olive
#

You could find some way to detect the accessory names of the player your copying then FindFirstChild() that

median hound
#

and apply it with humanoid:applyDescription(description)