If the target creature is an illegal target at the time Manhole Missile tries to resolve, it won't resolve and none of its effects will happen. You won't get to put a card from your hand on the bottom of your library, and you won't draw a card.

Artwork
Loading artwork…
Manhole Missile
Teenage Mutant Ninja Turtles · #94 · EN
Nonfoil—Foil—
Card rules
Manhole Missile deals 3 damage to target creature. You may put a card from your hand on the bottom of your library. If you do, draw a card.
"SAY YER PRAYERS, TOITLES!"
Common · Illustrated by Fajareka Setiawan
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions