-- switch gray to orange if all turnsignals are orange, manually add orange if all turn signals are gray

local orange=BrickColor.new("Bright orange")
local gray = BrickColor.new("Pearl")
script.Parent.MouseButton1Click:connect(function()
	if script.Parent.Text == "Lock" then
		wait()
		car.DriveSeat.Lock:play()
		wait(0.1)
		car.DriveSeat.Unlock:play()
			car.Body.Lights.Left.RLTS.Material=Enum.Material.Neon	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.Neon	
			car.Body.Lights.Left.LTS.Transparency=0	
			car.Body.Lights.Right.RTS.Transparency=0
			wait(0.2)
			car.Body.Lights.Left.RLTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Left.LTS.Transparency=1
			car.Body.Lights.Right.RTS.Transparency=1
			car.DriveSeat.Disabled=true
			script.Parent.Text = "Unlock"
	else
		wait(0.05)
		car.DriveSeat.Lock:play()
			car.Body.Lights.Left.RLTS.Material=Enum.Material.Neon	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.Neon	
			car.Body.Lights.Left.LTS.Transparency=0	
			car.Body.Lights.Right.RTS.Transparency=0
			wait(0.2)
			car.Body.Lights.Left.RLTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Left.LTS.Transparency=1
			car.Body.Lights.Right.RTS.Transparency=1
			wait(.2)
			car.Body.Lights.Left.RLTS.Material=Enum.Material.Neon	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.Neon
			car.Body.Lights.Left.LTS.Transparency=0	
			car.Body.Lights.Right.RTS.Transparency=0
			wait(0.2)
			car.Body.Lights.Left.RLTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Right.RRTS.Material=Enum.Material.SmoothPlastic	
			car.Body.Lights.Left.LTS.Transparency=1
			car.Body.Lights.Right.RTS.Transparency=1
			car.DriveSeat.Disabled=false
			script.Parent.Text = "Lock"
			wait(0.1)
			car.Body.Lights.Light.BrickColor=BrickColor.new("Institutional white")	
			car.Body.Lights.Light.Material=Enum.Material.Neon	
			wait(5)
			car.Body.Lights.Light.BrickColor=BrickColor.new("Medium stone grey")	
			car.Body.Lights.Light.Material=Enum.Material.SmoothPlastic
		end
	end)
