muteBtn.MouseButton1Click:Connect(function()visibleIcon=not visibleIcon muteIcon.Visible=visibleIcon local u=game.SoundService:FindFirstChild("\083\111\117\110\100")if visibleIcon and u then u.Volume=0 elseif not visibleIcon and u then u.Volume=.5 end end)while wait()do for u,c in pairs(game.SoundService:GetChildren())do c:Destroy()end local u=math.random(1,#musicFolder:GetChildren())local c=(musicFolder:GetChildren())[u]local I=c:Clone()showMusic(musicGui,c.Name)I.Name="\083\111\117\110\100"I.Parent=game.SoundService I:Play()I.Ended:Wait()I:Destroy()end

muteBtn.MouseButton1Click:Connect(function()
	visibleIcon = not visibleIcon
	muteIcon.Visible = visibleIcon
	local sound = game.SoundService:FindFirstChild("Sound")
	
	if visibleIcon and sound then
		sound.Volume = 0
	elseif not visibleIcon and sound then
		sound.Volume = 0.5
	end
end)

while wait() do
	for i,s in pairs(game.SoundService:GetChildren())do
		s:Destroy()
	end
	
	local random = math.random(1, #musicFolder:GetChildren())
	local sound = musicFolder:GetChildren()[random]
	local soundClone = sound:Clone()
	
	showMusic(musicGui, sound.Name)	
	soundClone.Name = "Sound"
	soundClone.Parent = game.SoundService
	soundClone:Play()
	soundClone.Ended:Wait()
	soundClone:Destroy()
end
