|
| 11 Jan 2012 05:01 AM |
| I had known it for a long time, but then lil' after I stopped scripting, I forgot how to use Global, pretty sure it's _G, but I dont know what to do after. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2012 05:22 AM |
| http://wiki.roblox.com/index.php/Global_Functions |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 11 Jan 2012 05:29 AM |
_G["foo"] = "bar" print(_G["foo"]) -- bar |
|
|
| Report Abuse |
|
|
Chronok
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 402 |
|
|
| 11 Jan 2012 06:54 AM |
_G.myFunction = function() print("This is a function in the shared table.") end _G.myFunction()
> This is a function in the shared table.
{ ["Chronok"] = "Intermediate scripter/programmer." } |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2012 02:11 PM |
Alright thanks.
* me goes straight to Notepad++ and start making global plugins. * |
|
|
| Report Abuse |
|
|