Most resources online use the datastore method of creating a folder with values and parenting it to the player. Wouldn’t exploiters be able to change the values in this folder and then save with as much money as they want for example, or is this method secure? If not, how would one save a table of data which cannot be accessed by exploiters?
For a Basic tutorial really, which is generally what they are for as a Basic Example of Data Stores, They arent the Best that they can be however, You would need to look deeper within YouTube search or within the DevForum for stuff like: ModuleScripts
or Methods.
They are basically already secure, while Yes the Exploiters can change them, It wont Replicate to the Server unless you tell it to using something like RemoteEvents
which sends Data between Server and Client, There are a few things that replicate from the Client to the Server, Value Changes isn’t one of them. However if the Exploiter has Access to the DataStore and its key, they might (It may not be exactly true) be able to manipulate it.
But overall, you shouldn’t worry about it.
You should Probably Save a table of Data to be more secure and then Apply the Data to the Values or Whatever you are using it for, plus there is also tutorials like this one which helps with handling Player Data better, It overall isnt the “Best” but its a Good one to use.
No they can’t. That method is secure but usually people use module scripts to change values as it’s more adjustable and scalable instead of creating new instances for every value you create.