Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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?

0
Put "clickdetector:Destroy()" at whateverpart you want to delete it in, it should work Fad99 286 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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)
Ad

Answer this question