@PierceQuantum I don’t have the time right now to figure out why but here is a forum post talking about the issue:
Basically set all functions up as local
for now as in:
local function someFunction ()
-- Your LUA code here
end
and then call them by using a local variable assignment such as:
while true do
local a = someFunction()
end
And your code will start to work!
When I get more time I will look into why, and if there is a better way to do this.
-HW
LUA reference manual: https://www.lua.org/pil/contents.html
RTFM if you can (Read the Fine Manual)