Fandom

ROBLOX Wikia

Realistic Fire/Special Effects

12,564pages on
this wiki
Add New Page
Talk1 Share

Introduction

In this article, you will find ways to use Roblox's fire
Fire and Smoke Brick

Fire brick

to your fun advantage! Don't forget to open the game in Studio or have Advanced Tools open!

ROBLOX Fire can be used for plane effects also!

Realistic Fire

First off, you need to insert a brick. Go to Tools and then Click Insert >Object >Part . Select the part then click Insert>Object>Fire. Now you have a brick with fire in it. Roblox's fire is already very convincing, but it doesn't have smoke. To do this, select the part and click Insert>Object>Smoke. Currently, you should have a brick with fire and smoke in it to make it look like a real fire.

Editing Fire and Smoke Effects

OK, the fire already has some good looking color, but I would change the color of the smoke to a darker grey, because it looks like a broken fog machine. Also lowering the opacity and raising the RiseVelocity makes it look better. Fire color can be changed using RGB (red green blue) values. Doing RGB (1,0,0) will make the fire red.

Time to Light This Thing

Well, this header says it all. We are going to add script(s) that will make this fire act like real fire. Ready? OK. Select the brick and go to Insert>Object>Script. We are going to make an onTouched script so when someone touches the fire brick, something happens. Name this script whatever you want, as long as you know it's a script. Got it? Now for the scripting...

Newbie Script

function onTouched(hit)

if hit.Parent.Humanoid ~= nil then

print(hit.Parent.Name.. " has touched the fire!")

local infect = script.Parent.Fire:Clone()

infect.Parent = hit.Parent.Torso

local burn = script.Parent.Smoke:Clone()

burn.Parent = hit.Parent.Torso

while true do

wait(0.1)

hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 1

end

end

end

script.Parent.Touched:connect(onTouched)


Advanced Script

function onTouched(hit)

if hit.Parent.Humanoid ~= nil then

print(hit.Parent.Name.. " has touched the fire!")

local infect = script.Parent.Fire:Clone()

infect.Parent = hit.Parent.Torso

local burn = script.Parent.Smoke:Clone()

burn.Parent = hit.Parent.Torso

coroutine.resume(coroutine.create(function()

local HIT = hit

while true do

wait(0.1)

HIT.Parent.Humanoid.Health = HIT.Parent.Humanoid.Health - 1

end

end))

end

end




script.Parent.Touched:connect(onTouched)

Make sure that there are no errors in the script, otherwise the script won't work and it will just be words. Now this script will not just light them on fire, but take away damage every 0.1 seconds.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.