[Release] TrainSportation ~ Drive & Be a Passenger in a train!

:smiley: Very Nice Still Working Years And Years Later

does this still work? i’m hearing mixed things.

Does anyone know how to turn off the despawn keybind, also the green and red pointers when you press the keybind?

does this work with onesync?

Hello, this is a nice script.

However, if I spawn a composition with 50 cars in total, the other players in my city will see only the first 10. Why is it?

its too bad the passenger trains dont actually let passengers on even with it set to true you cannot even put a friend in the locomotive

but its annoying because this script works great otherwise

and now someone is trying to sell one for 30 aha

1 Like

Yeah saw that yesterday :rofl:.

im honestly wondering if he took parts of this script here, and the other script made by whats his name with the ticket system, then made his own but whatever

the one downside to this script here other than the no passengers is the desync when you see someone else driving a train

Look about this script, I tried him in the past and he is fine there is what to improve as always in coding but I didn’t look much at the other script to be honest.

are you able to give me the file for the Train Config you created? or explain how to make it easier? I would like to run 2 engines with multiple cars in my server but my Trains.XML config stuff legit does nothing for me.

If you are speaking about the script I made here

No it does not take any code from this or any other scripts its fully made and is completely different from any other scripts, it allows driving and being a passenger in both metros and trains on onesync servers. With NPC passengers and fully custom Train model support

The doors are always open, and i cant close them

how do you make the train go really fast

Somehow when I try to put the Script in my server it starts but nothing happenes in the world can you help me?

When i want to spawn the Trolley the Ftrain is spawning and my game crashes

disable drawline

i know this post is not the latest, but i have one question how can i use the createTrain in another script, because i don’t get it to work somehow

How did you do this?!!?

New update!

  • Tested on 3095, with latest server files (2/4/24)
  • Updated manifest
  • Changes/cleaned up some log stuff
  • New Config.Keybind to change keys easy
  • Config.Debug is on by default now, turn it off if you want to spawn your own trains via another resource!
  • Open/Close Train Doors with animations! (Thanks to HJDCZY (on github))

I don’t support custom trains issues, you can do it, but if you crash or something doesn’t work I can’t help. It probably has something to do with the train not being loaded when you attempt to spawn it.

By default, on 3095, as of 2/4/2024, this works as originally intended (to drive trains)

Have fun with the doors! HJDCZY addition lets you walk inside the trolley! (It opens doors on other trains too!)

https://i.imgur.com/VMzjkLQ.jpeg

yeah I added the door opening system and submitted the pull request! it can be used now!