Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 10 Jul 2016 05:36 PM |
My previous one didn't work properly. So could you make a NEW music script that plays different audio at different time of day? And there are five instances in Workspace. MorningMusic, NoonMusic, AfternoonMusic, EveningMusic, and NightMusic. I want MorningMusic to play at 06:00:00, NoonMusic at 12:00:00, AfternoonMusic at 13:00:00, EveningMusic at 18:00:00, and NightMusic at 20:00:00.
And please test it all the way through. The previous error was the night music still playing in broad daylight.
[[ AND DON'T YOU EVEN THINK ABOUT IT, ONE OF THOSE PREVIOUS THREAD PARTICIPATORS. I HOPE THIS ONE WILL BE BETTER. ONE OF YOU EVEN SAID THAT THE POST BEING ANSWERED TO PROPERLY WILL NEVER HAPPEN. DO NOT DO WHAT YOU ARE ABOUT TO DO. Everybody else who is NICE and wants to help me, it would be great if you would, rather than be like on of those bullies. ]] |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2016 05:41 PM |
local moosic ={ game.Workspace.MorningMusic, game.Workspace.NoonMusic, game.Workspace.AfternoonMusic, game.Workspace.EveningMusic, game.Workspace.NightMusic} --List of music function muusic(moosics) --Making sure it's music for i,v in ipairs(moosics) do v.SoundId = http://www.roblox.com/asset/?id=295022416 --Simple check end end while wait(1) do muusic(moosic) local thing = moosic[math.random(1,#moosic) if thing.SoundId == http://www.roblox.com/asset/?id=295022416 then if game.Lighting.TimeOfDay == 06:00:00 then moosic[1]:Play() elseif game.Lighting.TimeOfDay == 12:00:00 then moosic[2]:Play() elseif game.Lighting.TimeOfDay == 13:00:00 then moosic[3]:Play() elseif game.Lighting.TimeOfDay == 18:00:00 then moosic[4]:Play() elseif game.Lighting.TimeOfDay == 20:00:00 then moosic[5]:Play() end end end
Posted in the other thread as well c: Enjoy |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 10 Jul 2016 05:45 PM |
I remember, I was the one who answered your previous thread. However I only did what you asked. You did not say the other music had to stop. So be more specific. When the next music hits use :Stop() on the previous sound.
|
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 10 Jul 2016 05:55 PM |
I think it's because "minutes" keeps going up. I tried:
if minutes == 1560 then minutes = 360 end
Didn't work. >:T |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 10 Jul 2016 06:12 PM |
elseif minutes==1440 then minutes=0
|
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 11 Jul 2016 11:45 AM |
| OH! I forgot I should've done elseif instead of if. Thanks, man. |
|
|
| Report Abuse |
|
|