extends Spatial export var scroll_speed = 30 export var limit_z = 40 export var add_z = -40 func _ready(): pass # Replace with function body. func _process(delta): $BgModel.translation.z += scroll_speed * delta if $BgModel.translation.z >= limit_z: $BgModel.translation.z += add_z