This is the weirdest thing that's ever happened in Studio for me. Essentially I get an error message that reads "Debugger can be attached to a script or module script" literally every single time I add any script into Workspace or any instance. I noticed this in the middle of a project that already had dozens of scripts in it, then all of a sudden I press Run (not Play Solo) and I get the message. The result is the test getting stuck loading at 33% forever and the only option is to open Task Manager and shut down the game. I'm thankful I spam Ctrl+S all the time, but this is extremely frustrating.
I created a New File after several minutes of trying to pinpoint the problem in the original file, and all I did was insert the default 'Hello World' script into Workspace. I pressed Run and, to my surprise, I STILL got the error message. Basically this (fatal) error is occurring every single time I put another script into the game. What's most confusing for me is the fact that the original file that already HAS several scripts runs just fine, but crashes when I add any new script to anything. I've reset Studio at least 30 times now (every test required it) and there hasn't been any difference. It's like a Script Lockdown that Studio is going through right now. Any advice?
I've run into this problem before as well, i've searched on wiki and posted on forums but it's just a Studio error, unfortunately nothing we can do about it.
When this started happening to me everytime I wanted to test something(like your case) then I uninstalled studio and then reinstalled it, that seemed to extend the interval between times that this error occurred. Although I do have to uninstall and reinstall studio from time to time(because I use studio a lot) it's a temporary solution until the bug gets fixed.
Last word of advice: Autosaves will save your life lol. Autosave a lot and this won't be anything more than an irritating bug.