I need help on this. can anyone help?
✓ ANSWER ACCEPTED
What can i use _G for?
1 answer
✓ Accepted answer
You can use _G. for global (Hence the G.) variables, which can be accessed throughout your game. So say I had one script that read below;
_G.Tag = "Hello Digital"
and another script that read;
print(_G.Tag)
Then the variable would be read through the game and the print function would print Hello Digital.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Two points to mention are nested Tables, and the fact that functions are technically variables in Lua, and thus can be added to Tables.
Ummm... You can explain that because I hardly understood that...
Also there is a separate _G table for server-side and client-side scripts.
@duckwit; Each client gets its own _G for LocalScripts. It's not shared between clients.