if INVERTED==false then INVERTED=1 else INVERTED=-1 end Values.Gear.Changed:connect(function()local C=Values.Gear.Value local h="\068\111\119\110"if C>Val then h="\085\112"end Val=C script.Shift:Play()if FE then handler:FireServer("\083\104\105\102\116\101\114",h,MOT,ANGLE,INVERTED,SHIFT_TIME)else if h=="\085\112"then MOT.DesiredAngle=math.rad(ANGLE)*INVERTED wait(SHIFT_TIME)MOT.DesiredAngle=0 else MOT.DesiredAngle=-math.rad(ANGLE)*INVERTED wait(SHIFT_TIME)MOT.DesiredAngle=0 end end end)
-- Shifter
if INVERTED == false then
	INVERTED = 1
else
	INVERTED = -1
end
Values.Gear.Changed:connect(function()
	local Gear = Values.Gear.Value
	local Shift = "Down"
	if Gear > Val then
		Shift = "Up"
	end
	Val = Gear

	script.Shift:Play()
	if FE then
		handler:FireServer("Shifter", Shift, MOT, ANGLE, INVERTED, SHIFT_TIME)
	else
		if Shift == "Up" then
			MOT.DesiredAngle = math.rad(ANGLE) * INVERTED
			wait(SHIFT_TIME)
			MOT.DesiredAngle = 0
		else
			MOT.DesiredAngle = -math.rad(ANGLE) * INVERTED
			wait(SHIFT_TIME)
			MOT.DesiredAngle = 0
		end
	end
end)
