I was wondering if their was a way to call a function from a string as it might simplify my code.
Example of what I have right now;
local gMode = "FFA"
function FFA()
end
function Elim()
end
if gMode == "FFA" then --these if thens feel eww
FFA()
elseif gMode == "Elim" then
Elim()
end
Example of what I am looking for;
local gMode = "FFA"
function FFA()
end
function Elim()
end
gMode() --call FFA's function
The second example obviously doesn't work, but their a way to do it?

2 comments
i thought he wanted to assign it to the function lol
This was exactly what I wanted. Thank you!