I see it in a lot of Scripts... and I once saw it in Youtubes' Mouse Sensitivity Script... _G Mouse.Sensitivity = 0.5 etc... so plz help me with the meaning...
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:
_G['FunctionName'] = function (parameter) --stuff end
Example:
--Script 1 _G{'AddNumbers'] = function (num1,num2) return num1 + num2 end -- Script 2 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. ~