Mesh Spline Component Spinning on itself

Hi,

I’m trying to write down a simple spline tool that makes a mesh follow a spline and “tiles” it.

The problem is that every mesh spins around itself and I couldn’t figure out how to fix this issue. I was following tutorials and searching everywhere for a solution but nothing.

This is my BP and a screen with the problem:

1ae42d055f88b14d9692e5d7fd1dc14eb860efb1.jpeg

For anyone else who had this problem.
I found that using “Get Direction at DIstance Along Spline”
Then,
Multiplying the result by the length of my segments.
And using that as the tangent.
Fixed this for me.