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:
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
1NoFree
(1NoFree)
April 28, 2022, 3:54pm
#5
You have to publish to roblox as model
1 Like
I already did that, that’s why I got the error
1 Like
1NoFree
(1NoFree)
April 28, 2022, 3:58pm
#7
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
1NoFree
(1NoFree)
April 28, 2022, 4:00pm
#9
Why did you make Model
Can’t you publish only with script?
1 Like
tlr22
(FusionOak)
April 28, 2022, 4:01pm
#10
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
1NoFree
(1NoFree)
April 28, 2022, 4:04pm
#12
Can I see your script please ?
1 Like
Which one? module or script? [Character Limit]
1 Like
1NoFree
(1NoFree)
April 28, 2022, 4:05pm
#14
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
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