Im tryna clone a module that I required by ID, but the source of the cloned module is empty. I attached a repro. Just upload the module in ServerStorage as a model and clone the ID then replace the ID in the script in ServerScriptService
Do you mean a private module? You can’t clone these as it’d allow them to be stolen Also, requiring won’t return the module instance meaning there’s nothing to clone
If you use InsertService instead this shouldn’t be an issue.
I don’t know what you mean by “required”. When you do require(moduleId) it works exactly the same as requiring a module object. If you mean inserting then that’s a different story. (Try setting Archivable to true)
to the module before you upload it. Then when you try clone that ModuleInstance its source is blank which is a bug. Idk how it would prevent stealing the source code of the module if the cloning is being done by the person who wrote the module