Hello, I'm creating a game and I made a character that at 2500 hp should start emitting smoke, but the script does not work. I put the not enabled smoke in some parts of the character, that I called from s1 to s6.
It's a LocalScript.
if
script.Parent.Humanoid.Health <= 2500 then
script.Parent.s1.Smoke.Enabled = true
script.Parent.s2.Smoke.Enabled = true
script.Parent.s3.Smoke.Enabled = true
script.Parent.s4.Smoke.Enabled = true
script.Parent.s5.Smoke.Enabled = true
script.Parent.s6.Smoke.Enabled = true
end

4 comments
where is the script located?
the location may be a problem
You are saying 'if the health is LESS THAN OR EQUAL TO 2500'. Don't think that is what you want.
The script is located in the character, anyways I want it to enable the smoke if the health is less or equal to 2500.