Moving a spline mesh, not through it

Okay, let me explain:
I want to make something similar to this: The LEGO Movie Videogame Walkthrough PART 5 - TRAIN ESCAPE!! (PS4 XBOX ONE WiiU PC Gameplay 1080p) - YouTube.
I want to have a train wagon (or wagons) move through a spline that act as a rail, but since characters will be on top of it jumping and running, I thought it will be a better idea if I just keep the wagon in one place, and have the rail moving through it giving the illusion that it is actually a moving train.

Here´s the thing: I´ve tried animating the rail with matinee, but it only moves the spline, not the spline mesh that is the actual rail. Also, I´ve seen the tutorials on how to keep a character movement locked to a spline, and thought to do the opposite, move the spline through the mesh, you get the idea, but no luck so far.

Any thoughts are more than welcome, and, if you need any more info, don´t be afraid to ask.

Thanks a lot!!

Okay, I think I solved it using matinee. I added to my spline BP a scene component, and inside the construction script I used a “attach to” node in wich the spline mesh is attached to the scene component. After that I used a matinee actor as usual, and voila! it worked!