#Help me ai sold fr
1 messages · Page 1 of 1 (latest)
Module scripts are a way to use important functions in any script without copying the code.
Letâs say you have a function called SpawnHitbox(). If you have many scripts the need that function, you can move it into a module script so all of them can use it without copying code.
đĄ Want more game dev content + early access to videos?
đ https://gnomecode.com/academy
Confused about module scripts? Look no further! This 8 minute primer explains what you need to know along with a few examples to get you up to speed.
S O C I A L S
đ§ââïž WEBSITE https://gnomecode.com
đ DISCORD https://discord.gg/utqq7zM
đŠ...

hahah duality of mankind đ
What
Not fully
You can think of a module script as a container where you can put things such as functions or variables, and other scripts are able to access that box and whatâs inside it
Also be careful of server and client access
not specifically functions
Itâs mainly used for functions
not really
Theyâre a way to use important functions in any script without copying them
âŠ.
Yes they are?
you can just store variables too, think of pet sim, they use one module script for each pet information that they need
and there's no function there
Cuh
that's not really a good definition of what a module is, it can be whatever you want, a variable, a table, a function, but not specifically need to store important functions
Yeah ofcourse but their primarily used for functions, that doesnât mean they donât have other uses
OOP is also a good use of module scripts but itâs less used than just functions
why primarily used for functions?
Cus what else 
Because itâs an easy way to practice DRY
Readable and efficient code
^
^
-# This poor guys form
^
its mainly used for functions really depends on what you need to do
Let the ranked scripters help people
?
But yes, you are kind of correct
If you somehow got statistics of all use cases of where and how module scripts are used, primarily for functions would be a huge chunk of them.
that's not the debate
As I mentioned earlier, that in no way means itâs the only use, but itâs the most common one.
You sent a take so stupid I contemplated on if it was ragebait or not before responding.
I did not say anything incorrect?
you're just saying again and again that it's primarily for functions and that is not real
they're just made for anything you want to re use
but not primarily funcs
just anything
Which are primarily functionsâŠ
no? đ€
it can be whatever you want
why there's a primarily? is just for re using anything you want
Whatever, you clearly donât understand the meaning of the words âprimarilyâ, âcommonâ and âstatisticsââŠ
but like that is not really my point, in the dude message it was only talking that it is for using important functions in any script without copying the code
which is in fact only a use of infinite use cases of modules?
Itâs a good enough example to set the expectation of what your most common use of module scripts in the future will be. Itâs not the only use and neither of us said it was.
but you're talking with somebody that does not know nothing about module scripts
and you're going to make him think that can only have functions
What? đ
Get s1 first then weâll talk
first time ragebait kinda obvious
It's a function embodied as an instance
** You are now Level 10! **
What is buddy yapping about
Am I not wrong?
How do you idiots not understand
just like how you can return with a function, you can return with a module script
Reusability too