Player to crate a spline as they walk?

how do I make a player crate a spline behind I’m as he walks, I have the player drop line traces where he walks and I have the location with the line traces and the points I would like it to follow but I cant figure out how to crate the spline, I looks around but nothing rally covers it, looked at crating a “draw Debug line” as the player walks so I can see if the spline works,
thanks

Anther question and may lead to me answering the question above is,
how do I get the location of each Line trance that the player drops behind him, again I have looked but couldn’t find anything, I have tried to make the player draw a line with the points but I cant seems to find out how to log that data at each reference point any help would be grate
thanks