function ChannelDown()channel.Value=channel.Value-1 end TV.CButtonDown.ClickDetector.MouseClick:Connect(ChannelDown)function ChannelUp()channel.Value=channel.Value+1 end TV.CButtonUp.ClickDetector.MouseClick:Connect(ChannelUp)local function a()if channel.Value<1 then channel.Value=MaxChannel elseif channel.Value>MaxChannel then channel.Value=1 else music.SoundId=songs[channel.Value]music:Play()img.Texture=images[channel.Value]end end channel.Changed:Connect(a)


function ChannelDown()
	channel.Value = channel.Value - 1
end

TV.CButtonDown.ClickDetector.MouseClick:Connect(ChannelDown)

function ChannelUp()
	channel.Value = channel.Value + 1
end

TV.CButtonUp.ClickDetector.MouseClick:Connect(ChannelUp)


local function ChangeChannel()
	if channel.Value < 1 then -- If the VALUE is 0, the script won't work bc the value is nil on the tables.
		channel.Value = MaxChannel -- You can change the MaxChannel value if you like.
	elseif channel.Value > MaxChannel then
		channel.Value = 1
	else
		music.SoundId = songs[channel.Value]
		music:Play()
		img.Texture = images[channel.Value]
		
	end
end


channel.Changed:Connect(ChangeChannel)
