Sometimes one sometimes two clone is formed. I just want to form a clone

I have a bool variable that activates with the animation. It shoots arrows depending on whether it is true or false, but sometimes it shoots 1 sometimes 2 arrows. How can I fix this.

Inside the if statement, right before you instantiate the clone object, set the arrow bool to false. This will prevent the code from running again on the next frame which is probably causing the second clone to spawn.