You can drive trains using the trainsportation script I have linked on the post.
Im not 100% sure about AI, it seems to be a little buggy when it loads in and out of players