Hello, I'm currently messing around with data store and trying to do things. The code I need help with is :
local ds=game:getService('DataStoreService');
local mds=ds:GetDataStore('0x111999555','main');
local ads=mds:GetDataStore('accounts','accounts_storage');
The error I get is : 15:38:00.590 - GetDataStore is not a valid member of GlobalDataStore 15:38:00.592 - Script 'Workspace.Script', Line 3 15:38:00.593 - Stack End

5 comments
Thank you! This does answer my question, but why does ROBLOX disallow data stores running on data stores?
A DataStore is pretty much like a folder. Inside a DataStore you get entries, which include keys and values. A key is pretty much the name of the entry, and the value is the value that the entry holds (As of which can ONLY be numbers, strings, booleans, or tables). They created DataStores as folders to help with organization. Think of it like real life. Would you put a folder inside of a folder to
Would you put a folder inside of a folder to organize your things? Nope; you would have one folder for everything in that subject. It's pretty much the same thing. The DataStoreService holds the DataStores (the folders). Here's a helpful analogy: The DataStoreService is a 3 ring binder, and the DataStores are the folders which are inside the binder. You wouldn't put a folder inside of a folder; yo
You wouldn't put a folder inside of a folder; you would just get a different folder for that subject (like creating a new DataStore in the DataStoreService). :)
Okay, thanks!