Melted chocolate will set on the top of a cake. It will set faster if you put the cake in the fridge to cool. Just remember that pure melted chocolate will set and look a little streaky with white stripes or spots. Try making a chocolate ganache instead which will set on the cake beautifully and be soft enough to cut.