Error loading module script get error Unable to find module for asset id 6717001828. Does the asset have a ModuleScript named "MainModule"?

I am trying to import a module script, I get this error:

Unable to find module for asset id 6717001828. Does the asset have a ModuleScript named "MainModule

When I try to import this script.
https://www.roblox.com/library/6717001828/GetOrder

The script is named MainModule aswell.

What should I do?

1 Like

Try physically dragging it into the game and require it from there instead of using the asset id and see if it works

Drag it in using toolbox and you could put it under your script and just do require(script.Module)

You’re trying to require a script, not a modulescript

I will try doing that, I am aiming to require it though ID in future if you know what I can do to achieve that.

Oops, I just realised, sorry its late.

1 Like

Haha it’s okay, we all make mistakes when it’s late at night! Least now you know what’s wrong so you cna fix it!

If you have anymore issues don’t be afraid to make another post!

1 Like