If you’re over 18, they are legal to buy and use in most places, but you should check with the local authorities because they are considered a pyrotechnic device. Also, ask for permission if you’re working on a location. Make sure you don’t break any laws indirectly, for example, creating a disturbance in a crowded place.