so i have a “Data” folder which contains dialog conversations for NPCs, prices of products, weapon stats, etc. i know that the number one rule is to never trust the client and i was just double checking where the best place is to store your data folder for stuff like this?
i stored my folder inside serverstorage so that the client can’t access and manipulate that data. thanks!
You see, the server can’t see either way changes the client tries to make to anything - except their own character (or whatever is network-managed by them)
If you have data on (EXAMPLE) all of the weapons in your game, exploiters will be able to easily extract the values in the data module if it can be accessed by the client. Also, if it’s only going to be used on the server, the client does not need it anyway.
The best place for data is ServerStorage in most cases, exceptions being when the client needs to access it.
i thought it through and i was like “what if the client needs to access data?”. so data that the client needs i’m storing it in a “ClientData” folder in ReplicatedStorage and i’m storing all server-related data — such as weapon mechanics and product pricing — in ServerStorage to ensure it’s secure and cannot be accessed or manipulated by exploiters.