Sound system not working

So, while ago I made this sound system with a mute and unmute button and it worked perfectly well, but for some reason It is not working now when I brought it into one of my games.

Here is the code:

local CoffinSong = script:WaitForChild("CoffinDance")
local Running90 = script:WaitForChild("RunningInTheOofs")
local WiiTheme = script:WaitForChild("WiiTheme")
local Mute = script.Parent.MuteButton
local Unmute = script.Parent.UnmuteButton
local SongPlayingText = script.Parent.SongName
local SongsMuted = false

Mute.MouseButton1Click:Connect(function()
		print("Songs were muted")
		CoffinSong.Volume = 0
		Running90.Volume = 0
		WiiTheme.Volume = 0
	Mute.Position = UDim2.new(0, 0,1.1, 0) 
	Unmute.Position = UDim2.new(0, 0,0.89, 0)
end)

Unmute.MouseButton1Click:Connect(function()
	print("Songs were unmuted")
	CoffinSong.Volume = 0.5
	Running90.Volume = 0.5
	WiiTheme.Volume = 0.5
	Unmute.Position = UDim2.new(0, 0,1.1, 0) 
	Mute.Position = UDim2.new(0.002, 0,0.89, 0)
end)

while SongsMuted == false do
	CoffinSong:Play()
	SongPlayingText.Text = "Song Playing: Astronomia(Coffin Dance) by Vicetone"
	CoffinSong.Ended:Wait()
	Running90:Play()
	SongPlayingText.Text = "Song Playing: Running in the OOFS"
	Running90.Ended:Wait()
	WiiTheme:Play()
	SongPlayingText.Text = "Song Playing: Wii theme"
	WiiTheme.Ended:Wait()
end

I get this error: 22:58:58.701 - Failed to load sound rbxassetid://5054555073: Unable to download sound data

The song either got deleted or couldn’t load in. You could try making a timeout for the Ended event or changing the song.

Yes, the coffin dance one was deleted, thank you.

2 Likes