I’d post this in bug reports but, I’m not a regular, if someone could move this thread there that would be great.
Anyways, Players:GetHumanoidDescriptionFromUserId() returns nothing for hair accessories.
I’ll use my UserID as an example here, if you check [my profile] you’ll see I am wearing a hair accessory.
local Players = game:GetService("Players")
local HD = Players:GetHumanoidDescriptionFromUserId(1490237662)
print(("User hats: [%s]"):format(HD.HairAccessory)) -- > User hats: []
This should return the hair accessories the user is wearing (in this case [7063884027]), but instead returns nothing. I noticed this first start happening last night at around 12 am CST. Other users are also experiencing this issue as well.
Can confirm I’m getting this in my game as well, with the below code it produces no hair on the character; printing the character hair description is also completely blank.
100% of the time, characters will have no hair after doing this. This only began today, some sort of engine bug due to layered clothes being released probably.
-- [ DESCRIPTION DATA ] --
local AppliedDescription = Instance.new("HumanoidDescription"); game.Debris:AddItem(AppliedDescription, 20)
local BodyParts = {"HeadColor", "LeftArmColor", "LeftLegColor", "RightArmColor", "RightLegColor", "TorsoColor"}
local Description = {}
pcall(function()
Description = System.Players:GetHumanoidDescriptionFromUserId(Player.UserId) or {}
end)
for _, BodyColor in pairs(BodyParts) do
AppliedDescription[BodyColor] = (if Class.OverrideColors and Class.OverrideColors[BodyColor] then Class.OverrideColors[BodyColor] else SkinColor)
end
AppliedDescription.HairAccessory = (if Class.NoHair then 0 else (Description.HairAccessory or 0))
AppliedDescription.FaceAccessory = 0
AppliedDescription.Face = 0
-- [ FINALIZE APPEARANCE ] --
Character:FindFirstChild("Humanoid"):ApplyDescription(AppliedDescription)