How to run or reload scripts in the editor and why I get errors. Question about "tool". control+shift+x

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

“Script failed reloading, check console for errors.” I get when I run scripts in the editor and I get this message in the console. “modules/gdscript/gdscript.cpp:576 - Condition “!p_keep_state && has_instances” is true. Returned: ERR_ALREADY_IN_USE”
Here is some sample code I want to run and test.

tool
extends Button

func _ready():
print(“Hello”)

Why does not launch when pressing a keyboard shortcut “control+shif+x” and gives errors?

What to talk about in the message from the console?