Event Looping Problem

So i have this event that play on a button being pressed and it’s a ghost trail thingy and i want it to loop but idk how to stop it (Ex: stop on release or stop by a certain amount of time) pls… help