Move the mallet around with your mouse and click on the mole when it appears to whack it away.
Thank you to piranahpirana365 https://scratch.mit.edu/users/piranahpiranah365/ for inspiration from his game Whack-O-Nano https://scratch.mit.edu/projects/463030871/