local DSService = game:GetService('DataStoreService'):GetDataStore('RS')
game.Players.PlayerAdded:connect(function(plr)
-- Define variables
local UniqueKey = 'id-'..plr.userId
local PlayerStats = Instance.new('Folder', plr)
local SaveValue = Instance.new('IntValue')
PlayerStats.Name = 'PlayerStats'
SaveValue.Parent = PlayerStats
SaveValue.Name = 'Cash'
-- GetAsync
local GetSaved = DSService:GetAsync(UniqueKey)
if GetSaved then
SaveValue.Value = GetSaved[1]
else
local NumbersForSaving = {SaveValue.Value}
DSService:SetAsync(UniqueKey, NumbersForSaving)
end
end)
game.Players.PlayerRemoving:connect(function(plr)
local UniqueKey = 'id-'..plr.userId
local Savetable = {plr.PlayerStats.Cash.Value}
DSService:SetAsync(UniqueKey, Savetable)
end)
The script broken or something so the error is
508: Exhausted all retries for key: %s HTTP 0 (HTTP 403)
Script 'ServerScriptService.DataStore', Line 15
If you can help me fix that pls

2 comments
Off topic. This is a roblox error. Not on your end.
How do i fix.