If the creature is an illegal target as Rite of the Serpent tries to resolve, Rite of the Serpent won’t resolve and none of its effects will occur. You won’t get a Snake token.

Artwork
Loading artwork…
Rite of the Serpent
The List · #KTK-86 · EN
Nonfoil—Foil—
Card rules
Destroy target creature. If that creature had a +1/+1 counter on it, create a 1/1 green Snake creature token.
"From your death, new life. From your loss, our profit." —Kirada, Qarsi overseer
Common · Illustrated by Seb McKinnon
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You get the Snake token no matter who controlled the target creature.
If Rite of the Serpent resolves but the creature isn’t destroyed (perhaps because it has indestructible or it regenerated), you’ll get a Snake token if the creature has a +1/+1 counter on it.
Rite of the Serpent won’t create more than one Snake token, even if the target creature had more than one +1/+1 counter on it.