onready var control = preload("res://SaveLoad/Control.gd")
In the above line Control is loaded as a resource or packedScene and what you need is an instance that has been added to the sceneTree
So in line 47 of your player script
control.connect("Health_Changed", self , "function")
You will get that error
You have several options
- Use the nodepath of the Save/Load menu
- Make the connection from the Save/Load menu instead using the player's nodepath
Option 1
onready var control = get_tree().current_scene.get_node("SaveLodeMenu")
Option 2
func _ready():
get_tree().paused = true
set_current_selection(current_selection)
check_state(save_path1, Text1Grup1)
check_state(save_path2, Text1Grup2)
check_state(save_path3, Text1Grup3)
connect("Health_Changed", $PlayerNode , "function")