I working with DataStores and I have this so far:
local DataStore = game:GetService("DataStoreService"):GetDataStore("Test")
local connection = DataStore:OnUpdate("key", function(value)
print("the key was changed to " .. value)
end)
DataStore:SetAsync("key", 1)
DataStore:SetAsync("key", 2)
connection:disconnect()
DataStore:SetAsync("key", 3)
But i says I need a server script to make ASync:() work? |