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

Can you print the number in a value?

Asked by
Vividex 162
8 years ago

Is it possible to print what number is in a Value?

For example, if the value is set to 4, can you run:

print(game.Workspace.Thing.Value)

and it'll print 4?

2 answers

Log in to vote
1
Answered by 8 years ago

When you try to get the value of an IntValue/NumberValue using their Value property, it converts the value to an integer or number. So, the short answer is "yes," it will work just fine.

If you found this solution helpful, consider leaving an upvote and accepting my answer.

Ad
Log in to vote
0
Answered by 8 years ago

Just no

Answer this question