You pay all costs and follow all timing rules for cards played this way. For example, if the exiled card is a land card, you may play it only during your main phase while the stack is empty and only if you have an available land play remaining.

Artwork
Loading artwork…
Tasha Yar, Out of Time
Star Trek · #176 · EN
Nonfoil—Foil—
Card rules
Haste
When Tasha Yar dies, exile the top card of your library. Until the end of your next turn, you may play that card.
2
, Exile this card from your graveyard: Create a token that's a copy of this card. Sacrifice it at the beginning of the next end step. Activate only as a sorcery.
2/1
Rare · Illustrated by Patricia Pria
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
The token created by Tasha Yar's last ability copies exactly what is printed on the original card and nothing else. It doesn't copy information about the object that card was before it was put into that graveyard or before it was exiled.