1 | if script.EXP.Value < = 100 then |
2 | script.Rank.Value = "General" |
3 | else |
4 | script.Rank.Value = "NoRank" |
5 | end |
The EXP is a NumberValue
and the Rank is a StringValue
. I don't understand why this isn't working.
It is in a local script in the StarterPack and the NumberValue's and the StringValue's are a child of the script.
try running it as a script instead of a local script
Technically it should work. Possibly there are other problems, not related to this code block. Please investigate more, and post what you've found.