local h=script.Parent.Parent local L=script.Parent.Parent.Parent.Parent.Car.Value local x=game.Players.LocalPlayer:GetMouse()local T="\122"local m="\099"local B="\120"local P=false local D=false local M=false local X=L.Body.Lights.Left.TurnSignal.TSL local e=L.Body.Lights.Right.TurnSignal.TSL local C=L.Body.Lights.Left.TurnSignal2 local J=L.Body.Lights.Right.TurnSignal2 local f=.32 local Y=L.Body.Lights.Left.TurnSignal local a=L.Body.Lights.Right.TurnSignal local s=BrickColor.New("\078\101\111\110 \111\114\097\110\103\101")local z=BrickColor.New("\068\101\101\112 \111\114\097\110\103\101")x.KeyDown:connect(function(L)local x=string.lower(L)if x==T then if D==false then D=true repeat Y.BrickColor=z C.BrickColor=z X.Enabled=true Y.Material="\078\101\111\110"C.Material="\078\101\111\110"h.TurnSignal:play()wait(f)Y.BrickColor=s C.BrickColor=s h.TurnSignal:play()Y.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"C.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"X.Enabled=false wait(f)until D==false or M==true elseif D==true or M==true then D=false h.TurnSignal:stop()X.Enabled=false end elseif x==m then if M==false then M=true repeat a.BrickColor=z J.BrickColor=z e.Enabled=true a.Material="\078\101\111\110"J.Material="\078\101\111\110"h.TurnSignal:play()wait(f)a.BrickColor=s J.BrickColor=s h.TurnSignal:play()a.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"J.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"e.Enabled=false wait(f)until M==false or D==true elseif M==true or D==true then M=false h.TurnSignal:stop()e.Enabled=false end elseif x==B then if P==false then P=true repeat a.BrickColor=z J.BrickColor=z Y.BrickColor=z C.BrickColor=z a.Material="\078\101\111\110"J.Material="\078\101\111\110"Y.Material="\078\101\111\110"C.Material="\078\101\111\110"h.TurnSignal:play()e.Enabled=true X.Enabled=true wait(f)a.BrickColor=s J.BrickColor=s Y.BrickColor=s C.BrickColor=s h.TurnSignal:play()a.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"J.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"Y.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"C.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"e.Enabled=false X.Enabled=false wait(f)until P==false elseif P==true then P=false h.TurnSignal:stop()e.Enabled=false X.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("Neon orange")
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
				leftfront.BrickColor = on
				leftlight.Enabled = true
				neonleft.Material = "Neon"
				leftfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				neonleft.BrickColor = off
				leftfront.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
				rightfront.BrickColor = on
				rightlight.Enabled = true
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				neonright.BrickColor = off
				rightfront.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
				rightfront.BrickColor = on
				neonleft.BrickColor = on
				leftfront.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
				rightfront.BrickColor = off
				neonleft.BrickColor = off
				leftfront.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)
