alliancer
|
  |
| Joined: 18 Mar 2013 |
| Total Posts: 1016 |
|
|
| 08 Sep 2013 09:24 PM |
function tag() wait(0.25) script.Parent:Remove() end
script.Parent.ClickDetector.MouseClick:connect(tag)
-- It's not throwing me any errors, but doesn't do anything either -- Any ideas? Thanks |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 09:31 PM |
| Do you have a click detector in the part? |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 09:32 PM |
| Nvm, Ignore that. The script needs to be inside the click detector, Inside the brick, And you wanna do script.Parent.Parent:Destroy() I think |
|
|
| Report Abuse |
|
|
alliancer
|
  |
| Joined: 18 Mar 2013 |
| Total Posts: 1016 |
|
|
| 08 Sep 2013 09:34 PM |
I'm pretty sure that only changes the position of the script & stuff The problem is either connecting the function, or removing the brick |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 09:37 PM |
| When you click it, The way you have it set up, Is to remove the Click Detector |
|
|
| Report Abuse |
|
|
alliancer
|
  |
| Joined: 18 Mar 2013 |
| Total Posts: 1016 |
|
|
| 08 Sep 2013 09:40 PM |
| I'm trying to remove the brick itself |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 09:51 PM |
| Then do script.Parent.Parent:Destroy() |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 10:38 PM |
function tag() script.Parent:remove() end
script.Parent.ClickDetector.MouseButton1Down:connect(tag)
should work fine |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2013 10:38 PM |
p=Instance.new("ClickDetector") p.Parent=script.Parent
lol easyer to use insert object |
|
|
| Report Abuse |
|
|
| |
|