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 » Scripting Helpers
Home Search
 

Re: First Music starts at Music3, wtf!? HELP...

Previous Thread :: Next Thread 
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
11 Feb 2014 11:04 PM
Most of script is just the variables, please read! For some reason when I click the play button, the radio starts at music, then music1, then music2, and then when it starts music3 it also starts music1 again!?!?!? Makes absolutely NO sense.... Please, if there is a dumb mistake or something please fix! Output says nothing.

--------------------------------------------------------------------------------

block=script.Parent.Parent
click=script.Parent.ClickDetector
musiclist={
script.Parent.Parent.music,
script.Parent.Parent.music1,
script.Parent.Parent.music2,
script.Parent.Parent.music3,
script.Parent.Parent.music4,
script.Parent.Parent.music5,
script.Parent.Parent.music6,
script.Parent.Parent.music7,
script.Parent.Parent.music8}

IsOn=false

function Off()
IsOn=false
for i=1, #musiclist do
musiclist[i]:stop()
end end

function On()
IsOn=true
if IsOn==true then
for i=1, #musiclist do
musiclist[i]:play() for i=1, 59 do if IsOn==false then Off() break else wait(1) end end
end else end
IsOn=false
end

click.MouseClick:connect(function(OnClicked)
if IsOn==false then On() else Off() end
end)
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
11 Feb 2014 11:19 PM
Is everyone as clueless as I am? Bump. :3
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
11 Feb 2014 11:22 PM
yep!most certainly!
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
11 Feb 2014 11:24 PM
well fudgeshipazzrapeagghh
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
11 Feb 2014 11:24 PM
its prob that loop inside a loop
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
11 Feb 2014 11:26 PM
Most of script is just the variables, please read! For some reason when I click the play button, the radio starts at music, then music1, then music2, and then when it starts music3 it also starts music1 again!?!?!? Makes absolutely NO sense.... Please, if there is a dumb mistake or something please fix! Output says nothing.

--------------------------------------------------------------------------------

block=script.Parent.Parent
click=script.Parent.ClickDetector
musiclist={
script.Parent.Parent.music,
script.Parent.Parent.music1,
script.Parent.Parent.music2,
script.Parent.Parent.music3,
script.Parent.Parent.music4,
script.Parent.Parent.music5,
script.Parent.Parent.music6,
script.Parent.Parent.music7,
script.Parent.Parent.music8}

IsOn=false

function Off()
IsOn=false
for i=1, #musiclist do
musiclist[i]:stop()
end end

function On()
IsOn=true
if IsOn==true then
for i=1, #musiclist do
musiclist[i]:play()
if IsOn==false then Off() break end
end
IsOn=false
end

click.MouseClick:connect(function(OnClicked)
if IsOn==false then On() else Off() end
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
11 Feb 2014 11:28 PM
lol,i think he just fixed it..
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
11 Feb 2014 11:29 PM
wait,nvm -/-
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
11 Feb 2014 11:31 PM
There is nothing wrong with a loop in a loop, the outer loop knows to go through the music files in ascending order, but doesn't move on until the inner loop has completed it's cycle. Therefore it SHOULD play through to music8 and then end just find. But for whatever odd reason it randomly kicks the first music back up halfway through.
Report Abuse
nosyliam is not online. nosyliam
Joined: 29 Jan 2010
Total Posts: 901
12 Feb 2014 12:25 AM
:stop() isnt a property of a sound
:Pause() is
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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