If the target is no longer legal as An Offer You Can't Refuse resolves, no Treasure tokens are created.

Artwork
Loading artwork…
An Offer You Can't Refuse
Final Fantasy Commander · #267 · EN
Nonfoil—Foil—
Card rules
Counter target noncreature spell. Its controller creates two Treasure tokens. (They're artifacts with "
, Sacrifice this token: Add one mana of any color.")
"All right, I'll work!" —Tidus
Uncommon · Illustrated by Josu Hernaiz
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
If the target is still legal as it resolves but the spell can't be countered for some reason, its controller will still create two Treasure tokens.