Module script config event

So I have a lot of modules in my game and all of them have some custom variables for example playerspeedaccelrate, and I configurate them using a core controlling module using a module function

self.EditConfig = function(module,varname,value)
    self.modules[module].EditConfig(varname,value) --this calls the editconfig function of the module
    return "Complete"
end

and recently I saw a module created by others using a remote event parented to every module that when it is fired from other scripts, the module will handle the value change.

I’m thinking maybe I can replicate that, since it won’t require a script to require the module which saves a lot of time and debugging, as for performance issues I think instead of parenting it to every module I parent it to the core controller.

Will this be a good idea or should I just stick with my current method? Why? In case of performance and organisation etc?

Any help or advice will be appreciated!

2 Likes