Based on this homing missile made this:
Dot spawns every 0.5 seconds and follow the previous spawned one.