‘’
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Value.Value = script.Parent.Parent.Parent.Value.Value + 1
end)‘’
instead of doing this, you can js dk ‘‘script.Parent.Parent.Parent.Value.Value += 1’’
this is more clean.
What does the error message say?
yes hes right, your code isnt super clean, but thats ok, you will probably have to use ToString, as the text in a textlabel doesn’t support regular numbers, I think.
-- for the result at the end
local value = script.Parent.Parent.Parent.Value
value.Changed:Connect(function()
script.Parent.Parent.POINTS.Text = tostring(value)
end)
-- for the result at the end
local value = script.Parent.Parent.Parent
value.Changed:Connect(function()
script.Parent.Parent.POINTS.Text = tostring(value.Value)
end)
your previous method was storing the value… which would be 0