I'm trying to create a data store to save my cash value. I keep getting this error however. "DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = clothes-8762695" I do have another script running that uses a data store to save the players clothes. Is it causing an error because multiple data stores are running or? Any help would mean a lot. Thanks
local ds = game:GetService("DataStoreService"):GetDataStore("DuhrooLeaderboard13")
game.Players.PlayerAdded:connect(function(player)
local key = "cash-"..player.UserId
local folder = Instance.new("Folder")
folder.Name = "leaderstats"
folder.Parent = player
local currency = Instance.new("IntValue")
currency.Name = "Cash"
currency.Value = 1000
currency.Parent = folder
local save = ds:GetAsync(key)
if save then
currency.Value = save
end
currency.Changed:Connect(function()
ds:SetAsync(currency.Value)
end)
end)

1 comment
I am using different data stores for both, different unique Id’s that is. I tried adding wait blocks but still getting the error. Thank you for the help though!