the problem with clientside duplications is that the duplicator explicitly works by using serversided functions that the client can't replace or mimic. there's really no way around it, it's impossible to do exactly what you're asking
what you could do is use macros, which function very well as a duplicator alternative