--WARNING!
--DO NOT MODIFY THE CODE BELOW! (Unless you want less than 4 motors. The lines you will need to delete are marked.)



local motor1 = script.Parent.Base1.HingeConstraint	--Don't delete this line
local display = script.Parent.Display.SurfaceGui.TextLabel

local current_mode = 0


function Mode_Up()
	if current_mode < max_mode then
		current_mode = current_mode + 1
		motor1.AngularVelocity = motor1.AngularVelocity + increment_speed	--Don't delete this line
		display.Text = current_mode
	end
end

function Mode_Down()
	if current_mode > min_mode then
		current_mode = current_mode - 1
		motor1.AngularVelocity = motor1.AngularVelocity - increment_speed	--Don't delete this line
		display.Text = current_mode
	end
end


script.Parent.Button_Up.ClickDetector.mouseClick:connect(Mode_Up)
script.Parent.Button_Down.ClickDetector.mouseClick:connect(Mode_Down)
