Array adaptable move to component or similar

Hello, so I’ve encountered a problem in which I cannot seem to find anyway to make “move component to” adaptable to how many items I have stored within array. Im trying to create a snake like game where as you eat fruits you grow, and each part follows head and after each part follows one in front of itself. Managed to do it however it needs to be pre made which will add a lot of repetition as no one can guess maximum number of fruits player could gather so would like it to adapt as title suggests. Any ideas folks?
^screenshots of what I have so far

Nevermind, managed to do it…

how did u do it, cuz I’m running in to the same problem