Modules are created by LUA scripts.
LUA scripts are basically codings that you put into the game that will do whatever you tell it to.
It's kind've like how you'd assume coding a game works. You put in different inputs to get an output that results in the final product.
Question answered, thread closed.