Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Are putting Stats such as money in replicatedstorage better than putting it in the player?

Asked by 5 years ago

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?

0
Putting things in ReplicatedStorage is not safer than putting them in the Player. Exploiters can still access RS and its descendants. DeceptiveCaster 3761 — 5y
0
Honestly, if you think about it, you should never handle stats on the client. If you were to even work with values (although I recommend an OOP structured way of doing this), you should put them in ServerStorage as the Client (the presumed exploiter) cannot access it. saSlol2436 716 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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:

  1. You decrease the amount of instances in your game which reduces lag
  2. It's much safer then putting it in ReplicatedStorage or Player
  3. 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

Ad

Answer this question