Just create a hat and put it into ServerStrorage, and script it for its clones the hat to inside of player. Do not try to create a hat by script, that’s will need more effort. (Note: do not inside player head, inside character)
This didn’t end up giving the StarterCharacter The hat. Did I do something wrong?
Edit: I just realised I made the hat in serverstorage “NightVisionGoggles” but in the script i put “HairAccessory.” However, Even after I fixed the mistake it still didn’t work.
It working (Copying from ServerStorage) perfectly on me.
Try my tool example i created for you (I will delete that after my solution worked)
Problem in your script is game.StarterPlayer is doesn’t able to give you localplayer. You should use RemoteEvent for creating tools like that! Note: “ServerStorage.a” is hat i used to create example.