You make 1 clone of yourself at 5th level spell slot. The clone can spawn within 20ft of you. If you make more than 1, they fill in unoccupied space. This clone lasts until you dispel it, it dies, you're petrified, or your HP hits 0. The clone has up to (meaning you can make it have less, but only in increments of 10) 50% of your health (minimum of 1 HP) but duplicates everything else. Whatever state you were in when you made the clone, that's what the clone has. If you had low health, it has half of that. It can use all the spells that you can (minus this one), it has the same amount of spell slots you did when you cast this spell (minus the one you just spent to cast this spell), Sorcery Points (which it can utilize as well), same AC, stats, skills, abilities, same save/check capability, and pretty much everything you have but its health and can do. It has its own initiative. It spawns in "base form"; meaning it doesn't spawn with body enhancers which it must cast on its in order to utilize. They can use the class abilities you can and has the same resistances/immunities you have. When it dies, it explodes with lightning within a 20ft radius doing 5d10 lightning damage. Any creature in the radius (that isn't immune to lightning damage) must make a Constitution save or be paralyzed, but they still take the full damage if they pass. For any attack spell that does direct damage (not spells that make your body do damage), the clone does can only do as much damage as the percent of its power is (50% clone can only do 50% of the normal spell damage if the spell does damage). If the spell doesn't do damage, it casts it as normal. Even the spell attack modifier and its lightning arm is its percentage of yours, but the DC save is the same. But everything, other than health and damage, is the same as you at the moment you cast it. If you are under any effects that still allow you to cast spells (poisoned, sickened, not burning, Exhausted, etc.) the clone spawns with those effects which last the duration remaining when you cast it. Whatever spell slot level you made the clone at, it can't use spells slots higher. Healing spells and temporary HP spells work on clones. They are treated as summons.
You can make an action, bonus action, or reaction to attacks to switch places with a clone. The clone must be within 200ft of you. If you make more than one clone, you choose which one to switch with. You can choose to have a telepathic connection with your clone, visa versa to send information across one another, so you know what the clone's status is and what it is doing. You and the clones don't have to be next to each other. You can split up from the clones to cover more ground or if the party splits up, you can send a clone to go with each. The clones automatically despawn when you take a long rest.
At higher levels: For every level above 5th: add up to 1 clone (you can make less with a minimum of 1), 10% more HP, and 1d10 for the explosion damage.