Can you access the same DataStore from different scripts?

Well the title says it all

In script 1:

local DataStoreService = game:GetService("DataStoreService")
 
local myStore = DataStoreService:GetDataStore("DataStoreTest")

then in another script:

local DataStoreService = game:GetService("DataStoreService")
 
local myOrderedStore = DataStoreService:GetOrderedDataStore("DataStoreTest")
1 Like

Yes, you certainly can.

1 Like