Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Need help with my datastore problem: RepllicatedStorage and ServerStorage?

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?

2 comments

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.

0

thanks very much for your reply man it really means alot

1 answer

ServerStorage is not meant for scripts. Instead, use ServerScriptService

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.