I wish get a Particle system working JUST LIKE line trace but fancy way

when line trace visible, it seems threatened enough to use, but i have to change it
like the less unfinished game looks like,
i have to change line color, add smoke effect, and turn off when it stopped
i think this is good idea, but i’d never seen this tutorial anywhere