Add requirelatest(ID) to re-require() the latest version of a MainModule

When you require() a MainModule and then the module is updated, there isn’t a way to re-require() it. I suggest a function which always makes a new instance of the MainModule called requirelatest().


Surely you can achieve this with LoadAssetVersion?


This is just API bloat… You can use :LoadAssetVersion(), with a loop to get the latest version and save that in a cache.


Perhaps a boolean argument could be added to the require function (false by default) that would dictate whether or not the module is reloaded. This way I could do it with regular modules too.

1 Like

Can’t load others modules if you don’t own them

Also, has been requested before: