Best way to require Module containing DataStore functions on Client

Let me just test, I’m pretty sure if you call the data store service or attempt change a store on client it will result a error. But just to make sure let me check it.

2 Likes

And as expected, if you call your store in local scripts it will result a error.

local DataStoreService = game:GetService("DataStoreService")
local DataVault = DataStoreService:GetDataStore("DataVault") -- Error Ocurred here

1 Like