If the spell being copied is modal (that is, it says “Choose one —” or the like), the copy will have the same mode. Its controller can't choose a different one.

Artwork
Loading artwork…
Meletis Charlatan
Theros · #54 · EN
Nonfoil—Foil—
Card rules
2
,
: The controller of target instant or sorcery spell copies it. That player may choose new targets for the copy.
2/3
"Every object has an echo in the Æther beyond the world. Every idea has a shadow that can be brought to light."
Rare · Illustrated by Jason A. Engle
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Meletis Charlatan's ability can target any instant or sorcery spell, not just one with targets and not just one that you control.
If the spell being copied has an X whose value was determined as it was cast (like Curse of the Swine has), the copy has the same value of X.
The copy will have the same targets as the spell it's copying unless its controller chooses new ones. That player may change any number of the targets, including all of them or none of them. If, for one of the targets, that player can't choose a new legal target, then it remains unchanged (even if the current target is illegal).
When the ability resolves, it creates a copy of the spell. The controller of the original spell controls the copy. That copy is created on the stack, so it's not “cast.” Abilities that trigger when a player casts a spell won't trigger. The copy will then resolve like a normal spell, after players get a chance to cast spells and activate abilities.