I still wonder why this doesn't work:
1 | p = Instance.new( "NumberValue" ,workspace) |
2 | p.Value = 1 |
3 | e = p.Value |
4 | e = e+ 1 |
5 | print (e,p.Value) |
6 | -->2, 1 |
You are assigning a new variable a value equal to p.Value, and not assigning the Value a tag. Remove the .Value and add it to your tags when applicable.
1 | tag = script.Parent.NumberValue |
2 |
3 | tag.Value = tag.Value + 1 |