Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i have had trouble with making a block disappear and be removed after 10 clicks?

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?

1 comment

0

At least try to attempt some sort of code, do this by finding specific Google documents or questions asked previously. This site isn't a request site.

1 answer

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)

1 comment

0

Don't give scripts to people who haven't tried, this is not a request site.

This discussion is preserved as it was. New answers, comments, and votes are closed.