local y=script.Parent.Parent local u=script.Parent.Parent.Parent.Parent.Car.Value local l=game.Players.LocalPlayer:GetMouse()local D="\122"local M="\099"local t="\120"local o=false local K=false local V=false local U=u.Body.Lights.Left.TurnSignal.TSL local J=u.Body.Lights.Right.TurnSignal.TSL local k=u.Body.Lights.Left.TurnSignal local s=u.Body.Lights.Right.TurnSignal local e=.32 local E=u.Body.Lights.Left.TurnSignal local m=u.Body.Lights.Right.TurnSignal local r=BrickColor.New("\066\117\114\108\097\112")local f=BrickColor.New("\068\101\101\112 \111\114\097\110\103\101")l.KeyDown:connect(function(u)local l=string.lower(u)if l==D then if K==false then K=true repeat E.BrickColor=f k.BrickColor=f U.Enabled=true E.Material="\078\101\111\110"k.Material="\078\101\111\110"y.TurnSignal:play()wait(e)E.BrickColor=r k.BrickColor=r y.TurnSignal:play()E.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"k.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"U.Enabled=false wait(e)until K==false or V==true elseif K==true or V==true then K=false y.TurnSignal:stop()U.Enabled=false end elseif l==M then if V==false then V=true repeat m.BrickColor=f s.BrickColor=f J.Enabled=true m.Material="\078\101\111\110"s.Material="\078\101\111\110"y.TurnSignal:play()wait(e)m.BrickColor=r s.BrickColor=r y.TurnSignal:play()m.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"s.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"J.Enabled=false wait(e)until V==false or K==true elseif V==true or K==true then V=false y.TurnSignal:stop()J.Enabled=false end elseif l==t then if o==false then o=true repeat m.BrickColor=f s.BrickColor=f E.BrickColor=f k.BrickColor=f m.Material="\078\101\111\110"s.Material="\078\101\111\110"E.Material="\078\101\111\110"k.Material="\078\101\111\110"y.TurnSignal:play()J.Enabled=true U.Enabled=true wait(e)m.BrickColor=r s.BrickColor=r E.BrickColor=r k.BrickColor=r y.TurnSignal:play()m.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"s.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"E.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"k.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"J.Enabled=false U.Enabled=false wait(e)until o==false elseif o==true then o=false y.TurnSignal:stop()J.Enabled=false U.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.TurnSignal
local neonright = car.Body.Lights.Right.TurnSignal
local off = BrickColor.New("Burlap")
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)
