Simple tram movement question

Hello we’re trying to make a simple tram. It’s a moving platform that starts moving when you press a button. Now the question is, how do we make it so that we can stop the platform whenever we press the button again? It would also be great to make the tram accelerate and stop smoothly. We’re relatively new to unreal so we’re looking a simple answer.

Thanks for help in advance!

Difficult to advise as I do not know how you’re moving the train atm. There are many ways of doing that.

The most basic one would be to interpolate train speed from 0 to MaxSpeed (and vice versa) during Tick.
Button connected to a FlipFlop node would control the interpolation direction.

Again, the implementation would depend on the way you move the train. Are you using splines for the train track/path?