Expected Behavior:
When the ShirtTemplate is replaced, the shirt should load a shirt with a Roblox logo on it instead of removing the characters shirt.
Actual Behavior:
I have an avatar editor system in my game. If a shirt or pants is content deleted and a player wears the content deleted item, it fails to load the Roblox shirt with the logo and instead the player appears naked. No text appears in the output window either. However some assets do successfully load the Roblox logo shirt and throws a “Humanoid::ApplyDescription() Failed to load Shirt, default applied” warning.
Do you have anymore details to repro? What I’ve tried to do is create R15 and R6 Humanoid characters on the client, then apply a HumanoidDescription with a good shirt to them (and it applies correctly). Then I apply a HumanoidDescription with 915638408 in the shirt slot, and I get the default shirt (with the roblox logo) applied, and get the warning in the output. What should I do different to repro?
wait(5)
local player = game.Players:GetPlayers()[1]
player.Character.Humanoid.HumanoidDescription.Shirt = 915638408
player.Character.Humanoid:ApplyDescription(player.Character.Humanoid.HumanoidDescription)
you’re using the system a little incorrectly. You shouldn’t make changes to the HumanoidDescription found under Humanoid. The code should be written as follows:
wait(5)
local player = game.Players:GetPlayers()[1]
local descriptionClone = player.Character.Humanoid:GetAppliedDescription()
descriptionClone.Shirt = 915638408
player.Character.Humanoid:ApplyDescription(descriptionClone)
Try this. It’s using a new Id. I accidentally chose one of the only content deleted ids that was functioning properly.
wait(5)
local player = game.Players:GetPlayers()[1]
local descriptionClone = player.Character.Humanoid:GetAppliedDescription()
descriptionClone.Shirt = 865700638
player.Character.Humanoid:ApplyDescription(descriptionClone)