Spline component overlap change material

hello friends, i am new to unreal engine. I have created a car paint project. The road is created using spline and my player car move on it on event tick using player spline that i placed on road spline. i want to change the material of road spline component as my car player move forward on it. or one more question is i have to create different spline for player or the material change can be achieve using only the road spline.