i want change color in line renderer.

In linerenderer, i make line to use add index.
and i drow line to connext each index pos.

next step is change a line color.
that step give me a problem.
i want change not every line color but just Specific index to index line.
i can’t access. i need help.
i will thanks to even abstractive answer.

You can’t do that with a single Line Render. The line is draw with the same materials along all its length.
You can set a color for the beginning, and a color for the end, and a gradient in between the length.
You could split it in several line renders, but that is a lot of work.