hi, i was working at my custom DataStore Sistem but at save when i use SetAsync i get this error:
[19:13:25.067 - SetAsync is not a valid member of GlobalDataStore]
but it isn’t a GlobalDataStore
and when i use UpdateAsyc:
[19:22:02.437 - Unable to cast value to function]
my script to save:
function module:Save(values,key,plr,data)
if table.find(Values,values) and plr then
DataStoreService:GetDataStore(tostring(key)):SetAsync(plr.UserId,data)
end
end