local function O(O,w,V)local W=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116")W.Part0=O W.Part1=w W.Parent=V or O return W end local function w(w,V,W)for w,W in pairs(w)do O(V,W)end if not W then for O=1,#w,1 do w[O].Anchored=false end V.Anchored=false end end
--http://robloxdev.com/code-sample/Weld-Code-Sample-1
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
