Playing background music based on time of day

Thanks, however even after fixing that part I still am not able to make the music switch properly based on the day and night cycle. I have also attempted to use the directional light rotation as a method for a day and night cycle but it still does not operate as I want it to. Here’s the modified version of the script.