How can I make a "FireTrail Power" that follows your mouse when you press a keybind?

I was looking around but I couldn’t really find what I was looking for so I’ll explain here. What I’m trying to create is a key bind power that creates a fire trail that follows your mouse. Cloning the fire and parenting it to workspace wherever the player’s mouse is, is the easy part but how would I make it work by following your mouse for a certain amount of time? If you need a visual example I have one.

what I said was wordy and probably not understandable so here is what I’m trying to create

You can try to find the mouse position and then create parts with particles inside them.