Basically I want this script to stop when I press the button for a second time. So I press it once and it starts but I want it so that when I press it for a second time that it would not play the music again it would turn it all off.
function onClick()
while true do
script.Parent.Parent.Sound1:Play()
wait(120)
script.Parent.Parent.Sound1:Stop()
wait(.1)
script.Parent.Parent.Sound2:Play()
wait(120)
script.Parent.Parent.Sound2:Stop()
wait(.1)
script.Parent.Parent.Sound3:Play()
wait(120)
script.Parent.Parent.Sound3:Stop()
wait(.1)
script.Parent.Parent.Sound4:Play()
wait(120)
script.Parent.Parent.Sound4:Stop()
wait(.1)
script.Parent.Parent.Sound5:Play()
wait(120)
script.Parent.Parent.Sound5:Stop()
wait(.1)
script.Parent.Parent.Sound6:Play()
wait(120)
script.Parent.Parent.Sound6:Stop()
wait(.1)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
Thanks Kieranm9090

2 comments
the thing is it all really confuses me. Is there any more simple script?
In my opinion yes but it is toooooooooooo long