Module Script Requiring Error?

Hey all!

I am developing a framework, and all the functions and stuff are inside a module script. Right now it looks like:

local moonlightFramework = {}

function moonlightFramework.sayHello()

return moonlightFramework

and I have uploaded it to the website, which can be found here: Moonlight Framework - Roblox

So all I would need to do in a normal script is go:

local moon = require(8288681721)


and our output would be Hello, but I am getting the error Unable to find module for asset id 8288681721. Does the asset have a ModuleScript named "MainModule"?

I need a bit of help. Cheers.

You have to name the module to “MainModule” if you want to release it and require it as an id

1 Like