Do Global Variables linger after script deletion?

If I created a script and define a global variable “_G.Test = ‘yahoo’”, and then the script is deleted (after the variable was defined), will print(_G.Test) in another script still work?

I do not intend to utilize this, though it was a question thst had entered my mind.

Yes, the index will still exist within the _G memory until it’s removed or garbage collected (under specific circumstances)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.