This may sound a bit nooby, but I am working on a project that involves Module Scripts... Now, I have seen people who have made the module script public, but hid lines of code. How would I do this?
For example. (- = code)
--
--
--
--
EDIT: Turns out I was wrong. Ignore the first paragraph here.
There is no way to hide code in ROBLOX Studio. If you plan on giving the ModuleScript out, you're going to have to do it open source.
EDIT:
In order to hide ModuleScript code, you have to upload it in a very specific way: first, name the ModuleScript: "MainModule", without the quotation marks. Then, upload this Module directly as a Model. Now, you can require
it using its assetId!
MainModule has to be the top-most level Object, although it is possible to store things within the Module itself, such as pre-made Parts or GUIs and the like.
When you require
a Module via its assetId, you always get the most up-to-date version (at least the first time it is required
per client), and the model itself does not have to be a Free Model!