Organizing Functions into Folders

Hey, I’ve seen scripters put functions all into 1 folder with module scripts. I was wondering and how I can understand how I can do this as I see it helps organize a bit.

I personally think you should juse modules to store common functions you use, but if you want to use modules to make singular functions in each module and put them all in a folder you could use this template for the modules, and then require them for the function:

return function epicFunction()
print("yes")
end

Tell me if this works.

Okay, and this is for UIS by the way like tweening and stuff basically putting a folder inside with modules separate for tweening etc.

Ok, but did it work for you? Is this what you were looking for?