Are you able to use ModuleScripts to hold datastores, and call said datastores from a serverside script globally?
Module:
local pDM = {}
-- Services
local DataS = game:GetService('DataStoreService')
local RepS = game:GetService('ReplicatedStorage')
pDM.DataStores={
MainInventory = DataS:GetDataStore('MainInventory');
LastGameData = DataS:GetDataStore('LastGameData');
LiveCodes = DataS:GetDataStore('LiveCodes');
}
ServerScript:
PDM.DataStores.MainInventory:GetAsync()
Would this work properly?