generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How to use Global?

Previous Thread :: Next Thread 
xXxXxdragonxXxXx is not online. xXxXxdragonxXxXx
Top 100 Poster
Joined: 30 Dec 2008
Total Posts: 30113
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
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
11 Jan 2012 05:22 AM
http://wiki.roblox.com/index.php/Global_Functions
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
11 Jan 2012 05:27 AM
[ Content Deleted ]
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
11 Jan 2012 05:29 AM
_G["foo"] = "bar"
print(_G["foo"]) -- bar
Report Abuse
Chronok is not online. 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
xXxXxdragonxXxXx is not online. xXxXxdragonxXxXx
Top 100 Poster
Joined: 30 Dec 2008
Total Posts: 30113
11 Jan 2012 02:11 PM
Alright thanks.

* me goes straight to Notepad++ and start making global plugins. *
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image