for functionName, _ in adminOptions do
AdminPanelGuiManager[functionName]()
end
SOLVED
for functionName, _ in adminOptions do
AdminPanelGuiManager[functionName]()
end
SOLVED
You basically solved your own question haha. This is exactly how you do call a function in a table.
How are your tables set up?
If the set up was like this:
local functions = {
["Test"] = function(arg)
print("Test function")
print(arg)
end,
}
local tbl = {
["Test"] = true;
}
for key, v in pairs(tbl) do
functions[key]("Testing")
end
Then what you have should work.