Hey. Today I keep getting an error about a module complaining that it’s being recursively required, even though it doesn’t even call require anywhere inside it. I’m requiring the module in ten separate LocalScripts/ModuleScripts within a ScreenGui inside of StarterGui.
The issue is that I’m unsure where else to look for require loops. I’ve looked in all 10 scripts, but I am requiring 5+ modules in each of those scripts. All this module does is clone a menu frame and provide a few UI helper functions such as setting the menu top bar and creating different types of menus.
I’ve even tried asking ChatGPT (using it as a search engine) since all I could find on these forums were people very obviously cyclically requiring their own modules. I’ve even used a command bar script to scan through all my client scripts to hopefully find a cyclic require tree, to no avail of course.
I’m just not sure where to go on from now. Any ideas? I’ve left attached (in order) the recursive require error, the Inventory LocalScript, the Shop LocalScript, and the DeclarativeGui script.
One last thing I initially forgot to add in the original post was that it seemingly only happens occasionally and I haven’t found a reliable way to cause the issue to occur. All I know is that it never appears in Studio, not even in a local server with multiple players and not with the Studio network lag setting, even if it’s set to 2,000ms of ping. I’ve only seen it in public servers and it seems to happen more commonly when you have higher ping and in servers with 2-3+ people, but sometimes it still happens even outside of those circumstances.
There have been Roblox server issues today so I’m not totally ruling out that there could have been some change on their end that hasn’t been documented anywhere I’ve looked.