Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make private module scripts and work them?

I heard that you could make a module script and keep it somewhere else on a different source or something, and then a script in another place can use it. How?

Also, do they run the same?

1 answer

✓ Accepted answer

Upload the modulescript as a robloxmodel by itself, and name it "MainModule", then get the assetid of that model and in any script/localscript/modulescript at any place you can do

local Module = require(assetid) 

Then do whatever you want with it, the variable "Module" or whatever you want to name it will be the function/table that was returned in your modulescript.

This discussion is preserved as it was. New answers, comments, and votes are closed.