getAnimationGroupByName calling animation of all characters

Hello, as in the example, I have one character and animation in it. I can only access this animation with getAnimationGroupByName. However, when I run it this way, all the characters move. How can I animate only the character or characters I want? I request your help and advice.

Load Animated Character | Babylon.js Playground (

You clone the character but don’t clone animation groups, so each animation will animate all clones.
The way is to clone AGs and retarget them so they would play independently.
Or use instantiateModelsToScene() function.
Small example - -

As you see, there are cloned AGs for the second character. You can give any names to cloned AGs with this API - AssetContainer | Babylon.js Documentation