local r=script.Parent.Parent local B=script.Parent.Parent.Parent.Parent.Car.Value local p=game.Players.LocalPlayer:GetMouse()local y="\122"local h="\099"local K="\120"local k=false local I=false local j=false local s=B.Body.Lights.Left.TurnSignal.TSL local P=B.Body.Lights.Right.TurnSignal.TSL local Q=B.Body.Lights.Left.TurnSignal local A=B.Body.Lights.Right.TurnSignal local z=.32 local G=B.Body.Lights.Left.TurnSignal2 local D=B.Body.Lights.Right.TurnSignal2 local m=BrickColor.New("\077\105\100 \114\097\121")local M=BrickColor.New("\078\101\119 \089\101\108\108\101\114")p.KeyDown:connect(function(B)local p=string.lower(B)if p==y then if I==false then I=true repeat G.BrickColor=M Q.BrickColor=M s.Enabled=true G.Material="\078\101\111\110"Q.Material="\078\101\111\110"r.TurnSignal:play()wait(z)Q.BrickColor=m G.BrickColor=m r.TurnSignal:play()G.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"s.Enabled=false wait(z)until I==false or j==true elseif I==true or j==true then I=false r.TurnSignal:stop()s.Enabled=false end elseif p==h then if j==false then j=true repeat D.BrickColor=M A.BrickColor=M P.Enabled=true D.Material="\078\101\111\110"A.Material="\078\101\111\110"r.TurnSignal:play()wait(z)A.BrickColor=m D.BrickColor=m r.TurnSignal:play()D.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"P.Enabled=false wait(z)until j==false or I==true elseif j==true or I==true then j=false r.TurnSignal:stop()P.Enabled=false end elseif p==K then if k==false then k=true repeat D.BrickColor=M G.BrickColor=M Q.BrickColor=M A.BrickColor=M D.Material="\078\101\111\110"A.Material="\078\101\111\110"G.Material="\078\101\111\110"Q.Material="\078\101\111\110"r.TurnSignal:play()P.Enabled=true s.Enabled=true wait(z)Q.BrickColor=m A.BrickColor=m D.BrickColor=m G.BrickColor=m r.TurnSignal:play()D.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"G.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"P.Enabled=false s.Enabled=false wait(z)until k==false elseif k==true then k=false r.TurnSignal:stop()P.Enabled=false s.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.TurnSignal
local rightfront = car.Body.Lights.Right.TurnSignal
local signalblinktime = 0.32
local neonleft = car.Body.Lights.Left.TurnSignal2
local neonright = car.Body.Lights.Right.TurnSignal2
local off = BrickColor.New("Mid ray")
local on = BrickColor.New("New Yeller")
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)
				leftfront.BrickColor = off
				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
				rightfront.BrickColor = on
				rightlight.Enabled = true
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				rightfront.BrickColor = off
				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
				leftfront.BrickColor = on
				rightfront.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)
				leftfront.BrickColor = off
				rightfront.BrickColor = off
				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)
