Make a part follow another part thats being tweened

just use constraints. sounds lazy but its efficient.

for following and length, use a rod constraint. Rod gives length for a gap upon each attachment -

so add one attachment to the end of the 1st train and then add another to the 2nd train (at the front)

also gives optimal rotation tilt.

watch these videos they should help. Mechanical Constraints | Documentation - Roblox Creator Hub

2 Likes

You could create an array that stores the previous CFrame of the leading car, the leading car would use the table.insert(table, CFrame) function and the wait until it has stored enough positions at which point it could get the first item in the array using array[1] apply that CFrame to the following car and and use the table.remove(table, 1) to keep the table as small as possible.

2 Likes

Do you have a sample script, cause i tried making it and it would not work. (Plus when the 1st car is beginning to move, the table is still empty and does not have any previous CFrames for the 2nd car to go to) so thats another problem.

Nvm i figured it all out. Thank you all of you guys on helping me to do this.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.