Ok. so i learned how to make a block. once you click it, it disapears. u click is again. it appears. but i want to make a block. where when u click it it deletes. not temperary disappears. i know i have to add click detector and a script. but whats in the script????~~~~~~~~~~~~~~~~~
function onClicked() script.Parent.Parent.part.Transparency=1 script.Parent.Parent.part.CanCollide=false end script.Parent.ClickDetector.MouseClick:connect(onClicked)
~~~~~~~~~~~~~~~~~
problem : I dont want to click it again!!!!
To remove it completely, you need to use the Destroy method.
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Parent.part:Destroy() end)
Make sure the line 2 path leads to the correct part!
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Parent.PARTNAMEHERE:Destroy() end)
Locked by Shawnyg, Perci1, ImageLabel, and M39a9am3R
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?