After image effect

Hello Everyone,
I am trying to make an effect where there are after images of the player, like the Fourfold-Flashstrike startup from the strongest battlegrounds. how would i achieve something like this through code?