How could I make a tool that gives a hat?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I would like to learn how I could make a tool that gives a hat, like the Sigil Helmet from Rogue Lineage.

  2. What is the issue? Include screenshots / videos if possible!
    I can’t wrap my head on how to do that. There are no tutorials anywhere, and everything I tried failed.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried to put the hat in ServerStorage, clone it and set its parent as the Character, but it didn’t work.

I just need some help, and there are no tutorials anywhere. Thanks for the attention.

Check out :AddAccessory()

considering there’s a server script placed inside of the tool with the following:

hat= --path to the hat

if char~=nil then

Clicking should give you the hat

Doesn’t seem to work. It removes the hat from ServerStorage but doesn’t apply it to the character.