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