Is it possible to use require for a single instance of a entity, instead of for all instances

I’m trying to make a game of which each character is split into two scripts, the template script and the character ‘lua’ script.

There are two characters, which are using the same collection for consistency, they both use different character scripts (I have already got the sprites working). The problem is that they both need different scripts using the same code .I can identify the two of them separately; But using require, requires for both of them.
Is there a way around this?

It seems I have grossly understood how require works

It runs at compilation, regardless of activation. Is there a way to use require at runtime?

That is not completely accurate. The call to require() will happen at runtime, but Lua will cache the result in the package.loaded table. More info here: Lua 5.1 Reference Manual

I am not entirely sure I understand what you are trying to achieve, but it sounds like you are storing some state in the module that you don’t want to have shared between two scripts?