I'm quite interested in learning to use Module scripts to clean up my code. However, I'm a bit confused as to how they work and the tutorials/blog post don't explain it sufficiently.
I'm wondering how I can have a module script run using the data from the specific script that is calling require()
For example, if a monster is 30 studs away, and I want the code to run if it is less than 40 studs away, how can I have the module script access these two values? Should I just put value instances as the module script's children and have it check those? |