So, I'm making a gun script, and I'm having trouble automating the gun. How can I make repeatingly shooting while holding the mouse button?
The way I'd approach it, is by creating a variable holding
. Then set up 2 events, Button1Down and Button1Up, then simply toggle holding
correspondingly. In your fire function, have it keep shooting white holding
is true.