Any better idea to make code more scalable (easier to expand)

Soo i found that i can use module called Interactions with functions, for instance:

  • Interactions:Armor()
    or
  • Interactions:Tool()

But let’s say if i would add new mechanic, Interactions:Ability(), then i have to make new function in this Interactions module and create it’s functionality

Is there better way to create such thing? or is this good enough?

1 Like

Well… It depends, I guess. However, what I would do is probably just make a module parented to the iteractions module with all the abilities scripts, or if one is too big, divide the module in 2 and so on. Maybe this isn’t very optimized or organized but that’s what I would do and I think it would be good enough

1 Like