whenClicked

Creates a 'when this sprite clicked' hat block.

Parameters

block

The script to run when the sprite is clicked.