How do I do this

So simply, I’m making am module and I want others to use it. I can’t put it on sale since I don’t have premium so I tried requiring the asset id. Well, it gave me this error:

20:20:39.519 Unable to find module for asset id 7162266387. Does the asset have a ModuleScript named "MainModule"? - Server - MathManager:1

1 Like
  1. You don’t need premium to make a module public(pretty sure you need to in order to require() it).
  2. In order to require a module with its id you have to name it MainModule(in the explorer) then publish it.
2 Likes

You do need premuim to put it on-sale. Naming it main-module didn’t work.

1 Like

Hey there!

For users to be able to require() a module with its id, you need to do the following:

  1. Name your Module Script MainModule
  2. Right-Click the Module Script in explorer, and then click Save To Roblox
  3. Now when you are uploading the script to the toolbox, you need to make sure Allow Copying is enabled!
  4. Post the module, and then copy its id. Then you are done!

To then get that module, you would need to type something like this:

local Module = require(ModuleID)

ModuleID being the ID given when uploaded to the toolbox.

Hope this helped!

1 Like

you have to upload it as a model(models do not need premium to put on sale) and name it “MainModule” before publishing it(not the name of the model the name of the module on the explorer before publish)

1 Like

I don’t really want to make sure allow copying is on, why do I need to make sure it’s on?

Because you can’t ID require private assets. (That’s basically how most SS executors were able to get away with what they were doing so Roblox cracked down on it.)

Also, you don’t need Premium to put a module on sale.

2 Likes

How do you put a module on sale then, can you show me the steps?

Sure.

  • Find the model on the develop tab:

image

  • Press “Configure” under the gear icon

  • Check “Allow Copying”

2 Likes