How to make a NumberValue go up when a part is touched?

  1. What do you want to achieve?
    I want my NumberValue to go up 8 when a part is touched, and to display this value on a TextLabel.

  2. What is the issue?
    I can’t seem to find a way to achieve want I want to achieve.

  3. What solutions have you tried so far?
    I’ve looked and haven’t found anything.

My original script that does not work.

local label = script.Parent.TextLabel
local value = workspace.Value
local part = workspace.p2

part.Touched:Connect(function(fire)
	value.Value = +8
	label.Text = value.Value
end)
2 Likes

you can use += to add it ex: value.Value += 8

2 Likes