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

Why doesn't this work?

Asked by 8 years ago
part=script.Parent


function collect()
    part:Destroy()
    print("bob")
end

part.ClickDetector.MouseClick:connect(collect)

Nothing appears in the output

Answer this question