RigidConstraint is broken and makes the part not stick with the mesh When Changing a bone world rotation

RigidConstraint does not make a part follow the rig bone(Hand) when i change the world rotation of the bone.

here is a video of the issue: robloxapp-20250106-1656293
I have tried the method mentioned in How to use Rigid Constraints to add Accessories to Skinned Meshes

And i also tried another way to connect with 2 attachments, but nothing works.

the code is fairly simple and it works on server script

local lower = script.Parent.AnimationController.Animator:LoadAnimation(script.Parent.walk)
local upper = script.Parent.AnimationController.Animator:LoadAnimation(script.Parent.aim)
wait(3)
lower:Play()
upper:Play()
print(2)
while task.wait() do
	script.Parent.RootPart["mixamorig:Hips"]["mixamorig:Spine"].WorldOrientation = Vector3.new(0,0,0)
end

brokenAnimations.rbxl (791.3 KB)

Expected behavior

I expect the item(gun) to follow the hand precisly the same it does as without setting world orientation of the bone

Can anyone explain why does it work like that? i need help this issue has been for long and i dont know what to do