local touchpart = game.Workspace.GasChamber.Touchpart
local blur = game.Lighting.GasBlur
local model = game.Workspace.GasChamber.gas:GetChildren()
touchpart.Touched:Connect(function()
for i,v in pairs(model) do
while wait(2) do -- I put this here to constantly check if the smoke is enabled/disabled
if v.Smoke.Enabled == false then
blur.Enabled = false
else
if v.Smoke.Enabled == true then
blur.Enabled = true
end
end
end
end
end)
With my previous question, I got the part to move, now I have one problem. The blur won't start when the touch part is detected. It is in StarterCharacterScripts as a Local Script, so I don't get what the problem is.

1 comment
Can you put prints in the code to check if it's running?