I’m using a viewmodel in my game where i cframe a pivot every frame to the camera, and the viewmodel parts are welded to that pivot using weld constraints, but i also want to be able to use roblox animations on it however i couldn’t figure it how to go about rigging it.
Clone your R6 or R15 rig, delete everything besides the arms, if it’s R6 then keep the LeftArm and RightArm, if it’s R15 keep the LeftHand, Left and Right Lower arms and Upper arms. Then you get the moon animation 2 plugin, click on the arms, click on a new animation and just start moving the arms frame by frame until you get the animation you want.
You can make them animateable through Roblox’s default animation editor - you just need to rig it right. (Arms as an example here - you can do it with anything)
Position everything how you want it to be.
Add Motor6Ds to the arms. Set part 0 to the root part of your viewmodel and then part 1 to the arm itself.
Set the root part as the primary part of the viewmodel.
Modify the C0 and C1 values to get the viewmodel positions back to how you positioned them originally.
Insert an AnimationController and add an Animator.