--TODO: add a parameter that instead welds the tool to the HumanoidRootPart.

function AnimateLib.Motor6DFromGrip(tool, rightArm)
	local m = Instance.new("Motor6D");
	m.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0);
	m.C1 = Utils.Math.CFrameFromComponents(tool.GripPos, tool.GripRight, tool.GripUp, -tool.GripForward);
	m.Part0 = rightArm;
	m.Part1 = tool:FindFirstChild('Handle');
	m.Parent = rightArm;
	m.Name = "RightGrip";
	return m;
end
