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

How do I add a NumberValue?

I have a number value, and I need to add another 100 if a player touches a brick, any help? I have this code:

win=points+100

Is that wrong? Because it doesn't work...

2 comments

0

Is 'win' a NumberValue or a variable?

0

Variable.

1 answer

I found a question, and just modified the code a little. Im not sure if this works, I dont have time to test, But its better than nothing. Hopefully it does work correctly :)

script.Parent.Touch:connect(function(Hit)
Player = Game.Players:GetPlayerFromCharacter(Hit.Parent)
if Player then
game.Workspace.NumberValue + 100

2 comments

0

Doesn't work :c

0

Did you put this script inside of the part?

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