Is saving player data in replicated storage safe?

Replicated storage is an environment, accessed by the client and server.
Replicated storage can be modified by all environments, but if a client does change to this environment, It will only stay like this for the client, and not anyone else. Meaning if Wins.Value = 5 and then a client change Wins.Value = 5000. Then for the server, it will stay as Wins.Value = 5. On the other hand, if the server does a change, this change will be replicated to all the clients, and updated to the new value. But the client cannot update a value without the value being changed through a remotevent or remotefunction. One concern with storing stuff in replicated storage is that other clients can see a player’s data, which might in some cases not be good. I would suggest you store temporarily player data in a module script.

Heres a tutorial for module scripts
https://education.roblox.com/en-us/resources/intro-to-module-scripts

1 Like

As they said:

Datastore is what they were doing, I believe.

I store my data in a similar way in ReplicatedStorage
image

And yes, as long as the data is read by the server, hackers cannot change/modify it.
Storing in ReplicatedStorage is a good option if you do not want to store the data in leaderstats or across players.

Also I suggest you name your player’s data-folders by their UserId just to make reading and writing data easier.

I know you said you were bad at datastores and I used to be (and still kinda am) bad at them too but I’d still definitely suggest using them over replicatedstorage and there’s a YouTube video that I used personally that worked for me and I think it would help you