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

How Would I Hide Module Script Code?

Asked by 10 years ago

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)

-

--

0
You want to hide code from yourself. ConnorVIII 448 — 10y

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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!

2
100% sure you can hide code in a module script (Don't know how) but, TheFurryFish did it. NotSoNorm 777 — 9y
Ad

Answer this question