Storing module functions in a script

So say I have this module which has a few functions in it; how would I go about stashing one of those module functions directly within the script so I can use it without having to call upon module.FunctionName() every time?

You would just set it to a variable.

local moduleFunc = module.FunctionName

-- How to call:
moduleFunc(arg1, arg2, arg3)
-- Same as
module.FunctionName(arg1, arg2, arg3)
1 Like

Thx
I wasn’t sure if it was really going to be that easy so had to ask

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.