is there a way to make the z-axis of a vector always align with a spline in scratchpad

in scratchpad i made a function that makes a spiral and updates the position of a particle based on the spline you put in the input but i want the spiral to spiral along the spline, is there a way to allign the z axis of this vector to the spline so it rotates with the spline