Enchantment â Aura
Enchanted creature has haste and "At the beginning of your upkeep, destroy this creature. Reveal cards from the top of your library until you reveal a creature card. Put that card onto the battlefield and attach Shifting Shadow to it, then put all other cards revealed this way on the bottom of your library in a random order."
If you donâ€™t reveal a creature card this way, youâ€™ll just reveal and randomize your library and Shifting Shadow becomes attached to nothing. It will be put into its ownerâ€™s graveyard as a state-based action.
If the Shifting Shadow leaves the battlefield after the triggered ability it grants has triggered but before it resolves, youâ€™ll destroy the creature it enchanted before it left the battlefield, then reveal cards and put a creature card onto the battlefield. Shifting Shadow wonâ€™t become attached to it. The same is true if the enchanted creature leaves the battlefield rather than just Shifting Shadow, except that you wonâ€™t destroy the creature it enchanted in that case.
If the enchanted creature canâ€™t be destroyed, most likely because that creature has indestructible, youâ€™ll still get a new creature and attach Shifting Shadow to the new creature.
If Shifting Shadow canâ€™t become attached to the creature you put onto the battlefield, most likely because that creature has protection from red, it becomes attached to nothing. It will be put into its ownerâ€™s graveyard as a state-based action.