If the target creature is an illegal target by the time the spell tries to resolve, the spell will not resolve. No token is created, even if X is 5 or more.

Artwork
Loading artwork…
Blue Sun's Twilight
Phyrexia: All Will Be One · #43 · EN
Nonfoil—Foil—
Card rules
Gain control of target creature with mana value X or less. If X is 5 or more, create a token that's a copy of that creature.
"Where once there was ignorance, Jin-Gitaxias brought knowledge, and an age of progress dawned." —Monument inscription
Rare · Illustrated by Piotr Dura
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
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
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions