Currently on my player script there's this code that emits its current health when the game starts:
I've been trying to connect it to the top node on my tree so it can update the GUI by using this code (player node is currently on a group called 'Players'):
onready var in_game_HUD = $CanvasLayer/InGameHUD
onready var player = get_tree().get_nodes_in_group("Player")
While the "isconnected()" returns true, it doesn't seem to run the "updatehealth_UI" and I dont seem to understand why, since connecting this signal with Godot's GUI works, but sadly I cannot use this method for my project.