Thank you for your response! Unfortunatly, I dont really get what you mean.
I tried modifiying the function like this:
func move_body_part():
Globals.tween.kill()
Globals.tween.tween_property(self,"position",Vector2.RIGHT * 16, 0.5)
and adding a autoloaded script like this:
#Globals
@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?