local S=script.Parent.Parent local z=script.Parent.Parent.Parent.Parent.Car.Value local m=game.Players.LocalPlayer:GetMouse()local r="\122"local Y="\099"local O="\120"local G=false local I=false local R=false local B=z.Body.Lights.Left.TurnSignal.TSL local k=z.Body.Lights.Right.TurnSignal.TSL local v=z.Body.Lights.Left.TurnSignal2 local V=z.Body.Lights.Right.TurnSignal2 local a=.32 local x=z.Body.Lights.Left.TurnSignal local H=z.Body.Lights.Right.TurnSignal local d=BrickColor.New("\077\105\100 \103\114\097\121")local y=BrickColor.New("\068\101\101\112 \111\114\097\110\103\101")m.KeyDown:connect(function(z)local m=string.lower(z)if m==r then if I==false then I=true repeat x.BrickColor=y B.Enabled=true x.Material="\078\101\111\110"v.Material="\078\101\111\110"S.TurnSignal:play()wait(a)x.BrickColor=d S.TurnSignal:play()x.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"B.Enabled=false wait(a)until I==false or R==true elseif I==true or R==true then I=false S.TurnSignal:stop()B.Enabled=false end elseif m==Y then if R==false then R=true repeat H.BrickColor=y k.Enabled=true H.Material="\078\101\111\110"V.Material="\078\101\111\110"S.TurnSignal:play()wait(a)H.BrickColor=d S.TurnSignal:play()H.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"k.Enabled=false wait(a)until R==false or I==true elseif R==true or I==true then R=false S.TurnSignal:stop()k.Enabled=false end elseif m==O then if G==false then G=true repeat H.BrickColor=y x.BrickColor=y H.Material="\078\101\111\110"V.Material="\078\101\111\110"x.Material="\078\101\111\110"v.Material="\078\101\111\110"S.TurnSignal:play()k.Enabled=true B.Enabled=true wait(a)H.BrickColor=d x.BrickColor=d S.TurnSignal:play()H.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"x.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"k.Enabled=false B.Enabled=false wait(a)until G==false elseif G==true then G=false S.TurnSignal:stop()k.Enabled=false B.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()
				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)
