-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================

local function weld(folder, main, parent)		
	for _,child in pairs(parent:GetChildren()) do
		if ((child:IsA("BasePart")) and (child ~= main) and (child.Name ~= "Head") 
			and (child.Name ~= "UpperTorso")) then
			
			local weld = Instance.new("WeldConstraint")
			weld.Parent = folder
			weld.Name = "Weld"
			weld.Part0, weld.Part1 = child, main
		end
		weld(folder, main, child)
	end
end -- weld()