Apparently you can upload gifs onto scratch and it makes every frame a costume, so all you have to do is repeatedly use the next costume block.