I am new to scripting in ModuleScripts and everytime I try using require(assetid) it give's me this error: Requested module experienced an error while loading. Can anyone tell me how to fix this? Here is the code.

require(281646556)

local module = {}

return module

5 comments

0

When you use require on an roblox asset id, is that asset id with a script that is named MainModule? If not, it won't work.

0

Yes, the ModuleScript is named MainModule.

0

Is the code you posted the code for the Module itself? The require call is erroring, because the MainModule at 281646556 is erroring.

0

What is the content of that module..? Why is this module script doing nothing but requiring another?

0

This question has been asked many many time sbefore