I am trying to loop through everything in a module so I get the game’s versions BUT, for some unknown reason in this script “i” is a name of the table and “v” is nothing.
for i, v in pairs(main.IFRF) do
print(i, v)
local textlabel:TextButton = script.Parent.Parent.Parent.Parent.VersionList:WaitForChild(tostring(tonumber(i)))
textlabel.Text = v
textlabel.Visible = true
end
This is the module in case you need to see it
local versions = {
["IFRF"] = {
["Super Plasma Core 475"] = {
["Game Version"] = 475,
["Progress"] = "Unknown",
["Discontinued"] = true,
["More Info"] = "This belongs to one of the first versions of IFRF."
},
["Super Plasma Core 917"] = {
["Game Version"] = 917,
["Progress"] = "Unknown",
["Discontinued"] = true,
["More Info"] = "This is a first revamp attempt, but it was a failure."
},
["Super Power Core 0.1"] = {
["Game Version"] = 0.1,
["Progress"] = "Unknown",
["Discontinued"] = true,
["More Info"] = "This is a second revamp attempt which was a success"
}
}
}
return versions
Please help