Problem Requiring the module script

So I’m trying to get the ID of my Module Script but I don’t know why, the output says “Unable to find module for asset id”, Even though I’ve put the ModuleScript into the Model and named it MainModule, This is a picture
of my ModuleScript asset:

pro

There’s any mistake or misplaced? please help

1 Like

Are you trying require(id)?

That doesn’t work anymore.

1 Like

So how can I get the module id? is there no other way?

1 Like

You have to publish to roblox as model

1 Like

I already did that, that’s why I got the error

1 Like

You dont have to publish. Just do like this:

local Module = require(script.MainModule)
1 Like

I know that, I want to make it an id so I can use it everywhere

1 Like

Why did you make Model
image

Can’t you publish only with script?

1 Like

Turning it into a package is probably easier.

What code are you using to load it?

Is this getting in the way? Removing Support for Third Party Closed Source Modules

1 Like

It can, but the output still says the same error, I’ll try to publish it again and again

1 Like

Can I see your script please ?

1 Like

Which one? module or script? [Character Limit]

1 Like

script [character] [character] [character]

1 Like
local module =  require(9488077750) -- Error Line

local admins = {
	"ryanhawari17"
}

local owner = {
	"ryanhawari17"
}

game.Players.PlayerAdded:Connect(function(plr)
	module:RespawnCMD(plr, admins, "/respawn")
	module:BtoolsCMD(plr, owner, "/btool")
	module:SpeedCMD(plr, admins, "/speed")
end)
1 Like

It could help.

1 Like

Nevermind, the problem is solved, I don’t know how but after I closed my roblox studio and left for a while, then I opened it again and suddenly it worked, thanks for trying to help me

1 Like