First type in how many nodes you want and then you can drag them around and they will stay connected, so you can make cool shapes. Spam the green flag to make sure everything works properly.
Thanks to dbs5915 for the idea and the basic code. Check out their project here: https://scratch.mit.edu/projects/429039292/