local MegaTable = {
Stats = {
Level = Player.leaderstats.Level.Value,
EXP = tonumber(Player.EXP.Value),
},
Inventory = {}
}
--THIS IS WHERE IT STOPPED SAVING, IT SAVED BEFORE I ADDED THIS
for i, tool in pairs(Player.BPK:GetChildren()) do
table.insert(MegaTable.Inventory, 1, tool.name)
MegaTable.Inventory[1] = {
Damage = tool.Damage.Value,
Magic = tool.Magic.Value,
SellValue = tool.SellValue.Value,
Upgrades = tool.Upgrades.Value,
MaxUpgrades = tool.Upgrades.MaxValue,
Rarity = tool.Rarity.Value,
Color = tool.Rarity.Color.Value,
Type = tool.Type.Value,
}
for i, tbl in pairs(MegaTable.Inventory[1]) do
print(tbl)
end
end
--THIS IS THE END OF WHERE IT STOPPED SAVING, IT SAVED BEFORE I ADDED THIS
local s,e = pcall(function()
MegaTableSave:SetAsync(Player.UserId, MegaTable)
end)
My level also stopped saving after adding this, there's no errors. Does anyone know why? (Look at the script comments)
