In the script under this text I save the player data
function dataService.dataSave(plr)
if dataTree.DataStoreName then
local ds = DSS:GetDataStore(dataTree.DataStoreName)
local savedata = {}
for i, child in plr:GetChildren() do
for j, folder in dataTree.Folders do
if folder.Name == child.Name then
for i, v in folder.Values do
if v.Save then
savedata[v.Name] = child[v.Name].Value
end
end
end
end
end
local success, err = pcall(function()
ds:SetAsync(plr.UserId, savedata)
end)
if not success then
warn("Save failed for", plr.Name, err)
end
end
task.wait()
end
and here im calling the function
PLRS.PlayerRemoving:Connect(function(plr)
dataService.dataSave(plr)
end)
Everytime I leave the game tells me they put it in queue cause there were to many saves or sum.