When I use that, it is a global table that can be called by any script. (So far I know)
I would like to know how I can add values or more tables inside _G.
Do I have to use table.insert or put the values directly?
And how can I store _G in a database, like Datastore2 or ProfileServicie?
Another doubt that came to me writing this, if _G is a global table, how would I do to save the tables of each player? do I have to create a subtable inside _G or can I save it directly?
While learning about _G is good, I would highly recommend avoiding using it in your code. Use ModuleScripts instead. It will save you headaches in the future. The main fault is that any script can modify _G, and there’s no guarantee that what you want inside of _G has been set yet.