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

Need help with my datastore problem: RepllicatedStorage and ServerStorage?

Asked by 2 years ago

I set up a data save system onto my game and it works perfectly well in ReplicatedStorage, but when I change the file location to ServerStorage, all the scripts I made suddenly stop working. I check the dev console and the script is working perfectly fine for ServerStorage, but the scripts show errors. I know you cannot use localscripts to access ServerStorage, but I heard ReplicatedStorage is not a safe place to use for saving data. If I use RepStorage, everything runs smoothly and works, but if ServerStorage, only the datastore script works. Can someone tell me how I can make it work with ServerStorage?

0
This is risky, but you may be able to create a remote function that sends information from server storage back to the client, but overall, you're just better off storing stuff in ReplicatedStorage. Use ServerStorage for things that you do not wish for the client to look at. Frometa1998 35 — 2y
0
thanks very much for your reply man it really means alot garbnothrow2 3 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

ServerStorage is not meant for scripts. Instead, use ServerScriptService

0
The client can change the value and it can replicate, which could be risky. Never allow the client to have access to there own money count. Finty_james 269 — 2y
Ad

Answer this question