Go back to the 5 kage summit when Obito/Tobi appears. He tells the Kage About the secret room where the stone tablet is. He said the stone tablet "gets read first by the sharingan, then by the mangekyou and then with the rinnegan. In that order, the text becomes clearer each time"
That or to...