If the target of Fear of Lost Teeth's ability is an illegal target as the ability tries to resolve, it won't resolve and none of its effects will happen. You won't gain life.

Artwork
Loading artwork…
Fear of Lost Teeth
Duskmourn: House of Horror · #97 · EN
Nonfoil—Foil—
Card rules
When this creature dies, it deals 1 damage to any target and you gain 1 life.
1/1
As it drew closer, Sam felt her own teeth wriggle in their sockets, as if they wanted to leap out and join the thing.
Common · Illustrated by Oriana Menendez
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel 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
Future Not 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