local U=script.Parent.AudioPlayerGui.Song local c=carSeat.Audio local t=carSeat.Audio1 local d=carSeat.Audio2 local u=carSeat.Audio3 local j=carSeat.Audio4 vol=100000.0 function playSong()local a=player.PlayerGui.AudioPlayer.AudioPlayerGui.TextBox.Text c:Stop()t:Stop()d:Stop()u:Stop()j:Stop()c.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"..a t.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"..a 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"..a u.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"..a j.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"..a c:Play()t:Play()d:Play()u:Play()j:Play()U.Text=((game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")):GetProductInfo(a)).Name end function stopSong()c:Stop()t:Stop()d:Stop()u:Stop()j:Stop()end function volUp()if vol+.1<=1 then vol=vol+.1 c.Volume=vol t.Volume=vol d.Volume=vol u.Volume=vol j.Volume=vol player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text=tostring(vol*100).."\037"end end function volDown()if vol-.1>=0 then vol=vol-.1 c.Volume=vol t.Volume=vol d.Volume=vol u.Volume=vol j.Volume=vol player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text=tostring(vol*100).."\037"end 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 Song = script.Parent.AudioPlayerGui.Song
local Audio = carSeat.Audio
local Audio1 = carSeat.Audio1
local Audio2 = carSeat.Audio2
local Audio3 = carSeat.Audio3
local Audio4 = carSeat.Audio4

vol = 100000.0

function playSong()
	
	local id = player.PlayerGui.AudioPlayer.AudioPlayerGui.TextBox.Text
	Audio:Stop()
	Audio1:Stop()
	Audio2:Stop()
	Audio3:Stop()
	Audio4:Stop()
	Audio.SoundId = "http://www.roblox.com/asset/?id="..id
	Audio1.SoundId = "http://www.roblox.com/asset/?id="..id
	Audio2.SoundId = "http://www.roblox.com/asset/?id="..id
	Audio3.SoundId = "http://www.roblox.com/asset/?id="..id
	Audio4.SoundId = "http://www.roblox.com/asset/?id="..id
	Audio:Play()
	Audio1:Play()
	Audio2:Play()
	Audio3:Play()
	Audio4: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()
	Audio1:Stop()
	Audio2:Stop()
	Audio3:Stop()
	Audio4:Stop()
	
end

function volUp()

	if vol + 0.1 <= 1 then
		vol = vol + 0.1
		Audio.Volume = vol
		Audio1.Volume = vol
		Audio2.Volume = vol
		Audio3.Volume = vol
		Audio4.Volume = vol
		player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text = tostring(vol*100) .. "%"
		--Screen.Vol.Text = tostring(vol*100) .. "%"
	end
	
end

function volDown()
		
	if vol - 0.1 >= 0 then
		vol = vol - 0.1
		Audio.Volume = vol
		Audio1.Volume = vol
		Audio2.Volume = vol
		Audio3.Volume = vol
		Audio4.Volume = vol
		player.PlayerGui.AudioPlayer.AudioPlayerGui.Vol.Text = tostring(vol*100) .. "%"
		--Screen.Vol.Text = tostring(vol*100) .. "%"
	end
	
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)
