I’ve been trying to design a winners podium system for my game.
However when I try to run :LoadDescription the character is not loaded correctly.
You can clearly see from the demo below when LoadDescription is loaded the first time, the character is loaded correctly. However, on the second time, the player loading fails.
Any ideas on why this would be happening?
for i,v in pairs(PodiumCharacter:GetDescendants()) do
if v:IsA("Accessory") or v:IsA("Pants") or v:IsA("Shirt") or v:IsA("ShirtGraphic") or (v:IsA("Decal") and v.Name == "face") then
v:Destroy()
end
end
PodiumCharacter.Name = player.Name
PodiumCharacter:WaitForChild("Humanoid"):ApplyDescription(Players:GetHumanoidDescriptionFromUserId(player.UserId))
and you also delete that face and other objects, which makes it impossible to load HumanoidDescription a second time.
which means this part of the code makes no sense, because when you change the HumanoidDescription it’s changing id’s of accessories and parts etc automatically, it just removes objects where these id’s can be implemented.
for i,v in pairs(PodiumCharacter:GetDescendants()) do
if v:IsA("Accessory") or v:IsA("Pants") or v:IsA("Shirt") or v:IsA("ShirtGraphic") or (v:IsA("Decal") and v.Name == "face") then
v:Destroy()
end
end