I'm trying to make a command which allows the speaker to impersonate another player by taking their, Clothes, Accessories, BodyColor, Packages and Faces. However, I've managed to do them all except faces. Everytime I try to do it, the face doesn't copy and go onto the other player and i'm not quite sure. I've remove my lines in which had the decal so at the moment it only copys the other players things except face but I would be really thankful if someone could help with copying the face. Thank you
elseif cmd == "/e impersonate" and getRank(Player) >= 3 then
local targets = findTargets(args[2])
if targets ~= nil then
for _, target in pairs(targets) do
if target ~= nil then
local char = target.Character
if char ~= nil then
for _, child in pairs(Player.Character:GetChildren()) do
if child:IsA("Shirt") or child:IsA("Pants") or child:IsA("Accessory") or child:IsA("CharacterMesh") or child:IsA("BodyColors") then
child:Destroy()
end
end
for _, child in pairs(char:GetChildren()) do
if child:IsA("Shirt") or child:IsA("Pants") or child:IsA("Accessory") or child:IsA("CharacterMesh") or child:IsA("BodyColors") then
child:Clone().Parent = Player.Character
end
end
end
end
end
end
