local function b(b,O,I)local T=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116")T.Part0=b T.Part1=O T.Parent=I or b return T end local function O(O,I,T)for O,T in pairs(O)do b(I,T)end if not T then for b=1,#O,1 do O[b].Anchored=false end I.Anchored=false end end

local function Weld(part0, part1, parent)
	local weld = Instance.new("WeldConstraint")
	weld.Part0 = part0
	weld.Part1 = part1
	weld.Parent = parent or part0
	
	return weld
end

local function WeldParts(parts, main, unanchor)
	for i,v in pairs(parts) do
		Weld(main, v)
	end
	
	if not unanchor then
		for i = 1, #parts do
			parts[i].Anchored = false
		end
		main.Anchored = false
	end
end

