How to make a level lock and unlock system

Hello, I managed to create a save and load, but could you tell me how to change the color (material) of the object if the level was completed?