I want to make a code where if a player clicks the block he will give 1 point to the testValue then changes the gui text into Points:(testValue) accurately
local testPart = script.Parent
local testValue = testPart.testValue.Value
local testGui = game.StarterGui.ScreenGui.TextLabel
availability = true
-------------------------------------------------
local function PointsSystem(num)
availability = false
local value = num + 1
availability = true
return value
end
local value = PointsSystem(testValue)
local function afterClick()
testGui.Text = ("Points:".. " ".. testValue)
end
testPart.ClickDetector.MouseClick:Connect(afterClick)
testPart.ClickDetector.MouseClick:Connect(value)
------------------------------------------------------
