used the pen block when the green flag is clicked through the mouse pointer it is going to draw the star
View this project in Scratch
Scratch