How to execute some command with multiples value?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RidaMatsu

First, sorry if my english bad, so in here I want to ask how to execute some command with multiples value? If you’re not understand, the example is like
" Timer is active every the score is +10 (10, 20, 30, etc ) " or " Every +10 second some command will run "
( I hope you understand what I said and sorry )

:bust_in_silhouette: Reply From: timothybrentwood
extends Node
var score = 0
func _ready():
    var t = Timer.new()
	t.wait_time = 10
	t.autostart = true
	self.add_child(t)
	t.connect("timeout", self, "update_score")

func update_score():
    score = score + 10
    print(score)

Every wait_time seconds, update_score() will execute.