the title is kinda self-explanatory im trying to check a value below 0
i tried: if plr.Data.Karma.Value <= "-150" then (script) end it just... doesnt works also, it works with numbers above zero
the title is kinda self-explanatory im trying to check a value below 0
i tried: if plr.Data.Karma.Value <= "-150" then (script) end it just... doesnt works also, it works with numbers above zero
if plr.Data.Karma.Value < 0 then
--whatever you want goes here
end
make sure you are using an IntValue
ok that works, thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Is Karma an Int/NumValue?
Negative values are values which are under 0, so to check if something is negative you can do VALUE < 0 which would be true if the number is a negative number, and false if it is 0 or greater