Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Apr 2015 10:38 PM |
ModuleScript:
local Module={} Module.Print=function(value)return print(value) end return Module
Script: require(ModuleScript)
Print("Hello")
Would it be possible to "spread" the functions to the script? |
|
|
| Report Abuse |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Apr 2015 10:46 PM |
yeah, the easiest way would probably be like:
local stuff = require(ModuleScript); for key, value in next, stuff do getfenv()[key] = value; end |
|
|
| Report Abuse |
|