Here in this video it says the script needs to be added as a component.
As I never used Logic nodes myself I wonder if this always has to be done manually to use logic nodes?