Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I put in Day and Night Music?

Asked by 6 years ago

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!

0
Hello, ShiningStar01. My name is Bryson467, Scriptinghelper.org is a Helping website for scripting it is not a request website. We are going to need you to attemp to make the script on your own and if you have any problems and or errors with your script please go ahead and post on here, and then one of our developers with contact you with a response. Bryson467 12 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

--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

Ad

Answer this question