local ds = game:GetService("DataStoreService"):GetDataStore("BigTycoonData")
game.Players.PlayerAdded:Connect(function(plr)
wait()
local plrkey = "id_"..plr.userId
local save = plr.leaderstats.Cash
local GetSaved = ds:GetAsync(plrkey)
if GetSaved then
save.Value = GetSaved
else
local NumberForSave = {save.Value}
ds:GetAsync(plrkey, NumberForSave)
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
ds:SetAsync("id_"..plr.userId, {plr.leaderstats.Cash.Value})
end)
This is my saving data script. The leaderstats is fine, and has nothing but leaderstats. I get no errors in the client or server developer thing. Why isnt this saving?

3 comments
the title, the website hates
is api service on
yea