Have multiple Datastores

Hello, I was wondering if it was possible to have multiple DataStores for one player. Not multiple values in one datastore, multiple DataStores

2 Likes

You can have multiple DataStores by creating another variable using GetDataStore and name your new DataStore.

Example:

local DSS = game:GetService("DataStoreService")

local DataStore1 = DDS:GetDataStore("") -- Name of your main DataStore here
local DataStore2 = DDS:GetDataStore("") -- Name of your new DataStore here
3 Likes

Yeah, 100% possible. I do this all the time.
I usually use one Datastore to save number values, and another to save strings, which are usually item names.

If you’re asking this, I assume you already know how to use datastores, so im not going to bother scripting an example for you, but if you do need help feel free to ask.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.