Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

require(ID) and LinkedSource do not work?

Asked by 6 years ago

I'm trying to make a place with universes and I don't want to have to update each places code every time I update the code.

Using require(ID) just does nothing, there are no errors or anything it just does nothing. The script I uploaded as a model is named "MainModule" as it says to do. It's not my code because it works fine when just placing it in RepStorage and requiring it that way.

As far as LinkedSource goes I have not tried it in a few weeks, last time I did tho it seemed to work until you played in the actual ROBLOX servers, it would give a error saying that the code or something didn't exist. I don't want to actually use this if I can figure out the require(ID).

How can I use require(ID) properly? There really isn't anyplace that explains it well enough, I did everything the wiki says and still didn't work.

0
For `require`ing an id, you need to make sure that the module's name is `MainModule`. As to why it needs to specific named that to require the module, I have no clue. :/ TheeDeathCaster 2368 — 6y
0
Funny enough, a LONG time ago I asked something similar: https://scriptinghelpers.org/questions/17453/- TheeDeathCaster 2368 — 6y
0
"The script I uploaded as a model is named "" as it says to do." Briicks 0 — 6y
0
Oops. Did you try returning the values/functions/variables/etc in the module? (return Table, Value, Number) TheeDeathCaster 2368 — 6y

Answer this question