local DataToSave {}
for _, Stat in pairs(Stats1:GetChildren()) do table.insert(DataToSave, Stat.Value) warn("Player Left, Saving " .. Stat.Name .. " | " .. Stat.Value) end for _, Stat in pairs(Stats2:GetChildren()) do table.insert(DataToSave, Stat.Value) warn("Player Left, Saving " .. Stat.Name .. " | " .. Stat.Value) end PDS:SetAsync(Key, DataTo Save)
end)
local DataToSave = {} for _, Stat in pairs(Stats1:GetChildren()) do table.insert(DataToSave, Stat.Value) warn("Player Left, Saving " .. Stat.Name .. " | " .. Stat.Value) end for _, Stat in pairs(Stats2:GetChildren()) do table.insert(DataToSave, Stat.Value) warn("Player Left, Saving " .. Stat.Name .. " | " .. Stat.Value) end PDS:SetAsync(Key, DataToSave)