Im trying to make everything safe so no hacker can access it and i heard a hacker even with FE on if he wanted could access the player and change the values but I never heard that a hacker could access something on the server like ReplicatedStorage So I am wondering if I should put stats in replicated storage cause that sounds safer to me? which is atleast more safer or is there something more safer than these 2 options?
Hello! I'm BlackOrange3343 and I'll be helping you today!
The best solution to your question is keep everything on the Server
in a Table
. There are many benefits from this:
- You decrease the amount of instances in your game which reduces lag
- It's much safer then putting it in ReplicatedStorage or Player
- There are other benefits and such but I'll stop here
Now you might be wondering: "How would I access the data?". What you want to do it add a RemoteFunction
to return the data from the server to the client. If you want to update data, do it on the server.
If you really must choose between ReplicatedStorage and Player I'm gonna be honest there isn't much in terms of difference other then different parents. Both of these options replicate the descendants to the Client. But If you really must I would go with Player just because it already is automatically sorted. I mean for ReplicatedStorage you would have to create and remote a folder each time player joins and leaves. By putting the Stats in Player, it's more automatic and less instances.
Hopefully this helped. Best of luck developer!
BlackOrange3343