So I was trying to think of how to Counter of how much Data you have in a Table, unfortunately the Data Counter is not actually a Data Character Counter but just an print statement instead
here is actually the printing:
print("Player Data is "..PlayerDataTable.." Characters")
and here is the output
14:46:12.011 - ServerStorage.Aero.Services.StatsService:162: attempt to concatenate table with string
14:46:12.013 - Stack Begin
14:46:12.051 - Script 'ServerStorage.Aero.Services.StatsService', Line 162
14:46:12.052 - Stack End
Lastly the DataTable of the Player
local DataSample = {
Stats = {
Level = 0;
Coins = 0;
EXP = 0;
Stamina = 0;
Bounty = 0;
Type = "Mage"; -- {Warrior, Mage, Tank}
};
Inventory = {
--[[
["ItemName"] = {
Path = game.ServerStorage.Objects;
Quantity = 0;
Type = "Item"; -- maybe sword potion etc.
Value = 0;
};
]]
};
Quests = {
--[[
["QuestName"] = {
ValueToFillUp = "Sample";
ValuesReceived = 0;
Completed = false;
if quest is done then remove it
}
]]
};
PreValues = {
--[[
-- for quests mainly
["ValueName"] = {
Quantity = 0;
IsFor = "Quest";
MaxQuantity = 0;
}
]]
}
}