below is a basic script to get this working. basically you have a variable and set it to true when the button is pressed and false when released. then call the fire function. this function will keep firing until the variable becomes false.