--A function to find all parts in an assembly. We'll need this later.

function getAssemblyParts(pt,checked)
	if (checked[pt]) then return end
	checked[pt] = pt
	
	local attached = pt:GetConnectedParts()
	for _,p in pairs(attached) do
		getAssemblyParts(p,checked)
	end
end
