Write the amount of boid's you want as the answer [301 clone's is the maximum of scratch's clone limit]. You can play with some value's if you reach your mouse to the left edge of the screen.The boid's will try to avoid the mouse pointer. Tip: if you want infinite clone's go to Turbowarp with this project and activate infinite clone's. If you want to use these scripts in any way, you're lucky because there's a whole explanation inside but not for all the code just some. I'll explain the rest later.
Credit to @griffpatch for the tutorial. Added the color maker and boid amount chooser by myself. IMPORTANT NOTE: I didn't copy this project from @griffpatch without credit or something so please dont report it.