hi i have recently been trying to make a block disappear after being clicked 10 times but i just cant do it. i am new to roblox scripts so i cant really do this. can someone help?
So, create a ClickDetector
in the block firstly. This will let us click the block.
Then, you will want to create a script in the block with this script
local clicks = 0 local MaxClicks = 10 -- Amount of clicks before dissapering script.Parent.ClickDetector.MouseClick:Connect(function() clicks = clicks + 1 if clicks == MaxClicks then script.Parent:Destroy() end end)