local T=script.Parent.Base1.HingeConstraint local x=script.Parent.Display.SurfaceGui.TextLabel local h=0 function Mode_Up()if h<max_mode then h=h+1 T.AngularVelocity=T.AngularVelocity+increment_speed x.Text=h end end function Mode_Down()if h>min_mode then h=h-1 T.AngularVelocity=T.AngularVelocity-increment_speed x.Text=h end end script.Parent.Button_Up.ClickDetector.mouseClick:connect(Mode_Up)script.Parent.Button_Down.ClickDetector.mouseClick:connect(Mode_Down)



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)
