Use the up and down arrows to move. Do not let the bats get past. If you get six bats to get past you fail.
Loads of credit to baimaxe(https://scratch.mit.edu/users/baimaxe/ or just click the name) for being awesome. I just found this game in my stuff so I decided to modify it and share it.