Last night I wrote a piece of code that caused luau to hang on evaluation. Now I can’t open the place file because roblox will try to evaluate the code and hang on startup. I need to fix this in an external editor, but I don’t know where script drafts are stored.
You could try reverting the place to a previous version. I’m not sure where the actual script data is kept on the hard drive and don’t know if you can edit it with an external program.
I don’t know how you’d be able to get that data realistically. If the place file is in the binary format, it will be difficult to get the data out.
If you haven’t already, try reinstalling studio and clearing out any loose roblox related caches. Hopefully that will prevent the scripts from opening on startup, and then you might be able to pull out the code using .Source or saving as a .rbxlx file (which is basically readable xml).
If none of the above works, you might be able to write a plugin which reads all scripts and saves their sources on load, so that you can export the code out.
I really wish roblox had native support for using the file system so issues like this weren’t as big of an issue. If all else fails, try contacting the engineers, as if you’ve found a way to get the script editor to hang, it is most definitely a bug.