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
Am I doing something wrong or is an engine bug?
