Shared versus _G which should I use?

Personally I prefer using shared as it looks nicer and is a Roblox Global, however _G is a Lua Global so I don’t know if it is better practice to use it? Would someone me able to answer this dilemma.

1 Like

Preferably, none of them. There is rarely any case where you can accomplish something with global tables like shared or _G that ModuleScripts can’t.
shared and _G do the exactly same thing so there is no advantage/disadvantage over using one over another.

1 Like

Hmmm I personally think…

MODULE SCRIPTS

Just learn the basics of module scripts, and you’re good to go. I wouldn’t recommend _G or shared.

3 Likes