Like let's say a made a hat giver and the person equips the hat given by the "giver", so he decides to leave with the hat on. Has anyone made it so you can save the hat when he comes back?
probably.
It isn't hard, but you have to know which hats the player OWNS (wears) and which is GIVEN.
What if I drop the hat?
- As, WEEEEEKEND. Damn this day... trains.
Just in the script, make a table storing all hats under an unique ID (idk a number, "Hat_Name", ...)
Then if the player selects the hat in a gui it just saves a JSONed table that contains all equiped ^IDs^
If you drop the hat? Well my game is a combat game, so you'd have to die eventually. And Clonetrooper made something where you couldn't drop your hats. So I might do that.