Selfishly has 2 different meanings across 1 category:
Adverb
in an egotistical manner
"he behaved egotistically"
In a selfish manner; with regard to private interest only or chiefly.