Train Movement System

Hi I’m quite new to the forum and this is my first post.

I’d like to ask how I may go about making a powered acceleration system to move a train and what would be the best point of action doing so. So far I’ve considered using constraint motors and motor3d.

For non-train enthusiasts, a powered system is a tiered power system and the method of implementation in my mind is for it to be controlled by W/S keys. Eg. B3, B2, B1, N, P1, P2, P3. It’s a throttle notch sort of thing.

Along side on how I may go about making that I’d like to ask which could be the best way to make a control system based on that. Note that this is controlled by a player. Should I use constraint motors? Cframe? I’ve never done anything outside of hinge constraints to resources would be helpful based on movement system suggestions.

Thank you,
-Wilzway

2 Likes

CFrame might be a bit hacky for train system. However, my old train system uses BodyVelocity + BodyGyro (physics).

To make a train movement system, you have to use CAS (ContextActionService) and some remote events, variables etc.

For the movement, you can use a while wait() do loop, and in the loop, set the bodyvelocity and bodygyro. BodyVelocity = LookVectorThrottleMaxSpeed etc

5 Likes

Can you just tell us the script

2 Likes