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)