Module Script asking

Hello guys i’m Yeildingsavage23 and i’m currently studying the module script as a learned module script is a table and you can insert a function on it and you can call the function on the different type of script like normal script and local script without typing again the function

For example:

I have a module script and function inside of it.

For example that functions giving a money

And I want this function run into different script without typing it again.

The first way is by touching the part.
And the second way is by clicking the button.

So i require the module on two difference script which is the local script and normal script

Normal script is on part which is when you touch it will give you money

And the second is local script which is on the button which is when you press the button it will give you money

So that’s what i understand on module script

Correct me if i’m wrong on understanding the module script.

Thank you for reading and i also answering.

You’re understanding so far so correct. But remeber if you require ModuleScript at LocalScript, it will run on a local environment in which means your changes won’t be replicated to the server and only will remain locally.

1 Like

Oh so that’s mean the money I’ll get is not filtering enebled or only me can see that

If you run the function of module script on the local script, yes only you’ll be able to see or have the changes you made for money.

1 Like

Thank you so much now my confusing is queer and now I can use the module script :wink::grin: