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 11 years ago
1if script.EXP.Value <= 100 then
2    script.Rank.Value = "General"
3else
4    script.Rank.Value = "NoRank"
5end

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 11 years ago

try running it as a script instead of a local script

0
thanks! CardboardRocks 215 — 11y
Ad
Log in to vote
0
Answered by 11 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