I was inspired by this: https://scratch.mit.edu/projects/1029414468 (not copied, inspired by and I wanted one for my railway.)
sorry for the bad quality