Actually, you can tween variables. I just did it.
First, declare your variable at the top of the script (so it is global for that file):
var m = 0
Create a Tween node as a child of that object (in the editor) and save a reference to it at the top.
onready var tween = get_node("Tween")
Then where you want to start the transition, do this.
tween.interpolate_property(self, "m", 0, 100, 5, Tween.TRANS_CUBIC, Tween.EASE_IN_OUT)
tween.start()
This will tween the variable m starting from 0 to 100 over 5 seconds.
You can add a print in process so you can see it is working.
print("m = ", m)
Hope that helps.