Where's the problem in this script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
I've made this script but can't find where the problem is. This script will basically add points to the player's NumberValue in a ScreenGui once the Brick with script in it has been touched. And will the "local points" add points to just the player who touched it?
3 | part.OnTouched:connect( function (Touched) |
4 | local points = script.Parent.Parent.Parent.StarterGui.Points.PointLabel.PointValue |
5 | points.Value = points.Value + 10 |
(Don't know if the script showed up correctly)