gdfunc framefreeze(time_scale, duration) -> void: Engine.time_scale = time_scale yield(get_tree().create_timer(duration * time_scale), "timeout") Engine.time_scale = 1.0