How do i rig a weapon correctly?


in this video, the welded shell (the one on the right) moves smoothly with the barrel this is what i would like to do, however, the one i used a motor6d with (the one on the left) , clearly moves incorrectly.
the reason im not using welds is that i want to be able to animate the shells moving out of the gun, so i need to find a way to smoothly animate it.

i have tried welding + motor6d at the same time but that breaks the animations and glitches it out, weldconstraints instead of welds, but that doesnt do anything. I cant find anything on the developer hub like this.

if you know how to fix this, I’d appreciate it, I’ve been struggling for a while with this.

Did you attach the shell to the handle or the barrel of the gun with the motor6d? If you attached it to the handle and animated the shell and the barrel separately, that may be causing the problem

the shell is attached to the HumanoidRootPart of the rig with a motor6d, if I attach it any other way (the shells to the barrel) they move WITH the barrel, and there is no sync issue, but I am not able to move them independently.
I DID use Rig Editor Lite (https://create.roblox.com/store/asset/1274343708/RigEdit-Lite) to create the rig. I’ll try to re-rig the weapon, and ill let you know how it goes

OKAY I GOT IT WORKING!
the SOLUTION, is to create a “main” part (made invisible, and generally should be where the gun would be gripped)
the main part

then, instead of the HumanoidRootPart, Motor6D the moving parts to the main part.
weld the parts as needed, then weld the main part to the HumanoidRootPart.
this eliminates any of the problems in the video I originally showed.

If you have any problems, this is the way my rigs are setup
(You can ignore the Camera Part, I use it for a plugin)
image

image

image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.