#Why animation doesn't work with view model?

1 messages · Page 1 of 1 (latest)

slender arch
#

I'm working on a gun system and using a custom R6 ViewModel. I'm cloning the arms and torso, connecting them with Motor6Ds, and playing the same animations as the character.

The problem is: when I use SetPrimaryPartCFrame to align the ViewModel to the camera, the animations stop working or freeze.

I tried using PivotTo instead, but it causes the player character to fling for some reason (even though there's no weld or RightGrip connected to the original character).

Does anyone know a proper way to update the ViewModel position every frame without breaking animations or physics?

Here's my script that handles the ViewModel including its animations (Pastebin, due to Discord's characters limit):
https://pastebin.com/ahsArizW

Any help is appreciated!