If you look at the console (on the bottom half) when everything is open together, does it say something like 'null pointer exception'?
This is actually very useful to me, because this is a somewhat-old script and I've been meaning to port it over to Java which has way better debugging and sort of reveals error messages cleaner than this. This one was written in Python mode and unfortunately, that mode has kind of fallen behind the times a little bit.
If you're on discord or something like that, I'd be willing to debug it until it works, if that helps at all. I also understand if the whole thing is too much trouble, but I think you might find it to be kind of interesting if we get it up and running!