Check that flag on where you want func tracktrain to teleport destination rather than the teleport place
Lets say you have two entities named path track one of them is name is path1 next one is path2 you want your func tracktrain to teleport path2 when it reaches path1, first you need to set the next path of the path1 to path2, then go into the flags of path2 entity check teleport to this path track, and it should work