--------------------------------------------------------------------
if setupmode == "Manual" then
	
if soundplugin == "StockSound" then

mouse.KeyDown:connect(function(key)
	if key == camkey and enabled == false then
		enabled = true
		local sound = car.DriveSeat.Rev
				local effect = script.soundeffect:Clone()
				effect.Name = "soundeffectCop"
			
		effect.Parent = sound
		
	elseif key == camkey and enabled == true then
		enabled = false
		local sound = car.DriveSeat.Rev
			
			sound.soundeffectCop:Destroy()	
			
	end
end)

car.DriveSeat.ChildRemoved:Connect(function(child)
	
	if child.Name == "SeatWeld" then
		local sound = car.DriveSeat.Rev

		sound.soundeffectCop:Destroy()	
	end
	end)

elseif soundplugin == "SoundSuite" then

	mouse.KeyDown:connect(function(key)
		if key == camkey and enabled == false then
			enabled = true
			local descendants = car.Body.Exh:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
						local effect = script.soundeffect:Clone()
						effect.Name = "soundeffectCop"
					effect.Parent = descendant
				end
			end

		elseif key == camkey and enabled == true then
			enabled = false
			local descendants = car.Body.Exh:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
					descendant.soundeffectCop:Destroy()
				end
			end
		end
	end)

	car.DriveSeat.ChildRemoved:Connect(function(child)

		if child.Name == "SeatWeld" then
			local descendants = car.Body.Exh:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
					descendant.soundeffectCop:Destroy()
				end
			end
		end
	end)
elseif soundplugin == "1.5 Sound" then

	mouse.KeyDown:connect(function(key)
		if key == camkey and enabled == false then
			enabled = true
			local descendants = car.Body.Engine:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
					local effect = script.soundeffect:Clone()
					effect.Name = "soundeffectCop"
					effect.Parent = descendant
				end
			end
				local descendants = car.Body.Exhaust:GetDescendants()

				for index, descendant in pairs(descendants) do
					if descendant:IsA("Sound") then
						local effect = script.soundeffect:Clone()
						effect.Name = "soundeffectCop"
						effect.Parent = descendant
					end
				end

		elseif key == camkey and enabled == true then
			enabled = false
			local descendants = car.Body.Engine:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
					descendant.soundeffectCop:Destroy()
				end
			end
				local descendants = car.Body.Exhaust:GetDescendants()

				for index, descendant in pairs(descendants) do
					if descendant:IsA("Sound") then
						descendant.soundeffectCop:Destroy()	
		end
	end
end
	car.DriveSeat.ChildRemoved:Connect(function(child)

		if child.Name == "SeatWeld" then
			local descendants = car.Body.Engine:GetDescendants()

			for index, descendant in pairs(descendants) do
				if descendant:IsA("Sound") then
					descendant.soundeffectCop:Destroy()
				end
			end
				local descendants = car.Body.Exhaust:GetDescendants()

				for index, descendant in pairs(descendants) do
					if descendant:IsA("Sound") then
						descendant.soundeffectCop:Destroy()
					end
				end
			end
		end)
	end)
end