#ModuleScript

1 messages · Page 1 of 1 (latest)

sinful vigil
#

I want to organise my script in a modular way so that it can be access by other scripts, for example its going to be dash script. should i even use a modulescript for this? also if not when should i be using modulescripts to organise my code

native warren
#

so for example if you have a shop script and a click script, you could use a module script to add points because it saves time and makes your code readable

#

module scripts are like global functions in a way

#

for a dash script i dont think you would need one as you would bind it to space bar and call it a day

sinful vigil
#

But, i have another script that will need to interact with the dash script. when for example shift is held there needs to be no dashing or movement.

#

wouldnt the easiest way to do this be through putting it in a modulescript

native warren
#

you could put all dash logic inside a module script