Destroy target creature or planeswalker. Create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.")
If the target of Deadly Derision is illegal as the spell tries to resolve, it won’t resolve and none of its effects will happen. You won’t create a Treasure token.