generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Music script needs fixing...

Previous Thread :: Next Thread 
Fireoria is not online. 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
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
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 is not online. 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 is not online. 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 is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
10 Jul 2016 06:12 PM
elseif minutes==1440 then
minutes=0


Report Abuse
Fireoria is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image