My problem is that I have a function that needs to be called before it is referenced. Another words, the code looks like:
doStuff()
local function doStuff() end
and whenever I try to run it, it cannot reference the function doStuff(). My question is how can I call this function without moving the function above where it is called? So I don't want:
local function doStuff() end
doStuff()
since it will cause errors in other parts of my program.