cat348
|
  |
| Joined: 07 Mar 2008 |
| Total Posts: 10638 |
|
| |
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 13 Oct 2011 02:09 PM |
Yes, use a
while true do wait() if game.Workspace:findFirstChild("thing you dont want") then game.Workspace:findFirstChild("thing you dont want"):Remove() end --do copy the above lines and replace the names for things like orbs and such. end |
|
|
| Report Abuse |
|
|
Diebrox
|
  |
| Joined: 17 Sep 2009 |
| Total Posts: 4716 |
|
| |
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 13 Oct 2011 02:23 PM |
MrChubbs method is ineffective.
I suggest you connect the Workspace to the ChildAdded event and make a list of things you don't want. When an object gets added you check if it's on the list and remove it. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 13 Oct 2011 02:40 PM |
Assuming it was added directly to Workspace..
local rem = {"Nameofobject","Keep","continuing","The","list"}
game.Workspace.ChildAdded:connect(function(ch) for _,v in pairs(rem) do if ch.Name:lower() == v:lower() then v:remove() end end end) |
|
|
| Report Abuse |
|
|
Diebrox
|
  |
| Joined: 17 Sep 2009 |
| Total Posts: 4716 |
|
|
| 13 Oct 2011 02:41 PM |
| There's much more efficient and time saving ways, but I'm too tired to write it right now. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 13 Oct 2011 02:53 PM |
Ah, right..
Assuming it was added to something inside Workspace, or Workspace, you can use .DescendantAdded, rather than .ChildAdded.
local rem = {"Nameofobject","Keep","continuing","The","list"}
game.Workspace.DescendantAdded:connect(function(ch) for _,v in pairs(rem) do if ch.Name:lower() == v:lower() then v:remove() end end end) |
|
|
| Report Abuse |
|
|
cat348
|
  |
| Joined: 07 Mar 2008 |
| Total Posts: 10638 |
|
|
| 13 Oct 2011 05:19 PM |
| Well thanks for the advice im trying to run an insert wars game but orbs eyeballs and suck ruin everything |
|
|
| Report Abuse |
|
|