I am making a game and decided to make the audio play from the server, but I have an issue: When the first song ends the next song starts all fine but you can't hear it Here's my code:

repStorage = game:GetService("ReplicatedStorage")
wait(3)
while true do
	wait()
	for i,v in pairs (repStorage.Songs:GetChildren()) do
		if v:IsA("Sound") then
			v:Play()
			repStorage.Songs.NotifyAboutSong:FireAllClients(v.Name)
			repStorage.Songs.SongPlaying.Value = v.Name
			wait(v.TimeLength - 0.05)
			v:Stop()
			wait(.05)
		end
	end
end

Songs is a folder that all sound objects are put in using Instance.new

NotifyAboutSong is a remote that triggers a popup informing clients about the song name

SongPlaying is a string variable

1 comment

0

Have you tried it with different sounds and tried to fiddle with some settings? Let me know.