can't add an editor script

C#
Unity has several reserved folder names, "Editor" is one of them
Remove the script from the "Editor" folder and you should be able
to attach it to a game object
Source

Also in C#: