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

Number and Int Values not working?

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

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

This is how it works:

NumValue.Value = 1

2 comments

0

So Am I supposed to use NumValue and IntValue or can I switch the name in the values property?

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.

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