Funny you should post something about that minutes after I ask about it, lol.
_G is a way to declare and index variables and functions throughout your entire place. If you declare a _G function in one script, and use it in another, the place will know what to do.
Format:
1 | _G [ 'FunctionName' ] = function (parameter) |
Example:
2 | _G { 'AddNumbers' ] = function (num 1 ,num 2 ) |
7 | print (_G.AddNumbers ( 3 , 4 )) |
Output will be 7
~Just remember that if someone answers your question you and that person will get reputation if you accept their answer. There should be a button for it near the voting on the answer. ~