I am trying to save a folder with values. So I'm trying to do that by making a table within a table.
This is what I'm trying to do:
["QUEST1"] = {
["Name"] = "Monster Hunt",
["Type"] = "HUNT",
["Number"] = 5,
}
And this is how I've been trying to do it. But I'm pretty new to Lua and tables so I'm having a little difficulty with it.
local activeQuests = {}
for i, quest in pairs(player:FindFirstChild("QuestsTaken"):GetChildren()) do
local valueTable = {}
for j, value in pairs(quest:GetChildren()) do
table.insert(valueTable[j], value)
end
table.insert(activeQuests[quest.Name], valueTable)
end

1 comment
Don't post duplicate questions