Howdy!
First, check this GIF: https://gyazo.com/692e331b2b8664da939ae95d57d65977
Second, i made this script:
local Cart = workspace:WaitForChild('Train1')
local Train1 = Cart:WaitForChild('FrontCar')
local ThisCar = script.Parent
local Tracks = workspace:WaitForChild('Tracks')
local TrackNumb = 1
local Int = 0.01
repeat
local Stop = script.Parent.StopValue.Value
Finish = workspace.Tracks:FindFirstChild('Part'..TrackNumb).CFrame
for i = 0,1,Int do
local CFrameMath = script.Parent.FrontCar.PrimaryPart.CFrame:lerp(Finish,i)
Train1:SetPrimaryPartCFrame(CFrameMath)
wait()
end
TrackNumb = TrackNumb +1
if TrackNumb >6 then
wait()
TrackNumb = 1
end
until Stop == true
Now, as you can see on the GIF, my train stops at every Brick. But i'd like it to not stop on every one, but go towards it and when nearby to it, it goes to the second, and so on the third, fourth, fifth, and so on.
People have been telling me to go on Tween, but tween does not make a train properly go make a turn. So i'm stuck to CFrame. But, now this is the struggle i got to deal with.
Any captain here so serve this poor citizen?

1 comment
I've seen his video yeah. I'll take a look at it again