I see character in your path name, so it will most likely be a skeleton model… Try this approach:
import * as SkeletonUtils from 'three/addons/utils/SkeletonUtils.js';
//....
const CHARACTER_PATH = "https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb";
let myGltf, myClone;
function loadGLTF(url) {
return new Promise((resolve, reject) => {
new GLTFLoader().load(
url,
(gltf) => resolve(gltf),
undefined,
(error) => reject(error)
);
});
}
loadGLTF(CHARACTER_PATH)
.then((gltf) => {
scene.add(gltf.scene);
const clone = SkeletonUtils.clone(gltf.scene);
gltf.scene.position.x = -2;
gltf.scene.position.y = -2;
clone.position.x = 2;
clone.position.y = -2;
scene.add(clone);
})
.catch((error) => {
console.log(error);
});