Hiya! I am currently working on a playlist script. However, I have run into a problem. When I join the game the music starts, fine. But ever few seconds the song skips to the next one and I am not sure how to fix it. Any help is appreciated
while true do
wait(2)
local CurrentlyPlaying = Music[math.random(1,#Music)]
MusicPlayer.SoundId = "rbxassetid://"..CurrentlyPlaying
wait(1)
MusicPlayer:Play()
end
while true do
wait(2)
local CurrentlyPlaying = Music[math.random(1,#Music)]
MusicPlayer.SoundId = "rbxassetid://"..CurrentlyPlaying
wait(1)
MusicPlayer:Play()
MusicPlayer.Ended:Wait()
end