Fire Effect

Fire Effect

Where to put this script?

Put this code inside the part that you want to touch to activate the fire effect

Script (Fire on Part)


firePart = script.Parent

function lightOnFire(otherPart)
    local fire = Instance.new("Fire")
    fire.Parent = firePart
    wait(5)
    firePart.Fire:Destroy()
end
 
firePart.Touched:Connect(lightOnFire)

Script (Fire on Player)


firePart = script.Parent

function lightOnFire(otherPart)
    local fire = Instance.new("Fire")
    fire.Parent = part
    wait(5)
    otherPart.Fire:Destroy()
end
 
firePart.Touched:Connect(lightOnFire)