Intended:
myModule = require(myModuleScript) myModule()
I forgot how to accomplish. Every example references something similar to myModule.innerFunction()
but I don't want that. I swear I've done it before
You can just return a function???
— module return function() print("nice") end —script local module = require(module) module() —> nice
and like saSlol said, you can utilise the __call
metamethod to call the table.
Nevermind my brain hurts. This is impossible as the require function simply inferences a dictionary of functions.