Hello, I’m currently working on a combat system and was wondering whether it’s better to split it into multiple ModuleScripts. For example, having a CombatServiceClient module placed in ReplicatedStorage, a CombatUtils module in ReplicatedStorage for shared utilities (such as handling cooldowns, helper functions, etc.), and a CombatServiceServer module in ServerStorage so it can’t be decompiled (I don't know any others was to prevent this).
At the moment, everything is implemented in a single module, and honestly, it’s already starting to look quite messy.
** You are now Level 5! **
but for those who know, ya you should split your code so client doesn't get any server code - or at least not much of it, e.g avoid runservice:isserver()