How do i make bullet trail like in tower defense simulator?

So i’m trying to make bullet trail from gun to the zombie, and i want to know what’s the best way to do it accurate? And also it looks pretty cool in tds, somebody knows what they’re used for it?