local function a(f,B)if f.Parent==B then return nil end if f.Parent==game.Workspace then return f else return a(f.Parent,B)end end

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
