local K=script.Parent.AudioPlayerGui.Song local D=carSeat.Audio vol=5 function changeSong()local K=carSeat.Audio.EqualizerSoundEffect if K.HighGain==5 then K.HighGain=-80 K.MidGain=-25 onOff.Text="\073\078"else K.HighGain=5 K.MidGain=7 onOff.Text="\079\085\084"end end function playSong()local O=player.PlayerGui.AudioPlayer.AudioPlayerGui.TextBox.Text D:Stop()D.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061"..O D:Play()K.Text=((game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")):GetProductInfo(O)).Name end function stopSong()D:Stop()end function volUp()if vol+.1<=5 then vol=vol+.1 D.Volume=vol player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text=tostring(vol*1).."\037"end end function volDown()if vol-.1>=0 then vol=vol-.1 D.Volume=vol player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text=tostring(vol*1).."\037"end end ChangeButton.MouseButton1Click:connect(function()changeSong()end)VolUpButton.MouseButton1Click:connect(function()volUp()end)VolDownButton.MouseButton1Click:connect(function()volDown()end)PlayButton.MouseButton1Click:connect(function()playSong()end)PauseButton.MouseButton1Click:connect(function()stopSong()end)
--local Screen = carSeat.Parent.AudioPlayerScreen.SurfaceGui <-- soon
local Song = script.Parent.AudioPlayerGui.Song
local Audio = carSeat.Audio

vol = 5

function changeSong()
	local effect = carSeat.Audio.EqualizerSoundEffect
	if effect.HighGain == 5 then
		effect.HighGain = -80
		effect.MidGain = -25
		onOff.Text = "IN"
	else
		effect.HighGain = 5
		effect.MidGain = 7
		onOff.Text = "OUT"
	end
end

function playSong()
	local id = player.PlayerGui.AudioPlayer.AudioPlayerGui.TextBox.Text
	Audio:Stop()
	Audio.SoundId = "http://www.roblox.com/asset/?id=" .. id
	Audio:Play()
	--Screen.Song.Text = game:GetService("MarketplaceService"):GetProductInfo(id).Name
	Song.Text = game:GetService("MarketplaceService"):GetProductInfo(id).Name
	--Screen.ID.Text = id
end

function stopSong()
	Audio:Stop()
end

function volUp()
	if vol + 0.1 <= 5 then
		vol = vol + 0.1
		Audio.Volume = vol
		player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text = tostring(vol * 1) .. "%"
		--Screen.Vol.Text = tostring(vol*100) .. "%"
	end
end

function volDown()
	if vol - 0.1 >= 0 then
		vol = vol - 0.1
		Audio.Volume = vol
		player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text = tostring(vol * 1) .. "%"
		--Screen.Vol.Text = tostring(vol*100) .. "%"
	end
end

ChangeButton.MouseButton1Click:connect(function()
	changeSong()
end)

VolUpButton.MouseButton1Click:connect(function()
	volUp()
end)

VolDownButton.MouseButton1Click:connect(function()
	volDown()
end)

PlayButton.MouseButton1Click:connect(function()
	playSong()
end)

PauseButton.MouseButton1Click:connect(function()
	stopSong()
end)
