Click the right chain for the fan, and the left chain to turn on the light. Turn the light of by clicking s (switch).
Thanks to everyone in the ceiling fan-Scratch community.