extends Node2D var texter = preload("res://newstext.tscn") # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func scroll(): while get_parent().get_parent().visible: var cloner = texter.instantiate() cloner.global_position = get_parent().get_node("RichTextLabel").global_position add_child(cloner) var tweener = get_tree().create_tween() tweener.tween_property(cloner,"global_position",Vector2(500,28),10) await get_tree().create_timer(4).timeout