How to create materials that change according to a stopwatch

Hi I’m new to UEFN and I’m creating my own game. My goal is to create a material that changes color (two colors) according to a clock that I have programmed. Or else just know how to assign a material depending on the state of the clock.

You can SetMaterial() SetMaterial function | Unreal Editor for Fortnite Documentation | Epic Developer Community

Or you can design a material that changes color over time. In my uefn map The Experiment, the wall color changes dynamically between a few predefined colors is this the effect you are looking for?

I think I’m going to do more without code because I’ve been trying all day with code but I can’t do it even with the documentation and Chat GPT. Could you tell me how to create a material that reacts to a signal from a stopwatch, either by assembling blocks or a Verse script, but then tell me exactly how to build this script.
Thank you very much for taking the time to explain!