Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make this sound script looped?

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.