-------------------------

 
mouse.KeyDown:connect(function (key)
    key = string.lower(key)
			if key == "q" then
	if script.Parent.Gear.Value < 0 then
		script.Parent.Gear.Value = -1
	else
		script.Parent.CC.Value = false
		script.Parent.Gear.Value = script.Parent.Gear.Value -1
		carSeat.Shift:Play()
	end
end
        if key == "e" then
	if script.Parent.Gear.Value > 0 then
		script.Parent.Gear.Value = 1
	else
		script.Parent.Gear.Value = script.Parent.Gear.Value +1
		carSeat.Shift:Play()
	end
end

if key == "l" and light == false then
	light = true
	carSeat.Parent.LeftHL.SpotLight.Enabled = true
	carSeat.Parent.RightHL.SpotLight.Enabled = true
	carSeat.Parent.BrL.SpotLight.Enabled = true
	carSeat.Parent.Router.Material = "Neon"
	carSeat.Parent.Louter.Material = "Neon"
elseif key == "l" and light == true then
	light = false
	carSeat.Parent.LeftHL.SpotLight.Enabled = false
	carSeat.Parent.RightHL.SpotLight.Enabled = false
	carSeat.Parent.BrL.SpotLight.Enabled = false
	carSeat.Parent.Router.Material = "SmoothPlastic"
	carSeat.Parent.Louter.Material = "SmoothPlastic"
end

if carSeat.Velocity.Magnitude > 35 and key == "c" and cc.Value == false and script.Parent.Gear.Value == 1 then
	cc.Value = true
	rr.MaxSpeed = carSeat.Velocity.Magnitude
	rl.MaxSpeed = carSeat.Velocity.Magnitude
	fr.MaxSpeed = carSeat.Velocity.Magnitude
	fl.MaxSpeed = carSeat.Velocity.Magnitude
	rr.Throttle = 1
	rl.Throttle = 1
	fl.Throttle = 1
	fr.Throttle = 1
	rr.Torque = script.Parent.RTQ.Value
	rl.Torque = script.Parent.RTQ.Value
	fl.Torque = script.Parent.FTQ.Value
	fr.Torque = script.Parent.FTQ.Value
elseif key == "c" and cc.Value == true then
	cc.Value = false
	rr.Throttle = 0
	rl.Throttle = 0
	fl.Throttle = 0
	fr.Throttle = 0
	end
        if key == "a" then
            	a = true