I have been trying my hardest to load a characters avatar from a local script but the only issue I am having is that when I am loading the characters both the dummy and the actual players avatar are not getting the accessories put on and I don’t know why. Thankyou for your time please help me out!!!
for i,v in pairs(game.Workspace.areanas["1"].plrRig:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
v:Destroy()
end
end
for i,v in pairs(game.Workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
local Clone = v:Clone()
warn(v.Name)
warn(v)
Clone.Parent = game.Workspace.areanas["1"].plrRig
end
end
for i,v in pairs(game.Workspace.areanas["1"].AiRig:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
v:Destroy()
end
end
for i,v in pairs(game.Workspace[AI]:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
local Clone = v:Clone()
warn(v.Name)
warn(v)
Clone.Parent = game.Workspace.areanas["1"].AiRig
end
end
I have no idea what is going on