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
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.
Yes, the ModuleScript is named MainModule.
Is the code you posted the code for the Module itself? The require call is erroring, because the MainModule at 281646556 is erroring.
What is the content of that module..? Why is this module script doing nothing but requiring another?
This question has been asked many many time sbefore