I’m not sure how the Curve Attraction component works, but maybe Curve Closest Point (using the distance output) will give you the output I think you are looking for in your original definition.
Also FYI, the title HELP is a bit of a no no in this forum. See item 1.