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().
5 Likes
Surely you can achieve this with LoadAssetVersion?
4 Likes
This is just API bloat… You can use :LoadAssetVersion(), with a loop to get the latest version and save that in a cache.
3 Likes
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: