Exile target creature. Create a Gold token. (It's an artifact with "Sacrifice this artifact: Add one mana of any color.")
If the creature isn’t a legal target as Gild tries to resolve, the spell won’t resolve and none of its effects will happen. No token will be created.
You will control the token, no matter who controls the target creature.