I am using this code to create a joint between the character’s hand and my weapon handle:
-- server script
local character = player.Character
local weapon = weapon:Clone()
local joint = Instance.new("Motor6D")
joint.Part0 = character.RightHand
joint.Part1 = weapon.Handle
joint.Parent = weapon.Handle
weapon.Parent = character
Then, I am playing an animation with the character hand and weapon.
The issue is that, as the hand moves during walking, the gun follows, and it starts looking clunky. Here is what I mean:
I already tried creating a new part under the character and welding that to HumanoidRootPart and to the weapon handle, but then the animation doesn’t work.
Any ideas on how to fix this? Thanks.
