How do I make a player/character wear an item through code?

Is there a way that I can make a character wear an item that I found in toolbox and is an accessory? Thanks.

heres some code that should help achieve what you want

item = game.InsertService:LoadAsset(hatid):FindFirstChildOfClass(‘Accessory’) --loads your hat
item.Parent = char --puts it on the player

thats all you should need to do to make someone wear a hat

you can also put the hat in StarterCharacterScripts and it will automatically equip onto everyone when they spawn in

2 Likes

this might help you