The problem is with your function. You have no connection line, and you're not calling it. Also, you can't access the NumberValue's value directly like that.
1 | local value = game.Players.NumberValue |
Having the value set as this stores the value as a number. Not the object itself.
This would print whatever the NumberValue's Value is, not the NumberValue.
For example, if the NumberValue's Value was set at 5, this would print out "5" instead of "NumberValue".
For your script to work, we need it to be set as the object, which is "NumberValue".
To fix this, try the script below:
1 | local value = game.Players.NumberValue |
5 | value.Value = value.Value + player.Character.Torso:GetMass() |
Anyways, this should work now. If you have any problems or questions, please leave a comment below. Hope I helped :P