Shared vs _G; What's the Difference?

_G

https://gyazo.com/5090b37208a573f98d5750cee0f40497

shared

https://gyazo.com/cd8909955ceaf59fbbed1582beaaf6bb


I know that I can use a Module to share data between scripts or use a Bindable Object and a Remote Object for Server-Client, so please do not mention those methods, I just want to know the differences between _G and shared.

I know for sure that they aren’t the same Table.

-- You can't do 

shared.Test = 'Test'

-- and do

print(_G.Test)

Output --> nil
5 Likes

according to https://scriptinghelpers.org/questions/19391/shared-vs-_g

13 Likes

It’s useful for having two separate Global tables, I guess.

7 Likes