If the target creature is an illegal target as Reckless Ransacking tries to resolve, it won't resolve and none of its effects will happen. You won't create a Treasure token.

Artwork
Loading artwork…
Reckless Ransacking
Lorwyn Eclipsed · #152 · EN
Nonfoil—Foil—
Card rules
Target creature gets +3/+2 until end of turn. Create a Treasure token. (It's an artifact with "
, Sacrifice this token: Add one mana of any color.")
Most thieves are silent and swift, leaving no trace of their crime. Noggles take a different approach.
Common · Illustrated by Daren Bader
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