function activedeactive(V,n)for V,v in pairs(V:GetChildren())do if v:IsA("\073\109\097\103\101\066\117\116\116\111\110")or v:IsA("\084\101\120\116\066\117\116\116\111\110")then if v.Name~="\104\101\097\100\101\114"then v.Active=n end end end end lights.header.MouseButton1Click:connect(function()if curtab~=3 then curtab=3 lights:TweenPosition(UDim2.new(0,-8,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,180,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,196,0,150),"\079\117\116","\081\117\097\100",.5,true)activedeactive(lights,true)activedeactive(siren,false)activedeactive(seats,false)else curtab=0 lights:TweenPosition(UDim2.new(0,164,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,180,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,196,0,150),"\079\117\116","\081\117\097\100",.5,true)end end)siren.header.MouseButton1Click:connect(function()if curtab~=2 then curtab=2 lights:TweenPosition(UDim2.new(0,-8,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,8,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,196,0,150),"\079\117\116","\081\117\097\100",.5,true)activedeactive(lights,false)activedeactive(siren,true)activedeactive(seats,false)else curtab=0 lights:TweenPosition(UDim2.new(0,164,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,180,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,196,0,150),"\079\117\116","\081\117\097\100",.5,true)end end)seats.header.MouseButton1Click:connect(function()if curtab~=1 then curtab=1 lights:TweenPosition(UDim2.new(0,-8,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,8,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,24,0,150),"\079\117\116","\081\117\097\100",.5,true)activedeactive(lights,false)activedeactive(siren,false)activedeactive(seats,true)else curtab=0 lights:TweenPosition(UDim2.new(0,164,0,150),"\079\117\116","\081\117\097\100",.5,true)siren:TweenPosition(UDim2.new(0,180,0,150),"\079\117\116","\081\117\097\100",.5,true)seats:TweenPosition(UDim2.new(0,196,0,150),"\079\117\116","\081\117\097\100",.5,true)end end)


function activedeactive(thing, val)
	for _,i in pairs (thing:GetChildren()) do
		if i:IsA("ImageButton") or i:IsA("TextButton") then
			if i.Name ~= "header" then
				i.Active = val
			end
		end
	end
end

lights.header.MouseButton1Click:connect(function()
	if curtab ~= 3 then
		curtab = 3
		lights:TweenPosition(UDim2.new(0, -8, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 180, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 196, 0, 150), "Out", "Quad", 0.5, true)
		activedeactive(lights,true)
		activedeactive(siren,false)
		activedeactive(seats,false)
	else
		curtab = 0
		lights:TweenPosition(UDim2.new(0, 164, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 180, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 196, 0, 150), "Out", "Quad", 0.5, true)
	end
end)
siren.header.MouseButton1Click:connect(function()
	if curtab ~= 2 then
		curtab = 2
		lights:TweenPosition(UDim2.new(0, -8, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 8, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 196, 0, 150), "Out", "Quad", 0.5, true)
		activedeactive(lights,false)
		activedeactive(siren,true)
		activedeactive(seats,false)
	else
		curtab = 0
		lights:TweenPosition(UDim2.new(0, 164, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 180, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 196, 0, 150), "Out", "Quad", 0.5, true)
	end
end)
seats.header.MouseButton1Click:connect(function()
	if curtab ~= 1 then
		curtab = 1
		lights:TweenPosition(UDim2.new(0, -8, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 8, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 24, 0, 150), "Out", "Quad", 0.5, true)
		activedeactive(lights,false)
		activedeactive(siren,false)
		activedeactive(seats,true)
	else
		curtab = 0
		lights:TweenPosition(UDim2.new(0, 164, 0, 150), "Out", "Quad", 0.5, true)
		siren:TweenPosition(UDim2.new(0, 180, 0, 150), "Out", "Quad", 0.5, true)
		seats:TweenPosition(UDim2.new(0, 196, 0, 150), "Out", "Quad", 0.5, true)
	end
end)