Illegibly has 2 different meanings across 1 category:
Adverb
in an illegible manner
"this student writes illegibly"
In a manner that produces illegible results.