Help a dumb fella please Popupmenu dilema I been at this for a month now with no success

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

edit: Hi all I created a github with the barebones of what Im trying to do, I know people hates to download zips so I did a github in case anyone is worried, this is a fresh 3.1 project, with a bare scene, a player and a popupmenu, I have actually tried creating the same popupmenu inside and under the importet(instanced scene) with the exact same result, I even tried signales as a person suggested on reddit link(Reddit - Dive into anything) and this is my project here: GitHub - Clooloo/Godot-Popupmenu-Example: An example of a pop up menu on Godot that do not requires a signal on the project you are able to launch the player 2 times, after the second time it counts to 5 secs and then tries to open the popup, but there is where it freezes and nothing happens :frowning: my original post is below.

Hi all, is there a possible way to have a popupmenu popup, when a player dies? so basically no button involve, simply when player dies a popup is trigger? I have tried something but I always get these 2 error:

error1 error1 hosted at ImgBB — ImgBB

error 2 error2 hosted at ImgBB — ImgBB

also this is my player code:

player code playercode hosted at ImgBB — ImgBB

and my 2 scenes:

Level 1 scenes scenesandinstances hosted at ImgBB — ImgBB

player scene playerscene hosted at ImgBB — ImgBB

Any assistance would be greatly appreciated as I ben strugguling for over 3 weeks now and Im about to cry and give up lol

:bust_in_silhouette: Reply From: flurick

Ah yes, the old $ path is relative to where what node it is attached to so
either back out of the player scene with …/…/ (… for the parent node and two slashes since the script is not directly on the player node). So

get_node("../../popup/losepopup").popup()

or using the absolute path

$"/root/MainScene/popup/losepopup".popup()

would work.