Particles wont enable

I’m scripting a gun and I want to add an overheating system to it but the smoke/particles wont enable and wont show

gun
image

overheat script (doesnt work)

if script.Parent.fireValue.Value == 1 then
	script.Parent.Handle.Smoke.Enabled = true
	if script.Parent.fireValue.Value == 	10 then
		script.Parent.Handle.Smoke.Enabled = false
	end
end

serverReload script(works)

script.Parent.Fire.OnServerEvent:Connect(function()
	script.Parent.fireValue.Value -= 1
		if script.Parent.fireValue.Value == 0 then
			script.Parent.Client.Disabled = true
			wait(0.1)
			script.Parent.Reload:Play()
			wait(3.2)
			script.Parent.fireValue.Value = 10 
			script.Parent.Client.Disabled = false
	end
end)

I tried local script and a server script, doesnt work and no errors

try this:

script.Parent.fireValue:GetPropertyChangedSignal("Value"):Connect(function()
    if script.Parent.fireValue.Value == 1 then
	script.Parent.Handle.Smoke.Enabled = true
	if script.Parent.fireValue.Value == 10 then
		script.Parent.Handle.Smoke.Enabled = false
	end
  end
end)
1 Like