I understand how to require a module script from a local script. However I am having difficulties in trying to require the module script from a server script. Is this possible?
I appreciate all your help.
I understand how to require a module script from a local script. However I am having difficulties in trying to require the module script from a server script. Is this possible?
I appreciate all your help.
It depends where your Module Script is located.
If the module is in ReplicatedStorage
, the server and the client can require the module.
If the module is in PlayerScripts
, the client can require the module.
If the module is in ServerScriptService
, the server can require the module.
If the module is an uploaded module, the server can require the module.
Thereβs no difference in requiring a ModuleScript from a server and from a client. However, beware:
Thank you wevetments and Flubberlutsch, your answers were very useful.