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...
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...
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
Doesn't work :c
Did you put this script inside of the part?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Is 'win' a NumberValue or a variable?
Variable.