return function(f,N,o)local r=Instance.new(o and"\077\097\110\117\097\108\087\101\108\100"or"\087\101\108\100\067\111\110\115\116\114\097\105\110\116")r.Part0=f r.Part1=N if o then r.C0=f.CFrame:inverse()*N.CFrame end r.Parent=f return r end



return function(a, b, isManualWeld)
	--- Create weld
	local weld = Instance.new((isManualWeld and "ManualWeld" or "WeldConstraint"))
	
	--- Set part adornees
	weld.Part0 = a
	weld.Part1 = b
	
	--- If manual weld, set CFrame
	if isManualWeld then
		weld.C0 = a.CFrame:inverse() * b.CFrame
	end
	
	--- Part to part A
	weld.Parent = a
	
	--
	return weld
end
