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

okay, i added the coordinates where i wanted my plane to despawn is that what is supposed to do?