Create Scripts from the Context Toolbar
You can create script from the context toolbar.
You can also use the Properties panel or the context menu to create scripts.
In this case, the script is created and automatically added to the selected actor. You can then edit your script in the Behavior Editor.