다니다 is going about, getting around, or attending somewhere regularly, and the while form says how you carry yourself while doing it: going around greeting people, going around masked and careful, swaggering around campus, going around showing off that you are a couple, riding around the apartment complex. It covers a habit over time rather than one trip. One line stretches it to cheating his way through university.