Need help with operators

			elseif script.Parent.Health.Value <= 30 or >= 1 then
			script.Parent.Parent.Smoke.Smoky.Enabled = true
			elseif script.Parent.Health.Value < 0 then
                        ...

Anyone know how I should make this work properly?

The first condition is not checking the range, you should split it into 2 seperate conditions (remove or and add and)

second condition must catch zero as well. (add = next to the <)

elseif script.Parent.Health.Value <= 30 and script.Parent.Health.Value >= 1 then
			script.Parent.Parent.Smoke.Smoky.Enabled = true
			elseif script.Parent.Health.Value <= 0 then
                        ...

Hope this helped

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.