|
| 08 Jan 2015 07:58 AM |
It's supposed to remove the brick when you click it.
part = script.Parent function click (other) part:Destroy() end part.Selected.Mouse.Button1Down:connect(click) |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2015 08:00 AM |
| what are the "Selected" and "Mouse" Objects? Parts? |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2015 08:05 AM |
| Er no. I found a thing on the wiki and it had selected in there but the script was put together differently so I tried to put it how I like it. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2015 08:06 AM |
theres an order to how things are put together in ROBLOX, because scripting needs rules to make sense.
Put a ClickDetector inside the part, and inside the ClickDetector place a script. Inside the script put this:
part=script.Parent.Parent
script.Parent.MouseClick:connect(function(pl) part:Destroy() end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|