function RoomPackager.TopCornersOfBasePlate(C,f)local c=C:CornersOfPart(f)local O=f.Position.Y local Z={}for f,C in pairs(c)do if C.Y>O then table.insert(Z,C)end end return Z end

function RoomPackager:TopCornersOfBasePlate(basePlate)
	local corners = self:CornersOfPart(basePlate)
	local centerY = basePlate.Position.Y
	local topCorners = {}
	for _, corner in pairs(corners) do
		--if a corner is higher globally than the center of the part, then
		--it is along the top-facing surface of the part
		if corner.Y > centerY then
			table.insert(topCorners, corner)
		end
	end
	return topCorners
end
