Alright so I have made like 2 topics based on this train model for @Real_BenTheMiner about problems and stuff but there’s another thing I wanna do that doesn’t work that bothers me.
I wanna add 2 or 4 carriages to the train, here is it right now:
The problem is, I have used hinge constraints and weld constraints and anything else, and when I try to drive the train, its either slow as hell (1 - 5mph) or it doesnt even move at all. I have definitely checked massless options and others that have been recommended to me from the previous topic on this train model.
Anyone have any clues or guidance to help? (I have seen other topics on this particular problem but none of them seem to help for my case)
It most defenitly should work, you’ll just be doing something wrong or theres something preventing it because I’m also working on a train system and it works perfectly fine.
I actually made a post today because I was having issues with my train, its been resolved and the setup is correct it was just a problem with my scripting, but heres the post which will show you how the rod constraint is setup.
Here, sorry I took a while I was trying to fix the controls from being inverted, which I couldn’t seem to fix but I’ll let you try sort that out. (FYI, I disabled the gliders so i could drive on the baseplate, you’ll want to turn cancollide back on sorry, forgot to change this back) 5796009438.rbxm (16.5 KB)
To add more carriages, simply duplicate the train I added, move the new train behind the other and add a rod constraint at each end of each car.
You might want to remake it yourself or whatever because its kind of a mess lol.
I disabled some the scripts that move the BodyVelocities in the bogies and replaced it with LinearVelocity and then made the script move the LineVelocity property in LinearVelocity. Added that rod constraint too. Oh FYI, if you do duplicate that train and couple it to the other, make sure to move the LinearVelocity from the one that would follow because having to linearvelocities for one assembly can cause issues.
Basically, if the train is driven on the client side, it will be smoother than if it was done by the server and if you want all the players to see that train move then you’d have to set the network ownership otherwise the train will only move on the one screen.
No worries! Theres usually always a couple of ways you can do something but might depend how you want it, for an example you could just weld the carriages together but then the train wouldn’t be able to turn or you could do a car trailer like system.