The sheriff is hiding under the 10-gallon hat with a hole in it. He will not come out until you give him his star, which is in the cave behind the shark. Feed the shark gum to get through.