Where do i place lua files, if they are either an addon, or just a single file?
Have a look here. At the bottom it shows where everything goes.
Edit: Check out the post below mine before visiting my link, iRzilla’s link is a nice intro into lua and mine will provide a more in depth list of the file locations.
Nice tutorial on how to make and save lua files. And even how to run them!