Help me with connect function

Hi guys, need help.
I want to connect the button signal from one scene to the script of another scene and so that I don’t make this error:
Invalid argument for “connect()” function: argument 2 should be “Callable” but is “res://scenes/SceneHandler.gd”
I’m a newbie and I don’t really understand what’s wrong.
please tell me how to solve this.

If you work with Godot 4, the syntax has slightly changed. Use this:

get_node("MainMenu/M/VB/NewGame").pressed.connect(ololo)

1 Like

thanks, I copied the code from the old video)