How do I copy a module?

I would like to be able to copy a lua module and have more than one instance of it.

My example is with Particle Candy. I need a way to pause some emitters (not just stop them), while starting new emitters in a different layer.

Particle Candy doesn’t support grouping like this, so the only way to accomplish this is with a second instance of the Particle Candy module.

By simply calling require() twice, I receive the same module due to the way Corona loads these modules.

I figured out I can achieve this by creating a second lua file with a different name. But I was wondering if there was a better way to do this?

Thank you! [import]uid: 35618 topic_id: 24365 reply_id: 324365[/import]