CytheurJoin Date: 2014-08-12 Post Count: 7328 |
woah
Stuck in 2013 with LMaD |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
woah! |
|
larr1212Join Date: 2015-01-06 Post Count: 259 |
I prefer local variables myself.
|
|
OzzyFinJoin Date: 2011-06-07 Post Count: 3600 |
explain pls |
|
Hedr0nJoin Date: 2016-01-05 Post Count: 1524 |
woah woah |
|
|
Yee, an example would be when you need to do a debounce. |
|
|
x_oJoin Date: 2015-06-04 Post Count: 4378 |
woah guys
guys woah
woah
|-/ |
|
|
|
What's a global variable? |
|
|
I believe you mean Global function (_G) or the Global table.
Either way, don't use it. It is horrible and has few applications where a more efficient and nice way can't be used (Remotes eh) |
|
|
hahahahahahahahahahaha
You use _G for NUMEROUS reasons, Remote events are not an alternative to _G |
|
OzzyFinJoin Date: 2011-06-07 Post Count: 3600 |
"Either way, don't use it."
lolll
I never use it but there's nothing wrong with it |
|
x_oJoin Date: 2015-06-04 Post Count: 4378 |
it's possible to use modules as a replacement for _G
remotes? you must be a comedian
|-/ |
|
|
|
"
I believe you mean Global function (_G) or the Global table.
Either way, don't use it. It is horrible and has few applications where a more efficient and nice way can't be used (Remotes eh)"
-10 respect
Firstly a function is a type of variable, as is a table, both of which, as well as string values and the like, be stored in a _G. variable. Remote events are NOT a replacement for global variables, WTF!?
Although, my personal preference is to have value instances, it is acceptable to store than as a _G.
|
|
morashJoin Date: 2010-05-22 Post Count: 5834 |
"-10 respect"
woah |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
People stop getting "_G" and "global variables" confused. In "vanilla" Lua it would be accurate, but this is Roblox where _G is NOT a reference to the global environment.
"_G" is not the "global table" in Roblox, it's just a regular table at this point. |
|
CytheurJoin Date: 2014-08-12 Post Count: 7328 |
like woah
Stuck in 2013 with LMaD |
|
|
https://www.youtube.com/watch?v=_ByYTjR0Yi0
|
|