I’m looking to make a train going through a tunnel, i would like the tunnel to keep looping to make it look like the train is moving. The players will be in side the train. I am currently using a Cframe loop to move the walls and train track backwards and forwards. But this isn’t very efficient so if you have a recommendation on what i could do please leave it below. Thank you.
You can try using CFrame:Lerp() in a loop to change the position of the primary part of the train. And once it the train reaches its goal, you set it back to its original position.
Do you want your train to go backwards? If not you could cycle through two wall parts moving them back to the start when the second part goes by. I’m not sure of the most efficient way to animate the part though.
I’m not sure about this. Imagine if he has an elaborate train interior, if he leaves it fixed anchored, it will simplify his building(no welding) and allow more detail without lag of moving all of the welded pieces.
I guess it depends on his train and game idea.
I would be very interested to see the effect of a moving wall, perhaps just a simple brick with maybe a blurred texture(to add some faked motion blur) I think that along with some camera shake could be very convincing.
This is assuming you want your train to keep going infinitely.
Good idea, the wall would be the beam texture, you make it big enough to cover the windows. I’d like to see what you come up with here, sounds interesting.