Camera Relative Movement

Just wanted to come back and say thanks again to RhythmScript for the idea of using boxes aligned along a spline to guide the player round curves. I’ve managed to implement this system into my character movement and it works surprisingly well and is far neater than my approach of locking to a spline path or using traces etc. to detect splines.

My only issue now is that if my character starts at 0 on the X axis with the guiding path also aligned to start at 0 on the X axis, and then moves along my curved path, if I go back along the path and return to the starting location my character doesn’t return to 0 on the X axis and retains a slight offset.

Does anyone have any suggestions as to how I can eliminate this offset?