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

How Would I Hide Module Script Code?

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)

I see this:


--


--



--

[Code I want hidden] (1234)


--

Others see this:


--


--



--

[Code I want Hidden] (CANT SEE)


--

1 comment

0

You want to hide code from yourself.

1 answer

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!

1 comment

2

100% sure you can hide code in a module script (Don't know how) but, TheFurryFish did it.

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