So i want to make it so my character shoots every half a second while the shoot button is held down, and stop shooting after it's released, but what happens is when i hit the shoot button, it shoots every half a second for infinity, and i can't get it to stop. I tried a different method(i forget what) and it just started the loop over every tick while the button is held down. How do i fix this?
Thank you for your time!