Having trouble adding custom parts to character

I’m trying to make my character customizable using hair as separate part but when I move hair goes all over the place I found videos showing how to fix this by using either sockets or leader pose but they don’t seem to work hair still moves