Assigning Pitch modulation to an asset.

I have actually attempted to do something similar so all i can tell you is the wrong way to do it and maybe you can figure out what i’m doing wrong:

So essentially what i’m doing here is almost a for loop, but i’m trying to use the pitch multiplier to make the heartbeat go faster, and i’m checking it against the “max heartrate” variable i set for myself to cap out the fastest i want it to speed up. What you’re not seeing is that this whole section is being called by a custom event i added that triggers every time someone presses the shift button. At the end of that custom event, it calls itself, essentially creating a loop, and the break function is a boolean i have set to true when the button is pressed, and false when the button is released, so with every loop it will check if the button is still being pressed and then if it isn’t, it will do nothing, if it is, it will continue to loop.