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

the purple plane is 50350.0 units in the sky, but the grey ones appear to be much larger