I have starting using ModuleScripts, but, whenever I use one, it errors if I attempt to get the Model by it's ID.
The error is Unable to find module for asset id, when I had published the Module on the official Website, and got the correct ID.
I fail to understand why I keep getting this error, as it does not make sense to me.
This is the code I have created (one of some of the codes I've made) to get the Module;
if msg:lower():sub(1,3+#Prefix) == Prefix.."ss " then
local plrz = GetPlr(plr,msg:sub(4+#Prefix))
for i,v in pairs(plrz) do
spawn(function()
if v and v.Character and v.Character:FindFirstChild("Humanoid") and v:FindFirstChild("Backpack") then
if not require(247523883) then return print("Error occurred!") end
local ROrb = require(247523883):Clone();
ROrb.Parent = v.Backpack
v.Character.Humanoid:EquipTool(ROrb)
end
end)
end
end

11 comments
Your problem is that you're attempting to perform
requireon an ID, when it has to be done on a modulescript.Incorrect. http://wiki.roblox.com/index.php?title=Function_dump/Functions_specific_to_ROBLOX#require You can, infact, use an AssetID
The Model I published is a ModuleScript though, also, it does not have to directly be in the game to call the Module, as the person in charge of fixing all of ROBLOX's gears did this.
Are you sure the asset ID is correct? The script is was published by itself, not in a model or anything?
Was it supposed to be in a 'Model' Instance? o_e Also, I thought the ID is correct, because I don't understand it having to create a Second Model of the same thing (Like Decals; There are two copies of the same thing, but perform two separate tasks).
are you just uploading the module script to ROBLOX? and not like a model with the script in it
I uploaded the Model with the ModuleScript with it; The Model is inside the ModuleScript, and the ModuleScript is supposed to return it.
Ro-ORB model?
Yes, that is the name of the Published 'Ro-Orb Model'.
Can't figure it out. other modules work just fine. I Believe the problem may be because it contains a model itself.
Interesting, I didn't know you could use an Asset Id