To create your script you need to create a file with the extension ".lua" in the folder "%programdata%/Sasavn/LUA"(to open this directory, use the keyboard shortcut win + r)
Text Editor
To create better scripts, you need a better editor, right? So here are the main ones