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

So how do I make this looping sound script stop when the other songs play?

Asked by 10 years ago
local Soundone = game.Workspace.Music.Sound
local Soundtwo = game.Workspace.Music.Sound2
local Soundthree = game.Workspace.Music.Sound3
local Soundfour = game.Workspace.Music.Sound4

wait(0)
while true do
Soundone.Looped = true
Soundone:Play()
wait(120)
Soundtwo.Looped = true
Soundtwo:Play()
wait(240)
Soundthree.Looped = true
Soundthree:Play()
wait(360)
Soundfour.Looped = true
Soundfour:Play()
end

Whenever a song plays and stops to go to the other song, it plays the first song before that over again. Any scripts or answers that'll help?

1 answer

Log in to vote
1
Answered by
TheMyrco 375 Moderation Voter
10 years ago

Use «SOUND»:Stop().

See: http://wiki.roblox.com/index.php?title=API:Class/Sound/Stop

Ad

Answer this question