I have a module script that has different functions attributed to it. I'd like to swap between the functions based on what I need it to do, but I don't want to create a separate variable for each function. Is there a way to swap between the module functions?
Current code strip below:
local animationSet = Animations.Set1() -- How can I rewrite this to be dependent on a variable passed into the function?