Greetings! I have went a bit throught the forum and I have found multiple topics regarding this. While it appeared to be resolved for a period, it’s now broken again. Atleast for me. This is my code I am using:
local function showActivePlayer()
task.spawn(function()
local player = game.Players.LocalPlayer
local framesUi = Retrieve.frames()
local mainUi = framesUi.avatar_edit
local PreviewArea = mainUi:WaitForChild("PreviewArea")
local Rig = nil
if PreviewArea.AvatarView:FindFirstChild("Rig") then
Rig = PreviewArea.AvatarView:FindFirstChild("Rig")
else
Rig = script.Rig:Clone()
Rig.Parent = PreviewArea.AvatarView
end
local desc
local succ,err = pcall(function()
desc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
end)
if succ then
task.wait(5)
Rig.Humanoid:ApplyDescription(desc)
else
warn("An error occurred while trying to fetch the Character Description:",err,"Retrying.")
task.wait(0.1)
showActivePlayer()
end
end)
end
It seems you are using a custom rig. Accessories will not apply without the proper Attachment instances parented to the Head. Please ensure your Rig hierarchy looks something in the name of this:
I have used a basic rig that spawns in upon using the “Spawn Rig” dummy. Why shouldn’t it work when it’s basically the “official” way to spawn in a Rig if you get what I mean.
Moon Animator’s rig importer I’m pretty sure only imports rigs optimized for animating. Unless you got some other script deleting character’s accessories, there’s no other reason why ApplyDescription wouldn’t work unless some Attachments are missing.
Try using ApplyDescriptionReset if you’re most certainly positive you have the required Attachments.