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

What are numbervalues, and how can I utilize them?

Hi

Upon entering this into a script game.ServerStorage.Level.boss.boss.Human.Health = game.ServerStorage.Level.boss.boss.Human.Health * level

where level is a numbervalue set to 1, i get the following error.

Workspace.Control.Control:38: attempt to perform arithmetic on local 'level' (a userdata value)

1 answer

✓ Accepted answer

use level.Value instead.

Numbervalues (And all other Value Instances) have a property called "Value", wich is where the value is stored. Use this and the script wont error.

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