3. Keep Track of When the Player Clicks with the Pickaxe
Inside your Pickaxe script, create two new functions called 'onMouseDown' and 'onMouseUp' that change a new variable 'leftButtonDown' to true and false respectively.
In your pickaxe script, make space above your 'onEquipped' function in your code. In that space, write the new function 'onMouseUp' which does not take any parameters.
Don't forget to hit the 'return/enter' key to get an 'end' statement.