How to create an animation for a mesh that loops and despawns at a certain point

Right click on the orange transform pin and choose ‘split pin’