Thanks I got it working, but there are still some bugs
The bar only fills up halfway before stopping, and I can still fire as many times as I want
Edit: Nvm about the bar filling up, but I can still fire as many times as I want. I want it so you can only shoot once, when the bar is full.