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

Number and Int Values not working?

Asked by 7 years ago

When I use the IntValue and NumberValue in my script it doesn't work.

Would you use it like this? local nummy = script.Parent.NUmValue (NUmValue is the name of the value)

nummy = 1 or nummy.Value = 1

Both of them don't work. When I try to use a function to change the value of them, it doesn't change.

1 answer

Log in to vote
0
Answered by 7 years ago

I don't know what you're talking about..

This is how it works:

NumValue.Value = 1

0
So Am I supposed to use NumValue and IntValue or can I switch the name in the values property? TheLightningRises 56 — 7y
0
You can switch the name in the values property. Remember, IntValues stand for Integer Values, or something around those lines, meaning that you cannot contain decimals or fractions (because fractions are a form of decimals.) NumberValues on the other hand, can carry almost any value can give it. If I missed something, or it needs more clarification, then I'll be happy to provide more information. Fifkee 2017 — 7y
Ad

Answer this question