Hey guys, Happy Friday!
I might figure this out tonight, but if anyone could help point me in the right direction, that'd be nice cause Im kinda lost.
I'm making a script on moving this train, but the train is very slow so I want to increase the speed, Rotate the train to return, and change the direction of the vehicle.
I imagine it will take a lot of looping, but Im unsure on how to get loops to run efficiently so I started here:
parts=script.parent.Train:GetChildren()
while true do
wait()
for i=1,#parts do
parts[i].CFrame=CFrame.new(0,0,.1)*parts[i].CFrame
end
end
I suppose I could have two extra scripts, one for the return CFraming, the other to rotate the vehicle after a certain period of time and toggle disable/enable the other two scripts ...
Just doesn't seem like that'd help my game flow at optimal levels.
Any input is appreciated, Take it easy guys!
-G7

1 comment
Oh thanks, I will try that! I always have a problem setting the primary part.. it tends to throw errors at me. May also use repeat/until loop