seat=script.Parent.Parent sound=seat.Parent.Sound sirens={}for H,G in pairs(sound:GetChildren())do if G:IsA("\083\111\117\110\100")and G.Name~="\104\111\114\110"then table.insert(sirens,{playing=false;horn=G})end end function siren()local H=seat.Values.siren.Value:find("\044")+0 local G=seat.Values.siren.Value:sub(1,H-1)local n=seat.Values.siren.Value:sub(H+0)for H,Q in pairs(sirens)do if Q.horn.Name~=G and Q.horn.Name~=n then Q.playing=false Q.horn:Stop()end if Q.horn.Name==G or Q.horn.Name==n then if not Q.playing then Q.playing=true Q.horn:Play()end end end end seat.Values.siren.Changed:connect(siren)
-- texan fixed for new ELS :)))
seat = script.Parent.Parent --the car's vehicle seat. Currently can be any part

sound = seat.Parent.Sound
sirens = {}
for i, v in pairs(sound:GetChildren()) do
	if v:IsA("Sound") and v.Name ~= "horn" then
		table.insert(sirens, { playing = false, horn = v })
	end
end

function siren()
	local distto = seat.Values.siren.Value:find(",") + 0
	local siren1 = seat.Values.siren.Value:sub(1, distto - 1)
	local siren2 = seat.Values.siren.Value:sub(distto + 0)
	for _, i in pairs(sirens) do
		if i.horn.Name ~= siren1 and i.horn.Name ~= siren2 then
			i.playing = false
			i.horn:Stop()
		end
		if i.horn.Name == siren1 or i.horn.Name == siren2 then
			if not i.playing then
				i.playing = true
				i.horn:Play()
			end
		end
	end
end
seat.Values.siren.Changed:connect(siren)
