Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What Does "_G" Mean?

I've searched on the wiki but i cannot find it, here is my last resource.

1 answer

✓ Accepted answer

A quick wiki search will bring you to this page: http://wiki.roblox.com/index.php?title=Global_function

A _G command essentially holds a variable or a function that can be used in other scripts (_G meaning global). So if I went _G.Cats = "Cats" that would save the word cats in a global variable. print(_G.Cats) -- "Cats"

Also just be aware that Global values saved in a localscript will not be available to server scripts and vice versa.

1 comment

0

Thanks dude you explain very well!

This discussion is preserved as it was. New answers, comments, and votes are closed.