What I want this script to do, is that a new song is played every 130 seconds. But there actually are 2+ sounds playing at the same time?? Can anyone help me fix this please? The songs are NOT looped.
while true do songs = script.Parent.Radio:GetChildren() playsong = math.random(1,#songs) songs[playsong]:Play() wait(130) end
while true do songs = script.Parent.Radio:GetChildren() playsong = math.random(1,#songs) songs[playsong]:Play() wait(130) songs[playsong]:Stop() end
Well for one u have a 'while true do' so it will loop continually. Even though it waits 130 seconds the song might be longer then that so it will overlap with another song thats playing