-- Volume Functions --


function VolumeUp()
	volumeValue.Value = volumeValue.Value + 0.1
end

TV.VButtonUp.ClickDetector.MouseClick:Connect(VolumeUp)

function VolumeDown()
	volumeValue.Value = volumeValue.Value - 0.1
end

TV.VButtonDown.ClickDetector.MouseClick:Connect(VolumeDown)

function VolumeChanged()
	if volumeValue.Value < 0 then
		volumeValue.Value = 0
	elseif volumeValue.Value > 1.2 then
		volumeValue.Value = 1.2 -- I don't recommend any value higher than 1, it's annoying.
	else
		music.Volume = volumeValue.Value
	end
end

volumeValue.Changed:Connect(VolumeChanged)
