-- Decompiled with the Synapse X Luau decompiler.


return function(p1, p2, p3)
	local v1 = "WeldConstraint";
	if p3 then
		v1 = "ManualWeld";
	end;
	local v2 = Instance.new(v1);
	v2.Part0 = p1;
	v2.Part1 = p2;
	if p3 then
		v2.C0 = p1.CFrame:Inverse() * p2.CFrame;
	end;
	v2.Parent = p1;
	return v2;
end;
