Thank you for your response! Unfortunatly, I dont really get what you mean.
I tried modifiying the function like this:
Globals.tween.tween_property(self,"position",Vector2.RIGHT * 16, 0.5)
and adding a autoloaded script like this:
@onready var tween :Tween = get_tree().create_tween()
but now it doesnt moves to the right at all and instead, I am getting this error whenever I try to call the function:
ontimer_timeout: Tween invalid. Either finished or created outside scene tree.
Did I understand your answer wrong?