local U=script.Parent.Parent local J=script.Parent.Parent.Parent.Parent.Car.Value local t=game.Players.LocalPlayer:GetMouse()local h="\122"local q="\099"local X="\120"local d=false local w=false local S=false local v=J.Body.Lights.Left.TurnSignal.TSL local u=J.Body.Lights.Right.TurnSignal.TSL local Q=J.Body.Lights.Left.TurnSignal2 local A=J.Body.Lights.Right.TurnSignal2 local i=.32 local R=J.Body.Lights.Left.TurnSignal local e=J.Body.Lights.Right.TurnSignal local n=BrickColor.New("\077\105\100 \103\114\097\121")local T=BrickColor.New("\068\101\101\112 \111\114\097\110\103\101")t.KeyDown:connect(function(J)local t=string.lower(J)if t==h then if w==false then w=true repeat R.BrickColor=T v.Enabled=true R.Material="\078\101\111\110"Q.Material="\078\101\111\110"U.TurnSignal:play()U.TurnSignal.Pitch=1.8 wait(i)R.BrickColor=n U.TurnSignal:play()U.TurnSignal.Pitch=1.6 R.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"Q.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"v.Enabled=false wait(i)until w==false or S==true elseif w==true or S==true then w=false U.TurnSignal:stop()v.Enabled=false end elseif t==q then if S==false then S=true repeat e.BrickColor=T u.Enabled=true e.Material="\078\101\111\110"A.Material="\078\101\111\110"U.TurnSignal:play()U.TurnSignal.Pitch=1.8 wait(i)e.BrickColor=n U.TurnSignal:play()U.TurnSignal.Pitch=1.6 e.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"A.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"u.Enabled=false wait(i)until S==false or w==true elseif S==true or w==true then S=false U.TurnSignal:stop()u.Enabled=false end elseif t==X then if d==false then d=true repeat e.BrickColor=T R.BrickColor=T e.Material="\078\101\111\110"A.Material="\078\101\111\110"R.Material="\078\101\111\110"Q.Material="\078\101\111\110"U.TurnSignal:play()U.TurnSignal.Pitch=1.8 u.Enabled=true v.Enabled=true wait(i)e.BrickColor=n R.BrickColor=n U.TurnSignal:play()U.TurnSignal.Pitch=1.6 e.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"A.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"R.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"Q.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"u.Enabled=false v.Enabled=false wait(i)until d==false elseif d==true then d=false U.TurnSignal:stop()u.Enabled=false v.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 off = BrickColor.New("Mid gray")
local on = BrickColor.New("Deep orange")
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()
				component.TurnSignal.Pitch = 1.8
				wait(signalblinktime)
				neonleft.BrickColor = off
				component.TurnSignal:play()
				component.TurnSignal.Pitch = 1.6
				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()
				component.TurnSignal.Pitch = 1.8
				wait(signalblinktime)
				neonright.BrickColor = off
				component.TurnSignal:play()
				component.TurnSignal.Pitch = 1.6
				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()
				component.TurnSignal.Pitch = 1.8
				rightlight.Enabled = true
				leftlight.Enabled = true
				wait(signalblinktime)
				neonright.BrickColor = off
				neonleft.BrickColor = off
				component.TurnSignal:play()
				component.TurnSignal.Pitch = 1.6

				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)
