I was wondering if anyone can tell me if the require(assetid) function only work's if they have the MainModule part in their inventory, cause I give my friend's a require(assetid) and it won't load for them but it load's for me.
COMMUNITY QUESTION
Does require() only work if the Module is in your inventory? [Unsolved]
1 answer
require(assetid) will work for any item on Roblox, although:
- The item must be a modulescript
- The item must be named "MainModule"
- The script require'ing the module MUST be serverside, and it has to be a script (not localscript)
require(In-game module) will work on any modulescript, regardless of name, location or script-type.
In studio, require'ing the assetId will only work if it's in your inventory. To properly test it, it must be run on the server.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
My friend uploads it to a place and we go to it, and the ModuleScript doesn't load but it load's for me.
Hm, I know it definitely works, because Epix Incorporated Server Suite (the admin) uses it to auto-update. Maybe he's broken the require script?