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: Difference between Module Script & _G?

Previous Thread :: Next Thread 
Ripull is not online. Ripull
Joined: 21 Jul 2008
Total Posts: 14249
21 May 2014 08:41 PM
What is the difference, benefits etc of using Module Scripts over _G?
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
21 May 2014 08:43 PM
They are two very different things. ModuleScripts are more like classes and _G is to store variables in a place all Scripts can reference.
Report Abuse
Ripull is not online. Ripull
Joined: 21 Jul 2008
Total Posts: 14249
21 May 2014 08:50 PM
Also, if there a way to get a specific function from a module script, or must I dedicate 1 module script object to each function?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 May 2014 08:59 PM
You can treat a module script as an API. Since technically that is what Roblox made it for. And you can have as many functions as you want per module script
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