Can I make a module script use the variables from the script it is called to?

I’m working on a locker system and shop system which both use the same functions. However, I don’t want to change variables in a module, as that would affect the other script using the function as well. Is it possible for the module functions to use the variables in the script they are required with, so one module would use two separate sets of the same variable to run.

Modules functions essentially replicating over.

U can create separate module classes with OOP if that’s what you are looking for

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.