Creating simple effects with fire, smoke, and sparkles
Roblox has several premade particle-emitting classes that allow us to instantly attach it to parts and attachments to give us a customizable effect. These premade particles have limited customizability but do serve a useful purpose. In this recipe, we will be examining how to apply and customize the three premade ParticleEmitter objects – Sparkle, Fire, and Smoke. We will be using these three effects to construct a simple fire pit. Figure 4.1 shows the three default effects side by side:
Figure 4.1: Fire, smoke, and sparkle effects
How to do it…
We will start by inserting a square part and then scaling it into the shape of a log. After duplicating the log, we will rotate and stack the logs on top of one another. We will then add color and the Wood material to it, then insert Fire, Smoke, and Sparkle effects from the Effects drop-down menu. We will then go through each of the effects...