This is a code I wrote for this: https://youtu.be/Yteh0_6yENs
I posted this on youtube to help people learn how to use scratch. I will post my codes here so you can get a inside look.