How do I fix this issue with reload_current_scene()?

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

In my project I want to reload the scene when my player dies, but using reload_current_scene gives me this error:
E 0:00:11.895 reload_current_scene: Condition “!current_scene” is true. Returned: ERR_UNCONFIGURED
<C++ Source> scene/main/scene_tree.cpp:1319 @ reload_current_scene()
Player.gd:48 @ hurt()
Bullet.gd:19 @ _on_body_entered()
I’m not entirely sure what this means and it’s had me stumped for a day now.

:bust_in_silhouette: Reply From: Inces

You didn’t configure current scene. At some point, best at ready() function of your manager node, You have to get scene tree and change its current_scene to a scene You want to be reloaded later

like get_tree().current_scene = ( reference to Your chosen scene here )