How would I be able to add a month into the DataStore dict? Without using table.insert()
DataStore right now:
Current script (btw when using this the datastore doesn’t change so that’s good, I just want to add a month to it):
local Data = {}
for Years, _ in pairs(GetData) do
Data[Years] = GetData[Years]
end
pcall(function()
ActivityData:SetAsync(Player.UserId, Data)
end)
What my DataStore Table looks like:
local DefaultTable = {
[tostring(CurrentYear)] = {
[Month] = {
[TodaysDate] = {
["ItemsSold"] = 5,
["CommandsUsed"] = 5,
["Hours"] = 5,
["Minutes"] = 5,
["Seconds"] = 5
}
}
}
}