I think you've got a syntax error. It looks like you're defining a function, but also trying to connect that function immediately to the TextButton. Try naming your function clicking
, and then passing that into the connection.
function clicking()
print("working..?..")
local vv = script.Parent.ValorVoto
vv.Value = vv.Value + 1
script.Parent.Parent.TextLabel.Text = "clicks: " .. tostring(vv.Value)
end
script.Parent.MouseButton1Click:Connect(clicking)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…