So I have a brick with fire in it. I have a hose that shoots out foam that makes the Fire smaller.
local bubble = script.Parent
bubble.Touched:connect(function(part)
parts = part:GetChildren()
for i = 1, #parts do
if parts[i].className == "Fire" then
parts[i].Size =parts[i].Size - 0.1
end
end
bubble:remove()
end)
But the fire doesn't disappear yet stays at 2. Then I tried adding if part's fire is less or equal to 2, it will disable the fire.
for i = 1, #parts do
if parts[i].className == "Fire" then
parts[i].Size =parts[i].Size - 0.1
if parts[i].className == "Fire" and parts[i].Fire <= 2 then
parts[i].Enable = false
end
end
end
bubble:remove()
end)
But it didn't work. What is missing? What is there to change the -0.1 of the size to something other than size? Thank you.

1 comment
Fyi the 2 is the size.