Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i use _G?

Asked by
Tutoola 20
9 years ago

i want to make a table in _G my current code:

_G:table = []
0
In general: avoid using _G. ModuleScripts or BindableFunctions are usually a cleaner appraoch BlueTaslem 18071 — 9y

2 answers

Log in to vote
4
Answered by
BlastNet 250 Moderation Voter
9 years ago

Take a look at this: http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions#G

Here's an example:

_G.tab = {}
1
THanks sir. Tutoola 20 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

I only know one thing I use _G. for and its this:

_G.nirwigsmfd = "asdf"

print(_G.nirwigsmfd)

Answer this question