Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use Private Modules?

Asked by 8 years ago

I know how to use ModuleScripts, but I'm unsure as to how exactly I would use a private module.

Would I use it like a normal ModuleScript, or would the private module run its own code, or what?

1 answer

Log in to vote
0
Answered by 8 years ago

To create a private Module

Create a standard ModuleScript, and make the name of it MainModule. Upload it to Roblox, and you're done.


To use a private Module

Just do require(moduleId) and it will load in the module for you. This only works on Roblox servers, so you won't be able to test in Studio if you're using it.

0
I know that much, but do I need to use it like a normal ModuleScript, or will it run itself? MINEBLOX106 55 — 8y
0
"Just do require(moduleId) and it will load in the module for you" - What do you think, genius? Of course it's used like a normal ModuleScript: That line requires it in. User#6546 35 — 8y
Ad

Answer this question