So after trying multiple scripts, yet again, I couldn't make it so that you can spawn a train in a depot and teleport to it. I also want it so that it teleports the train to the line next to it if one is occupied, and if all are occupied, put you in a queue.
I tried multiple scripts, but they were old and unstable. I have tried making one from scratch but studio crashed so I didn't bother rewriting it as well as i forgot some of the lines.