generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How about not making an insert wars game? Also, why are you asking your question in the title, not in the message.

Previous Thread :: Next Thread 
cat348 is not online. cat348
Joined: 07 Mar 2008
Total Posts: 10638
13 Oct 2011 02:06 PM
?
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
13 Oct 2011 02:08 PM
!
Report Abuse
MrChubbs is not online. 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 is not online. Diebrox
Joined: 17 Sep 2009
Total Posts: 4716
13 Oct 2011 02:16 PM
Make a model filter.
Report Abuse
BenBonez is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image