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

Why doesn't this script work?

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

✓ Accepted answer

try running it as a script instead of a local script

1 comment

0

thanks!

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

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