How would I create these meshes on a curve?

I played with spline for a hour, and I can’t figure it out. All the tutorials want you to build the spline in the editor then reference it. I want to build it in the blueprint.

I tired this but it doesn’t work at all: