Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[ModuleScript] unable to find assetid?

#My script

local ServerCommands = require(254969628)
print(type(ServerCommands)) -> "Nil"

#Error

Unable to find module AssetId

#ModuleScript link http://www.roblox.com/----item?id=254969628

#Module Coding

return {
	{Network = game:GetService("NetworkServer")}
}

Why would this be erroring?

1 answer

✓ Accepted answer

Definition of Your Error

Your error means that there were no assets matching the prerequisites for the require function to be called.


Prerequisites of the 'require' Function

  • The Asset you're attempting to call the require function on must be a ModuleScript.

  • The Asset must either be owned by you or be open-sourced.

  • The Instance that the Asset contains, has to be named 'MainModule' if it's expected to be able to be called upon by the require function by it's ID


Summary

So, I suggest you check all of these prerequisites and make sure nothing is out of place. If the problem persists then please comment below.

This discussion is preserved as it was. New answers, comments, and votes are closed.