local function w(I,y)if I.Parent==y then return nil end if I.Parent==game.Workspace then return I else return w(I.Parent,y)end end
--Finds the model the current part is in which is closest to workspace
--Returns the part is the part is in Workspace
--Returns nil if the object is already in the roomModel we are constructing
local function closestParentToWorkspace(object, roomModel)
	if object.Parent == roomModel then
		return nil
	end
	if object.Parent == game.Workspace then
		return object
	else
		return closestParentToWorkspace(object.Parent, roomModel)
	end
end
