click the green flag XD the red hat block can be made by making a custom block and labeling it the code:. then you will see a red hat block(combination of a hat block and a cap block i think) on the scripts area
it seems that scratch is deleting the info about how to make it and the red hat block in the scripts so i am posting the comments in the instructions