Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this script work?

Asked by 10 years ago
if script.EXP.Value <= 100 then
    script.Rank.Value = "General"
else
    script.Rank.Value = "NoRank"
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.

2 answers

Log in to vote
0
Answered by 10 years ago

try running it as a script instead of a local script

0
thanks! CardboardRocks 215 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Technically it should work. Possibly there are other problems, not related to this code block. Please investigate more, and post what you've found.

Answer this question