Can I see some of your module script? Maybe you incorrectly set something up, like having all functions local, instead of like, for example, function combat.functionname() instead of function functionname()
I just can’t require it in other modules for some reason.
Also after I made a post i noticed another interesting thing. My other Module(CheckModule) has the same issue with unability to require, but works fine unlike the CombatModule:
You also can clearly see that others module are required above this line and they work fine, CombatModule and CheckModule share the same issue, they can’t be required.
These errors are happening because there are others scripts that require CombatModule(CombatModule works in them). But they can’t require it because CombatModule is getting required in the CounterHandler(and it doesn’t work). So CounterHandler breaks every other script, while trying to require CombatModule
id imagine, somewhere, someway, however all this works, somewhere something ends up requiring itself or something when it requires one of the modules, if not that, I have no idea.
My checkmodule is different from others. I use module:function method here. Maybe that’s the cause? And I noticed another thing, when I delete the require(CheckModule) from CombatModule, CombatModule can be required from other moduleScripts. So the problem is in the CheckModule. But what is it?