local k=script.Parent.Parent local w=script.Parent.Parent.Parent.Parent.Car.Value local u=game.Players.LocalPlayer:GetMouse()local R="\122"local y="\099"local r="\120"local l=false local D=false local P=false local H=w.Body.Lights.Left.TurnSignal.TSL local I=w.Body.Lights.Right.TurnSignal.TSL local G=w.Body.Lights.Left.TurnSignal2 local T=w.Body.Lights.Right.TurnSignal2 local g=.32 local t=w.Body.Lights.Left.TurnSignal local i=w.Body.Lights.Right.TurnSignal local N=BrickColor.New("\078\101\119 \089\101\108\108\101\114")local J=BrickColor.New("\077\101\100\105\117\109 \115\116\111\110\101 \103\114\101\121")u.KeyDown:connect(function(w)local u=string.lower(w)if u==R then if D==false then D=true repeat t.BrickColor=N H.Enabled=true t.Material="\078\101\111\110"G.Material="\078\101\111\110"k.TurnSignal:play()wait(g)t.BrickColor=J k.TurnSignal:play()t.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"G.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"H.Enabled=false wait(g)until D==false or P==true elseif D==true or P==true then D=false k.TurnSignal:stop()H.Enabled=false end elseif u==y then if P==false then P=true repeat i.BrickColor=N I.Enabled=true i.Material="\078\101\111\110"T.Material="\078\101\111\110"k.TurnSignal:play()wait(g)i.BrickColor=J k.TurnSignal:play()i.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"T.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"I.Enabled=false wait(g)until P==false or D==true elseif P==true or D==true then P=false k.TurnSignal:stop()I.Enabled=false end elseif u==r then if l==false then l=true repeat i.BrickColor=N t.BrickColor=N i.Material="\078\101\111\110"T.Material="\078\101\111\110"t.Material="\078\101\111\110"G.Material="\078\101\111\110"k.TurnSignal:play()I.Enabled=true H.Enabled=true wait(g)i.BrickColor=J t.BrickColor=J k.TurnSignal:play()i.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"T.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"t.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"G.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"I.Enabled=false H.Enabled=false wait(g)until l==false elseif l==true then l=false k.TurnSignal:stop()I.Enabled=false H.Enabled=false end end end)
--Made by Repressed_Memories
-- Edited by Truenus
local component = script.Parent.Parent
local car = script.Parent.Parent.Parent.Parent.Car.Value
local mouse = game.Players.LocalPlayer:GetMouse()
local leftsignal = "z"
local rightsignal = "c"
local hazards = "x"
local hazardson = false
local lefton = false
local righton = false
local leftlight = car.Body.Lights.Left.TurnSignal.TSL
local rightlight = car.Body.Lights.Right.TurnSignal.TSL
local leftfront = car.Body.Lights.Left.TurnSignal2
local rightfront = car.Body.Lights.Right.TurnSignal2
local signalblinktime = 0.32
local neonleft = car.Body.Lights.Left.TurnSignal
local neonright = car.Body.Lights.Right.TurnSignal
local on = BrickColor.New("New Yeller")
local off = BrickColor.New("Medium stone grey")
mouse.KeyDown:connect(function(lkey)
	local key = string.lower(lkey)
	if key == leftsignal then
		if lefton == false then
			lefton = true
			repeat
				neonleft.BrickColor = on
				leftlight.Enabled = true
				neonleft.Material = "Neon"
				leftfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				neonleft.BrickColor = off
				component.TurnSignal:play()
				neonleft.Material = "SmoothPlastic"
				leftfront.Material = "SmoothPlastic"
				leftlight.Enabled = false
				wait(signalblinktime)
			until lefton == false or righton == true
		elseif lefton == true or righton == true then
			lefton = false
			component.TurnSignal:stop()
			leftlight.Enabled = false
		end
	elseif key == rightsignal then
		if righton == false then
			righton = true
			repeat
				neonright.BrickColor = on
				rightlight.Enabled = true
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				neonright.BrickColor = off
				component.TurnSignal:play()
				neonright.Material = "SmoothPlastic"
				rightfront.Material = "SmoothPlastic"
				rightlight.Enabled = false
				wait(signalblinktime)
			until righton == false or lefton == true
		elseif righton == true or lefton == true then
			righton = false
			component.TurnSignal:stop()
			rightlight.Enabled = false
		end
	elseif key == hazards then
		if hazardson == false then
			hazardson = true
			repeat
				neonright.BrickColor = on
				neonleft.BrickColor = on
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				neonleft.Material = "Neon"
				leftfront.Material = "Neon"
				component.TurnSignal:play()
				rightlight.Enabled = true
				leftlight.Enabled = true
				wait(signalblinktime)
				neonright.BrickColor = off
				neonleft.BrickColor = off
				component.TurnSignal:play()
				neonright.Material = "SmoothPlastic"
				rightfront.Material = "SmoothPlastic"
				neonleft.Material = "SmoothPlastic"
				leftfront.Material = "SmoothPlastic"
				rightlight.Enabled = false
				leftlight.Enabled = false
				wait(signalblinktime)
			until hazardson == false
		elseif hazardson == true then
			hazardson = false
			component.TurnSignal:stop()
			rightlight.Enabled = false
			leftlight.Enabled = false
		end
	end
end)
