I am currently making an obby-style game where one of the incentives in completing levels is unlockable hats. So far I was able to make the actual hat giver work (player touches part and has badge —> hat goes on player), but I’m unsure how I would make it so that when you respawn or get teleported to another place (within the same game), then you keep your hat equipped. Any help would be greatly appreciated!
You could have a stringvalue in the player which saves the name of their hat. Everytime they respawn you can take the value and use it to find their hat.
You can use something called DataStoreService to save data across different servers. Here is an official article you should read on datastores.. Building on top of what @sau2000 said, you can read the data once when the player first joins the game and only update the StringValue if they, for example, reach one of your checkpoints or incentives. Good luck.
1 Like