How do I make lightning trail like the flash?

I need to know how to make the Lightning trail particles like when the flash Runs I’m really desperate to know

In the Content Examples pack there is particle effect called P_electricity_arc that could probably help you out.

Like BenjaFriend said, try to spawn a particle effect when you character moves and then make them disappear after a while.