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

Unable to find module for asset id? [SOLVED]

Today is just not my day... I have been trying to require a model I created on ROBLOX which does have a ModuleScript in there called MainModule but it gives me this error when trying to grab the model, not sure if I need a separate model for the ModuleScript or not, but it's in a folder with 1 GUI and 1 regular script.

16:22:50.633 - Unable to find module for asset id

[EDIT]: I ended up fixing my problem with Unable to find module for asset id by just putting everything else into the MainModule.

1 answer

Unfortunately, this most likely means you can't get that script.

See, scripts have a LinkedSource, and it can either be Embedded, or they can have an Asset ID that the script links to (Ex `http://www.roblox.com/asset/?id=1234567)

If the Asset has been removed by the creator, the Asset ID will still show, but when you open the script, you will see this error

Unable to load script. If the script uses LinkedSource, the LinkedSource may have been removed or changed In this case, you can't get the script to open unless you ask the Asset creator to bring it back.

If my explanation is different from what you're getting, please comment so I can help you further

7 comments

0

Well it's set to Embedded, but is there anyway to be able to require the model or no?

0

Are you using require(AssetID)(script, NAME)?

0

I have a model that is a folder, which 1 script, 1 modulescript and 1 gui, I named the modulescript MainModule and left the rest as default, this is the code I am using to require the model. require(295245171)

0

Could ti be because you made the model 13 minute ago and Roblox still needs to verify it is legal? That happened with shirts, you can't wear them until Roblox verifies it

0

ROBLOX has to verify models too? Well, I will wait and see.

0

So far been 30 minutes and still not working. :/

0

If I may come into the conversation. :P @Turtletowerz How is your code set up, exactly? Does the 'MainModule' being called return a Value (or anything) at all, or is the Module(s) (that is being called) not Named 'MainModule'?

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