The last ability of Illusory Gains doesn't target the new creature. It will become attached to that creature even if that creature has hexproof or shroud.

Artwork
Loading artwork…
Illusory Gains
Dragons of Tarkir · #59 · EN
Nonfoil—Foil—
Card rules
Enchant creature
You control enchanted creature.
Whenever a creature an opponent controls enters, attach this Aura to that creature.
Rare · Illustrated by Kev Walker
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic 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
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Illusory Gains's last ability is mandatory. You can't choose to have Illusory Gains not move.
If Illusory Gains can't legally enchant the creature that enters the battlefield (perhaps because it has protection from blue), it remains where it is. You retain control of the creature it's currently enchanting.
If multiple creatures enter the battlefield under an opponent's control at the same time, Illusory Gains will trigger for each of them. You may put these abilities on the stack in any order. As each resolves, you'll briefly gain control of the associated creature. The last one to resolve determines which one you'll ultimately control.