What exactly happens when requiring an uploaded module? Does the server have a copy of the module or is the server actually communicating with the module via website?
The server gets the model as it would similar to InsertService and then requires the MainModule on that server, not parented to anything. It does not run it remotely, no.
4 Likes
So require(assetId) would tend to fail from time to time?
It can fail if it is not actually a module, or you don’t have permissions to use it, or if it cannot be required (has no MainModule), or if it cannot fetch the model due to outage but this is somewhat unlikely (inserting assets succeeds pretty reliably and I cannot remember a time where this has failed in any of my games).
4 Likes