please help to fix "The function 'change_scene()' returns a value, but this value is never used". in Godot 3.2.2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By danteholic

export(String, FILE, “*.tscn”) var target_stage

func _on_Area2D_body_entered(body):
if “player” in body.name:
get_tree().change_scene(target_stage)

:bust_in_silhouette: Reply From: kidscancode

There is nothing to fix here, because that is not an error message. It is a warning, meaning it’s just letting you know that change_scene() returns a value. Specifically, it returns an error code that indicates the success or failure of loading the new scene. If you don’t care about that, you can ignore it.