local Y=script.Parent.Parent local i=script.Parent.Parent.Parent.Parent.Car.Value local U=game.Players.LocalPlayer:GetMouse()local D="\122"local I="\099"local k="\120"local q=false local d=false local b=false local f=i.Body.Lights.Left.TurnSignal.TSL local t=i.Body.Lights.Right.TurnSignal.TSL local W=i.Body.Lights.Left.TurnSignal2 local V=i.Body.Lights.Right.TurnSignal2 local T=.32 local M=i.Body.Lights.Left.TurnSignal local P=i.Body.Lights.Right.TurnSignal local G=BrickColor.New("\066\108\097\099\107")local A=BrickColor.New("\068\101\101\112 \111\114\097\110\103\101")local R=BrickColor.New("\066\114\105\103\104\116 \121\101\108\108\111\119")U.KeyDown:connect(function(i)local U=string.lower(i)if U==D then if d==false then d=true repeat M.BrickColor=A W.BrickColor=A f.Enabled=true M.Material="\078\101\111\110"W.Material="\078\101\111\110"Y.TurnSignal:play()wait(T)M.BrickColor=G W.BrickColor=R Y.TurnSignal:play()M.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"W.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"f.Enabled=false wait(T)until d==false or b==true elseif d==true or b==true then d=false Y.TurnSignal:stop()f.Enabled=false end elseif U==I then if b==false then b=true repeat P.BrickColor=A V.BrickColor=A t.Enabled=true P.Material="\078\101\111\110"V.Material="\078\101\111\110"Y.TurnSignal:play()wait(T)P.BrickColor=G V.BrickColor=R Y.TurnSignal:play()P.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"V.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"t.Enabled=false wait(T)until b==false or d==true elseif b==true or d==true then b=false Y.TurnSignal:stop()t.Enabled=false end elseif U==k then if q==false then q=true repeat P.BrickColor=A V.BrickColor=A M.BrickColor=A W.BrickColor=A P.Material="\078\101\111\110"V.Material="\078\101\111\110"M.Material="\078\101\111\110"W.Material="\078\101\111\110"Y.TurnSignal:play()t.Enabled=true f.Enabled=true wait(T)P.BrickColor=G V.BrickColor=R M.BrickColor=G W.BrickColor=R Y.TurnSignal:play()P.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"V.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"M.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"W.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"t.Enabled=false f.Enabled=false wait(T)until q==false elseif q==true then q=false Y.TurnSignal:stop()t.Enabled=false f.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("Black")
local on = BrickColor.New("Deep orange")
local off2 = BrickColor.New("Bright yellow")
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 = off2
				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 = off2
				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 = off2
				neonleft.BrickColor = off
				leftfront.BrickColor = off2
				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)
