I mean create a script in the script section of the editor. add the script. leave it as the default script type, which just so happens to be "definition".
There are 3 script types in VS.
Definition: script will be executed on game launch - mostly used for registering functions, variables, & event handlers/listeners.
Execution: has to be manually called - mostly used for small scripts that don't require functions or input arguments.
Execute a script: inline code that can be used the same as "execution" type script - mostly for small scripts or for accessing/updating functions/variables that you have created inside of "definition" type scripts.