Hello, community. I just started with Godot today.
I'm trying to do as the scripting tutorial says and make it so that "HELLO!" appears when I click the "press me" button while running it, but I keep getting an error message.
The final script is supposed to be this:
get_node("Button").connect("pressed", self, "_on_Button_pressed")
get_node("Label").text = "HELLO!"
When trying to run it, this is the error message: Attempt to call function 'connect' in base 'null instance' on a null instance.
Stack frames: 0 - res://Sayhello.gd:4
Under the Errors (1) tab: 0:00:01:0761 - Node not found: Button
Stack Trace (if applicable): _ready in sayhello.gd:line 4
Thank you. I'm happy to be part of this community and to create with Godot :)