local H=script.Parent.Parent local o=script.Parent.Parent.Parent.Parent.Car.Value local f=game.Players.LocalPlayer:GetMouse()local Z="\122"local m="\099"local L="\120"local V=false local j=false local r=false local i=o.Body.Lights.Left.RLTS.TSL local M=o.Body.Lights.Right.RRTS.TSL local h=o.Body.Lights.Left.RLTS local Y=o.Body.Lights.Right.RRTS local S=.32 local s=o.Body.Lights.Left.LTS local G=o.Body.Lights.Right.RTS local T=(script.Parent.Parent.Parent.Parent:WaitForChild("\065\067\054\095\083\116\111\099\107\095\071\097\117\103\101\115")).Left local Q=(script.Parent.Parent.Parent.Parent:WaitForChild("\065\067\054\095\083\116\111\099\107\095\071\097\117\103\101\115")).Right local x=BrickColor.New("\077\105\100 \103\114\097\121")local K=BrickColor.New("\066\114\105\103\104\116 \111\114\097\110\103\101")f.KeyDown:connect(function(o)local f=string.lower(o)if f==Z then if j==false then j=true script.Parent.Parent.StartSignal:play()repeat s.BrickColor=K i.Enabled=true s.Material="\078\101\111\110"s.Transparency=0 T.ImageTransparency=0 h.Material="\078\101\111\110"H.TurnSignal:play()wait(S)s.Transparency=1 s.BrickColor=x T.ImageTransparency=1 H.TurnSignal:play()s.Material="\083\097\110\100"h.Material="\083\097\110\100"i.Enabled=false wait(S)until j==false or r==true elseif j==true or r==true then j=false H.TurnSignal:stop()i.Enabled=false wait(.05)script.Parent.Parent.StopSignal:play()end elseif f==m then if r==false then r=true script.Parent.Parent.StartSignal:play()repeat M.Enabled=true G.Material="\078\101\111\110"Y.Material="\078\101\111\110"H.TurnSignal:play()G.BrickColor=K G.Transparency=0 Q.ImageTransparency=0 wait(S)G.Transparency=1 G.BrickColor=x Q.ImageTransparency=1 H.TurnSignal:play()G.Material="\083\097\110\100"Y.Material="\083\097\110\100"M.Enabled=false wait(S)until r==false or j==true elseif r==true or j==true then r=false H.TurnSignal:stop()wait(.05)script.Parent.Parent.StopSignal:play()M.Enabled=false end elseif f==L then if V==false then script.Parent.Parent.StartSignal:play()V=true repeat G.BrickColor=K s.BrickColor=K G.Material="\078\101\111\110"Y.Material="\078\101\111\110"s.Material="\078\101\111\110"s.Transparency=0 G.Transparency=0 h.Material="\078\101\111\110"H.TurnSignal:play()M.Enabled=true i.Enabled=true T.ImageTransparency=0 Q.ImageTransparency=0 wait(S)s.Transparency=1 G.Transparency=1 G.BrickColor=x s.BrickColor=x T.ImageTransparency=1 Q.ImageTransparency=1 H.TurnSignal:play()G.Material="\083\097\110\100"Y.Material="\083\097\110\100"s.Material="\083\097\110\100"h.Material="\083\097\110\100"M.Enabled=false i.Enabled=false wait(S)until V==false elseif V==true then V=false H.TurnSignal:stop()M.Enabled=false i.Enabled=false wait(.05)script.Parent.Parent.StopSignal:play()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.RLTS.TSL
local rightlight = car.Body.Lights.Right.RRTS.TSL
local leftfront = car.Body.Lights.Left.RLTS
local rightfront = car.Body.Lights.Right.RRTS
local signalblinktime = 0.32
local neonleft = car.Body.Lights.Left.LTS
local neonright = car.Body.Lights.Right.RTS
local leftgui = script.Parent.Parent.Parent.Parent:WaitForChild("AC6_Stock_Gauges").Left
local rightgui = script.Parent.Parent.Parent.Parent:WaitForChild("AC6_Stock_Gauges").Right
local off = BrickColor.New("Mid gray")
local on = BrickColor.New("Bright orange")
mouse.KeyDown:connect(function(lkey)
	local key = string.lower(lkey)
	if key == leftsignal then
		if lefton == false then
			lefton = true
			script.Parent.Parent.StartSignal:play()
			repeat
				neonleft.BrickColor = on
				leftlight.Enabled = true
				neonleft.Material = "Neon"
				neonleft.Transparency = 0
				leftgui.ImageTransparency = 0
				leftfront.Material = "Neon"
				component.TurnSignal:play()
				wait(signalblinktime)
				neonleft.Transparency = 1
				neonleft.BrickColor = off
				leftgui.ImageTransparency = 1
				component.TurnSignal:play()
				neonleft.Material = "Sand"
				leftfront.Material = "Sand"
				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
			wait(0.05)
			script.Parent.Parent.StopSignal:play()
		end
	elseif key == rightsignal then
		if righton == false then
			righton = true
			script.Parent.Parent.StartSignal:play()
			repeat
				rightlight.Enabled = true
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				component.TurnSignal:play()
				neonright.BrickColor = on
				neonright.Transparency = 0
				rightgui.ImageTransparency = 0
				wait(signalblinktime)
				neonright.Transparency = 1
				neonright.BrickColor = off
				rightgui.ImageTransparency = 1
				component.TurnSignal:play()
				neonright.Material = "Sand"
				rightfront.Material = "Sand"
				rightlight.Enabled = false
				wait(signalblinktime)
			until righton == false or lefton == true
		elseif righton == true or lefton == true then
			righton = false
			component.TurnSignal:stop()
			wait(0.05)
			script.Parent.Parent.StopSignal:play()
			rightlight.Enabled = false
		end
	elseif key == hazards then
		if hazardson == false then
			script.Parent.Parent.StartSignal:play()
			hazardson = true
			repeat
				neonright.BrickColor = on
				neonleft.BrickColor = on
				neonright.Material = "Neon"
				rightfront.Material = "Neon"
				neonleft.Material = "Neon"
				neonleft.Transparency = 0
				neonright.Transparency = 0
				leftfront.Material = "Neon"
				component.TurnSignal:play()
				rightlight.Enabled = true
				leftlight.Enabled = true
				leftgui.ImageTransparency = 0
				rightgui.ImageTransparency = 0
				wait(signalblinktime)
				neonleft.Transparency = 1
				neonright.Transparency = 1
				neonright.BrickColor = off
				neonleft.BrickColor = off
				leftgui.ImageTransparency = 1
				rightgui.ImageTransparency = 1
				component.TurnSignal:play()
				neonright.Material = "Sand"
				rightfront.Material = "Sand"
				neonleft.Material = "Sand"
				leftfront.Material = "Sand"
				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
			wait(0.05)
			script.Parent.Parent.StopSignal:play()
		end
	end
end)
