See attachment for code. The issue here is HumanoidDescription.HairAccessory field is empty after loading a UserId/OutfitId which contains Hair accessories.
Issue Area: Engine Issue Type: Other Impact: Very High Frequency: Constantly Date First Experienced: 2022-03-02 00:03:00 (-05:00) A private message is associated with this bug report
Sorry for this bug. The issue is related to the layered clothing release. As a workaround for the time being you can use HumanoidDescription:GetAccessories() as a way to get hair accessories from the humanoid description.
Also experienced this bug in one of the games I am developing for. You are also not able to use Humanoid Descriptions to overwrite the Characters Hair with setting the HairAccessory Attribute.
game.Players.PlayerAdded:Connect(function(player)
local humDesc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
humDesc.HairAccessory = "6823409166"
player:LoadCharacterWithHumanoidDescription(humDesc)
end)
Do we know if this is related to Roblox removing “Hair” category from the catalog? Catalog and Avatar Editor were switched to “Head Accessories” a while ago, it also makes looking for hair more difficult.