Hello, I would like to know if it really is necessary and why create a folder (Parented) in the player? Can’t I just save values and things without creating a folder? What is the utility of creating the folder and why do it
I don’t know if you’re talking about the leaderstats, it doesn’t have to be a folder but it seems to be the most ergonomic choice. You don’t have to, obviously, but then it won’t show up on the leaderboard.
Creating the folder will allow the values to appear on the leaderboard as leaderstats
, if you name that folder as that. If you would like hidden values you could make a different folder not named leaderstats
and put them there, or just parent the values to the player.
For the most part it’s for organization and easy navigation. But say when you’re making players leaderstats, a folder is commonly used as the object for parenting. You don’t need to have your folders inside of the player, they could be in ReplicatedStorage or ServerStorage, it depends on your framework.
Hello, do you think you could give me an example of how I should do it for each player if I want to save an intvalue (for each player) and use replicated storage to save the values to a folder?
Since you’d be saving from the server you don’t need to worry the values being changed by exploiters (unless you have vulnerabilities). You could have a folder in ReplicatedStorage to hold each players data.
Once the player leaves and you save the data, you should delete the players designated folder.
There is no point in storing players data in ReplicatedStorage unless you want the client to easily see the changes made from the server, you are better off storing them in ServerStorage instead.