Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Check if a number is not more than another number?

So I know there is like if humanoid.Health ~= 1337 then but how would I be able to check if say their health is not more than 1337? There is no ~> so how would I go about doing that? Any help is appreciated :)

2 answers

✓ Accepted answer

You can use not itself,

if not (x > 1337) then

But "x is not more than 1337" is the same as "x is less than or equal to 1337", which is an operator in Lua:

if x <= 1337 then

Not sure if this'll work but maybe try using =<1337

This discussion is preserved as it was. New answers, comments, and votes are closed.