|
| 17 Jan 2013 06:01 PM |
I can't think of a way to do this... I have one brick and any bricks inside of it I want to be cleared.. any ideas? could I use :touched?
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:03 PM |
script.Parent.Touched:connect(function() script.Parent:ClearAllChildren() end)
? |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:19 PM |
script.Parent.Touched:connect(function( ) for i , v in pairs( script.Parent:GetChildren( ) ) do if v:IsA("BasePart") then v:Destroy( ) end end end)
¤ ¤ † K M X D † ¤ ¤
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:23 PM |
no i mean if they are physically inside of the brick.
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:28 PM |
Would they have the exact same positions?
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:34 PM |
"no i mean if they are physically inside of the brick." Everything in workspace is physical, except scripts, and some other classes. But bricks are physical. If you put Knightmare's script inside of the brick you want all bricks to be cleared out then it should work. |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:36 PM |
No, I think I know what he's talking about. I'm currently experimenting with magnitude.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 06:58 PM |
I doubt it. No offence to him, but I doubt he knows how to use magnitude. I could be wrong though.
~LUV, LuaLearners Teacher(+3)~ |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2013 09:32 AM |
"Would they have the exact same positions?"
No.
I have a base plate which one player can build on.. I want to have a clear button so he/she can clear all the bricks ONLY ON THAT BASE PLATE
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 18 Jan 2013 06:35 PM |
http://wiki.roblox.com/index.php/Region3
http://wiki.roblox.com/index.php/FindPartsInRegion3
for _,v in pairs(partsInRegion3) do v:Destroy() end |
|
|
| Report Abuse |
|
|