Hello! I’m currently trying to make a hat equip system for my game though it appears as though the hats can’t equip. I’ve so far got up to having the items in my inventory and having the box opening system. I just can’t figure out how to equip it. There is also a folder in the player named wardrobe where hats are stored as string values. Any help is appreciated.
You could edit a player’s HumanoidDescription.
local humanDesc = game.Players:GetHumanoidDescriptionByUserId(userId) or game.Players.LocalPlayer.Character.Humanoid.HumanoidDescription
humanDesc.HatAccessory = accessoryId
game.Players.LocalPlayer.Character.Humanoid:ApplyDescription(humanDesc)
Note that I wrote that inside a local script but you should do so inside a server script so others can see changes.
1 Like