If the copied permanent has X in its mana cost, X is 0.

Artwork
Loading artwork…
Doppelgang
Murders at Karlov Manor · #198 · EN
Nonfoil—Foil—
Card rules
For each of X target permanents, create X tokens that are copies of that permanent.
"Suspect spotted at the Tin Street Market, Yescu Street entrance. And the Oak Street entrance. And somehow also in Lobar Alley!" —Avult of the Foundway Associates
Rare · Illustrated by Chris Rallis
Format legality
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
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the copied permanent is copying something else, then the tokens enter the battlefield as whatever that permanent copied.
Any enters-the-battlefield abilities of the copied permanent will trigger when the tokens enter the battlefield. Any "as [this permanent] enters the battlefield" or "[this permanent] enters the battlefield with" abilities of the permanent will also work.
The tokens copy exactly what was printed on the original permanent and nothing else (unless that permanent is itself copying something else; see below). They don't copy whether that permanent is tapped or untapped, whether it has any counters on it or Auras attached to it, or any non-copy effects that have changed its power, toughness, types, color, and so on.