setInterval Targeting

looking for some info and the ability to target a setInterval function. In my experience it won’t seem to let me “set” or “clear” the funtion anywhere except the timeline its defined in. this is causing issues in the game I’m building.

is this actually the case with setInterval or is my code outta whack?