So someone helped me out when to use module scripts but I was wondering how module scripts could work with a local script. First, how would I pass the player to the module scripts if I was just requiring them and even if I was using functions in the module script to which I could pass the LocalPlayer, wouldn't that be exploitable? Also someone mentioned that I should use remote events/functions for client and server communication but how would I be able to use those in a single-script architecture with module scripts? Hope you guys can help. Thanks!
links to where people said what I mention in the question:

3 comments
What I meant was passing parameters to the function inside the module script throught the Local script would be bad for security right? Anyway thanks!
Oh I see what you mean. Yeah, don't do that, lol.
could you clarify a bit on the remote events/functions a bit please. Sorry to bother you I am just trying to learn.