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

How do I make this sound script looped?

Asked by 10 years ago

Okay so here is the script

Wait(0)
while true do
game.Workspace.Music.Sound:Play()

Wait(120)
game.Workspace.Music.Sound2:Play()

Wait(120)
game.Workspace.Music.Sound.Looped = true

Wait(120)
game.Workspace.Music.Sound2.Looped = true

end

I want the sounds to play over again when the other song stops. Any ways to help with this?

1 answer

Log in to vote
1
Answered by
Vividex 162
10 years ago
local Soundone = game.Workspace.Music.Sound -- I guess if its in a model or part called "Music" then you can have it  if not then it doesnt make sense to put music there
local Soundtwo = game.Workspace.Music.Sound2

wait(0)
while true do
Soundone.Lopped = true
Soundone:Play()
wait(120)
Soundtwo.Lopped = true
Soundtwo:Play()
end

You don't need so many wait(120)'s I didn't test it, try it. The one you made will Play the first sound wait 120 play second sound, wait 120, make the first song looped (not playing), wait 120, then make the second sound looped (also not playing), so your making it looped while its not even playing.

Ad

Answer this question