Require moduleScript w/ getter functions VS objectValues: doors

I have a diversity of functions for my doors. I don’t want to do door per door objectValues. I’d have a ton, so I want to throw a moduleScript in their instead with an accessible array. Am I mad for wanting to do this? How expensive is require?

require() only truly runs once for each module. After that it just caches the return with any future calls to the module.

require()'s expensiveness is based on your module code. Require merely runs a module script inside your current script (which also means you can use variables from the script requiring it)

ps dont use GetterFunctions, Lua is not Java after all.