177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 04:26 PM |
while true do wait(1) script.Music.Pitch = 1 script.Music:play() script.Music:pause() wait(120) script.Music2.Pitch = 1 script.Music2:play() script.Music2:pause() wait(120) script.Music3.Pitch = 1 script.Music3:play() script.Music3:pause() wait(120) script.Music4.Pitch = 1 script.Music4:play() script.Music4:pause() wait(120) script.Music5.Pitch = 1 script.Music5:play() script.Music5:pause() wait(120) script.Music6.Pitch = 1 script.Music6:play() script.Music6:pause() wait(120) script.Music7.Pitch = 1 script.Music7:play() script.Music7:pause() wait(120) script.Music8.Pitch = 1 script.Music8:play() script.Music8:pause() end
Its for a soundtrack. It won't play at all. What I want is it to play song 1, end it and play song 2, then stop song 2, start song 3 and ETC. Although I also eventually want it to go back to playing song 1 after playing song 8, I'm pretty sure that part is automatic though. |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 05 Sep 2014 04:27 PM |
| this is the holy grail of inefficiency right here, guys. |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 05 Sep 2014 04:29 PM |
local sounds={[yoursound]=lengthofsong,[secondsong]=lengthagain} while wait() do for song,length in pairs(sounds) do song:Play() wait(length) song:Stop() end end
Add more sounds and stuff. |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 04:32 PM |
Ok, so I do I o this
local sounds={[ID,ID,ID]=lengthofsong,[secondsong]=lengthagain} while wait() do for song,length in pairs(sounds) do song:Play() wait(length) song:Stop() end end |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 05 Sep 2014 04:35 PM |
Erm no
local sounds={ [script.Parent.Music1]=120, [script.Parent.Music2]=120, [script.Parent.Music3]=120, [script.Parent.Music4]=120, [script.Parent.Music5]=120, [script.Parent.Music6]=120, [script.Parent.Music7]=120, [script.Parent.Music8]=120 } while wait() do for song,length in pairs(sounds) do song:Play() wait(length) song:Stop() end end |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
| |
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 04:37 PM |
| wait what goes in localsounds{ |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 04:38 PM |
| Im having a brain fart understanding this, can you try fixing my original script? |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 05 Sep 2014 04:39 PM |
| the original script was bad, his method would be more efficient |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 04:40 PM |
| I see, but I dont't get where to put the sound ID's in his script. |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
| |
|
|
| 05 Sep 2014 05:03 PM |
local sounds={ [script.Music1]=120, [script.Music2]=120, [script.Music3]=120, [script.Music4]=120, [script.Music5]=120, [script.Music6]=120, [script.Music7]=120, [script.Music8]=120 } while wait() do for song,length in pairs(sounds) do song:Play() wait(length) song:Stop() end end |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 05:11 PM |
| What do I put in (sounds)? The ID's? |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 05 Sep 2014 05:12 PM |
It says "script.*"
so clearly you put Sounds inside the script called Music1, Music2, et cetera |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 05:14 PM |
| Wait wait wait, music1, music2 etc. are sounds not scripts. |
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
| |
|
|
| 05 Sep 2014 05:15 PM |
.-.
OKAY
SO YOU PUT THE MUSIC INSIDE THE SCRIPT
WITH THE NAMES MATCHING
|
|
|
| Report Abuse |
|
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 05:18 PM |
| I did... Won't work. I put all the Music1, Music2 etc. inside the script. |
|
|
| Report Abuse |
|
|
| |
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
| |
|
177117
|
  |
| Joined: 17 May 2010 |
| Total Posts: 1366 |
|
|
| 05 Sep 2014 05:32 PM |
I fixed my original script, thanks for the help all!
:3 |
|
|
| Report Abuse |
|
|