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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|