I'm not here to ask about my scripting problems, but to ask about how the snake movement in this game was made.
You see, when the snake's head moves, every other body parts of the snake follow the head 1 by 1, what algorithm do I use to make that? It's way too hard for me to figure out.
Once I know how the snake movement works, I'll figure out how to make the train movement.