DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = 666934860 (x6)

So Im trying to make a system the saves the players data every 5 seconds and Im having a problem

Script

while true do
				if script.Parent:FindFirstChild(plr.Name):WaitForChild("Stats").XP then
					local XP = script.Parent:FindFirstChild(plr.Name):WaitForChild("Stats").XP
					local Level = script.Parent:FindFirstChild(plr.Name):WaitForChild("Stats").Level
					local MaxXp = script.Parent:FindFirstChild(plr.Name):WaitForChild("Stats").MaxXp
					towerData:SetAsync(plr.UserId, XP.Value)
					towerData:SetAsync(plr.UserId, MaxXp.Value)
					towerData:SetAsync(plr.UserId, Level.Value)
				end
				wait(5)
			end

Error

DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = 666934860 (x6)

This is because you are sending too many requests to DataStoreService in a short Period of time, any more will result in an Error

Make sure you read the Limits of DataStoreService

I know that but I changed the time to 15 and it was still giving me that error

I would Recommend making a Table DataStore, that way you can send more Requests rather than sending 3 Requests at a time for one item

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.