how do i use splines to make a player generated fence system

so i have it where the actor for the fence is spawned where players cursor left clicks and the problem im having is what to do from there