LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 07:31 PM |
| the notation for a _G function |
|
|
| Report Abuse |
|
|
| |
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 07:39 PM |
| can i get some real help pl0x |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:40 PM |
_G.PIE = {"APPLE", "BLUEBERRY", "STRAWBERRY"}
--other script
if(_G.PIE ~= nil) then for _, v in pairs(_G.PIE) do print(v) end end |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 07:42 PM |
| I said _G function, not array |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:43 PM |
_G, the global Lua table
http://wiki.roblox.com/index.php/G
If it says it is a table, it is. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:45 PM |
_G.FUNCTION = function(isAwesome, ...) print(...) if isAwesome then workspace.LV1Z:Destroy() end end |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 07:45 PM |
| So then how do you do a global function? |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:46 PM |
_G.LELELE = function() --bleh end |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:46 PM |
| I still think a bindable function is a more understandable easier way of doing this :P |
|
|
| Report Abuse |
|
|
| |
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 07:47 PM |
@mylifeis2cooldlol
is trying to kill me |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 07:58 PM |
You have the wrong person who was doing that :P
I was just making a pie type script and changed the header to pie :P |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 12 Aug 2013 08:02 PM |
I figured it out
_G.blah = function() --code end
another question how would you run two functions at once? |
|
|
| Report Abuse |
|
|