Add a button and a timer to your scene, connect the buttondown and buttonup signals of the button and the timeout signal of the timer, then use the following code:
var numb = 0.0
onready var timer = get_node("Timer")
func _on_Timer_timeout():
numb += 0.5
func _on_Button_button_down():
timer.start()
func _on_Button_button_up():
numb = 0.0
timer.stop()