In case you didn't know Scratch can play .gif files! Import your gif as a sprite and use a wait block and a next costume block in a forever loop.