pasje1312
(pasje1312)
March 29, 2025, 5:30pm
#1
I have now tried countless times to make a train system,
I’m trying to make a primary part move with all the object welded to it. The parts should accelarte when the player holds down “W” and decelarate when the player presses “S”. and should go higher than 50 nor go backwards. Players also have to move with the train when touching the train.
Could someone please help me or link me to a tutorial
Should the model follow a certain path like in Dead Rails or just be going a straight line?
pasje1312
(pasje1312)
March 30, 2025, 3:17pm
#3
A straight line would be fine.
This topic has been discussed numerous times so idk if you did your research on this but its whatever… Check out this post it has your solution
This is what I do and my version works pretty well.
local Players = game:GetService("Players")
local player = game.Players.LocalPlayer
local RunService = game:GetService('RunService')
local LastTrainCFrame
local Function
local Function2
Function = RunService.Heartbeat:Connect(function()
--------------------------------------------------------------- CHECK PLATFORM BELOW
local RootPart = player.Character.LowerTorso
local Ignore = player.Character
local ray = Ray.new(RootPart.CFrame.p,Vec…
Hi! I think you might find this topic useful to understand how the train you want works.
Hi everyone! I recently became interested in how the train in the game Dead Rails is built! Initially, I did not have a specific idea of how it was done until I came across this topic . To my surprise, the creator of the original game, @RiccoMiller , himself responded to this and was marked as a solution .
As a true fan of the game , I decided to experiment with this… And so I would like to present my template that I managed to create!
You can download this place here:
Dead …