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

[Solved] How to make a block not clickable after I click it?

So I have my ClickDetectorEvent. clickdetector.MouseClick:Connect(function() end It doesn't matter what other script I have inside of the function but how would I make it not clickable once I click it?

1 comment

0

Put "clickdetector:Destroy()" at whateverpart you want to delete it in, it should work

1 answer

✓ Accepted answer

Just simply put this in the script and you can only click a part once:

function onClicked()
wait()
script.Parent.ClickDetector:Destroy()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

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