Hello,
I am trying to apply a player’s appearance onto a rig in a ViewportFrame. However, accessories do not load. They still appear under the rig model in the hierarchy, being child of it. However, they do not appear in the ViewportFrame.
Here is a screenshot showing the lack of accessories on the player ViewportFrame:
And here is a screenshot showing the accessories in the hierarchy:
Here is the script to load the player appearance:
(LocalScript)
plr = game.Players.LocalPlayer
rig = script.Parent
desc = game.Players:GetHumanoidDescriptionFromUserId(plr.UserId)
rig.Humanoid:ApplyDescription(desc)
acc = plr.Character:WaitForChild("Humanoid"):GetAccessories()
for _, v in pairs(acc) do
acc2 = v:Clone()
rig.Humanoid:AddAccessory(acc2)
end
Any help is appreciated!