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

Help with this sound (simple)?

Asked by
Qorm 100
9 years ago
wait(1)
Radio=script.Parent
Sound1=game.Workspace.Delta.TearsForFears 
Sound2=game.Workspace.Delta.DownTheRoad
Sound3=game.Workspace.Delta.PinkFloyd
Sound4=game.Workspace.Delta.Monsta

while true do
 wait()
    Sound1:Play()
if Sound1.IsPaused==true then
 Sound2.Play()
 end
if Sound2.IsPaused==true then
 Sound3.Play()
 end
if Sound3.IsPaused==true then
 Sound4.Play()
 end
if Sound4.IsPaused==true then
 Sound1.Play()
 end end

How would I make it so whenever the sound stops playing it would start playing the new one? Sorry for the stupid question

2 answers

Log in to vote
1
Answered by 9 years ago
wait(1)

workspace = game:GetService("Workspace")

Radio = script.Parent
Sound1 = workspace.Delta.TearsForFears
Sound2 = workspace.Delta.DownTheRoad
Sound3 = workspace.Delta.PinkFloyd
Sound4 = workspace.Delta.Monsta


while true do
 wait()
   Sound1:Play()
if Sound1.IsPaused then
    wait(3)
 Sound2.Play()
elseif Sound2.IsPaused then
    wait(3)
 Sound3.Play()
elseif Sound3.IsPaused then
    wait(3)
 Sound4.Play()
elseif Sound4.IsPaused then
    wait(3)
 Sound1.Play()
 end 
    end

Try using this and see how it goes. Also, you don't need to set the sounds to true when doing if/else statements.

Ad
Log in to vote
0
Answered by 9 years ago

The only way (I think) is to time each song and use a wait or something to make a gap, then once the time is out, the next song will begin playing.

Answer this question