If the target creature is an illegal target when Waltz of Rage tries to resolve, it won't resolve and none of its effects will happen. No damage will be dealt, and the delayed triggered ability won't trigger whenever a creature you control dies this turn.

Artwork
Loading artwork…
Waltz of Rage
Duskmourn: House of Horror · #165 · EN
Nonfoil—Foil—
Card rules
Target creature you control deals damage equal to its power to each other creature. Until end of turn, whenever a creature you control dies, exile the top card of your library. You may play it until the end of your next turn.
The melody was all in her head, but she'd always preferred to dance alone.
Rare · Illustrated by Mathias Kollros
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Use the power of the target creature as Waltz of Rage resolves to determine how much damage that creature deals to each other creature.
You pay all costs and follow all timing rules for cards played with the permission granted by Waltz of Rage's delayed triggered ability. For example, if one of the exiled cards is a land card, you may play it only during your main phase while the stack is empty.
The creature is the source of the damage, not Waltz of Rage.