local datastore = game:GetService('DataStoreService'):GetDataStore('Codes')
local saveTable = {}
game.Players.PlayerAdded:connect(function(plr)
local key = '_' .. plr.UserId
local tbl = datastore:GetAsync(key, saveTable)
end)
game.Players.PlayerRemoving:connect(function(plr)
local key = '_' .. plr.UserId
datastore:SetAsync(key, saveTable)
end)
I am making a datastore for twitter codes, and this is just a small part of the script. The codes save to the table, but not to the datastore. So when I put in a code, it goes in the table, I leave and come back, then the code isn't in the table anymore. Help is highly appreciated, thanks! :D

2 comments
Player.DataReady has to see with DataPersistence, not Data stores.
I updated it but it still doesn't save nor' load