I'm trying to figure out certain scripts for a game I'm making. One I'd like to make is a music change from when it turns Day, Dusk, then Night. My plan was once it turns day (Either after night ends or when the player joins) It would play an intro sound then the actual music. The next for Dusk would be the same kind of thing except it would do a different intro sound and happen after day ended and started when the sun started to go down. For night I don't have an audio for an intro but a simple audio editor could go ahead and finish it. Pretty much the same formula as the last two.
Can anyone help me with this?
Note that I want the day, dusk, and night to all last certain amounts of time so the music won't just suddenly start then stop such as at Dusk since it lasts such a short amount of time compared to day and night on their own.
Thanks! And no I'm not exactly an advanced scripter. I want to learn to make well made games and scripts. I'm only a beginner!
--hopefully this helps, put this in workspace and name the music "Day" and "Night"
while true do script.Parent.Day:Play() wait() -- add the time your days are script.Parent.Night:Play() wait() --add the time your nights are