Is It Possible to Toggle Object Color From Green To Red If A Player Is In A Certain Distance Without Using LERP?

How about this?

349044-color.gif