Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I change my fire color after I create it?

I am making fire when I touch a part but I can't tell how to change the color of it.

local PlayersService = game:GetService("Players")

local debounce = false

script.Parent.Touched:Connect(function (hit)
    if hit and hit.Parent:FindFirstChild("Humanoid") and PlayersService:GetPlayerFromCharacter(hit.Parent) and debounce == false then
        local fire = Instance.new("Fire")
        fire.Parent = script.Parent
        debounce = true
        wait(1)
        debounce = false
    end
end)

2 answers

✓ Accepted answer

Once you create the fire, you can set any of it's properties (including color) like this:

local fire = Instance.new("Fire")
fire.Color = Color3.new(0,0,1)
fire.Parent = script.Parent

Check out the API reference for other things you can do with Fire: https://developer.roblox.com/en-us/api-reference/class/Fire

1 comment

0

Oh okay that makes sense

hey you! have you ever heard of enes? if you are in trouble, better call enes!

This discussion is preserved as it was. New answers, comments, and votes are closed.