I did it with the help of the Path Animator Script