✓ Accepted answer
Good question.
What is _G?
The built-in _G variable represents a table. This table is saved on either the server, or a local script running on an individual's computer (depending on if you're using a local script, or a server script).
Like all tables, we can read and write data to it by indexing it with either brackets [ ], or a period .
Server-sided
On the server, the_G table is shared throughout all server scripts, no matter their location. However, like everything else, this is entirely separate from local scripts, as local scripts run on the individual's computer. Not the server.
Client-sided
Client-sided is a different story. Remember, since local scripts run on an individuals computer, the data is not automatically replicated to all clients. Just the individual. You can think of it as each individual player being their own server in that perspective.
Answers?
To answer you question specifically, yes. Each player does have their own _G, but ONLY IF it's being stored in a local script. Remember, server scripts have access to the server at all times, no matter where they are. Placing a server script inside a player will not make it local.
Hope this helped, if you have any questions, let me know.
1 comment
Thank you! :)