They will still exist in the lua state that you created until you close this state. Variables are bound to state, not to script file.
change
As noted in the comments, local variables will be garbage collected when they go beyond. Another caveat is that Lua supports closures and upvalues, so scope may not always be completely obvious.
Nick van brunt
source share