The `lua_pcall` parameters were incorrect, the second number signifies the number of parameters the function can return.