I'm going to get as specific as possible. I'm currently making a server manager that uses a complex require() function to load the MainModule. I use the getfenv version of require.
My code of requiring: https://gyazo.com/66ce8fccb7aed4e72e71d30fa5b93a52
Error from the requiring script: https://gyazo.com/fd2100c0145ea4cc884c9db7dd5eca30
I get an error from the script that requires the MainModule, not sure if my way or requiring is the reason why. I also use :IsStudio() to prevent an ugly error in the players console if they're testing their game. I also have a basic :Remove() function for visuals.
Error from my MainModule: https://gyazo.com/399733bf1182ac9d721079c70b1a5888
Line 43 of my MainModule script: https://gyazo.com/5a8a12e11e7109995e95a20c04a91191
I feel like the error is me requiring the second module inside my MainModule, or maybe I'm not using a wait() function.
Finally, an error from my AdminProcess module: https://gyazo.com/fdc5cfaea3b2cd48b9726e999e3759ef
Line 21 of my AdminProcess module: https://gyazo.com/ad5915af7e2d7f1c4af06360d3a044ec
My stuff hasn't been finished yet, so I don't know if these errors are completely affecting my system. If you can help me, thanks.