I’m going to assume fire is a part. If fire is a part then you have to do:
Fire.Size = Vector3.new(0,0,0)
However, that won’t get rid of the fire effect. If you want to do that, you will have to set their Enabled property to false. Sorry if I’m not making sense.
local Fire = game.Workspace:WaitForChild("fire").Fire
local ClickDetector = script.Parent.ClickDetector
local Enabled = false
ClickDetector.MouseClick:Connect(function()
if Enabled == false then
Enabled = true
Fire.Size = 3.2
else
Enabled = false
Fire.Size = 0
end
end)
It’s cause you’re only deactivating 1 of the Fires in that script, but not all of them
You can easily fix this by changing up your code a bit:
local Fire1 = --Location Here
local Fire2 = --Location Here
local Fire3 = --Location Here
local Disabled = false
local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:Connect(function()
if Disabled == false then
Disabled = true
Fire1.Size = 0
Fire2.Size = 0
Fire3.Size = 0
elseif Disabled == true then
Disabled = false
Fire1.Size = 3.2
Fire2.Size = 3.2
Fire3.Size = 3.2
else
print("W h a t, H O W")
end
end)
Another thing to keep in mind is, make sure that you name all of your Fires differently so that you don’t keep activating the same one over & over again
local Fire1 = game.Workspace:WaitForChild("fire").Fire1--Location Here
local Fire2 = game.Workspace:WaitForChild("fire").Fire2--Location Here
local Fire3 = game.Workspace:WaitForChild("fire").Fire3--Location Here
local Disabled = false
local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:Connect(function()
if Disabled == false then
Disabled = true
Fire1.Size = 0
Fire2.Size = 0
Fire3.Size = 0
elseif Disabled == true then
Disabled = false
Fire1.Size = 3.2
Fire2.Size = 3.2
Fire3.Size = 3.2
else
print("W h a t, H O W")
end
end)
local Fire1 = script.Parent:WaitForChild("Fire1") --Location Here
local Fire2 = script.Parent:WaitForChild("fire").Fire2--Location Here
local Fire3 = script.Parent:WaitForChild("fire2").Fire3--Location Here
local Disabled = false
local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:Connect(function()
if Disabled == false then
Disabled = true
Fire1.Size = 0
Fire2.Size = 0
Fire3.Size = 0
elseif Disabled == true then
Disabled = false
Fire1.Size = 3.2
Fire2.Size = 3.2
Fire3.Size = 3.2
else
print("W h a t, H O W")
end
end)