I have a script where when you click on a part it will add to a variable and if the variable is 70, if the part was clicked 70 times, it will change the transparency of a decal on a part, but my if then statement does not want to work. Script:
local CD = workspace.Clock.ClickDetector
local CC = 0
CD.MouseClick:connect(function(click)
CC = CC + 1
end)
if CC >= 70 then
workspace.Six.Decal.Transparency = workspace.Six.Decal.Transparency - 1
end

2 comments
Put the if statement inside the MouseClick function so it checks everytime
k thanks