Is it alright to require ModuleSripts underneath the script?

I don’t really know where I found this, but I remember reading about how it’s not a good practice to put ModuleScript underneath scripts and require it from there. As it was stated that it would cause problems or something. For example I would go

-- Inside script
local ModuleScript = require(script.ModuleScript)

Is that not true?

1 Like

I don’t think that’s true. It won’t cause any problems.

I have been doing this for my game , where I have a main game mode handler and inside it a lot of modules indicating each Game mode. So far it has not been causing any problem , so i guess its fine.

1 Like

I’ve done this for a long time, it’s no big deal (Although I tend to organize them under a folder too).

this will make defining the script harder