This script isnt super essential, but it does solve one of the problems I had with the original mod: the rails were there but weren't functional.
I will be implementing one derailment, and one crossing accident into the mod. I just need some time to figure out how to do that while also maintaining functionality with the moving trains.