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: Delete anything with a value in it

Previous Thread :: Next Thread 
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 10:53 AM
A part of a script that deletes anything in workspace containing the value "deletable"

Can someone help with this?

Also the workspace contains "deletable" but don't delete that.

etc. if name ~= "Workspace" then..
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 10:58 AM
http://wiki.roblox.com/index.php/GetChildren_(Function)
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:01 AM
I still don't know how..

Bump
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:01 AM
http://www.roblox.com/User.aspx?ID=2150800
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
30 Dec 2013 11:03 AM
I don't know what you exactly need, something in this style...

for _,v in pairs(Workspace:GetChildren()) do
if v:findFirstChild("deletable") then
v:Destroy()
end
end
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:03 AM
@above

Yes like that except if "deletable" is in "Workspace", it will try to delete workspace. (And it is). Can you make it so the z can't be named Workspace?
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:04 AM
Wait nvm got it
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
30 Dec 2013 11:05 AM
You can't delete Workspace, can you?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:05 AM
G = workspace:GetChildren()
for i = 1, #G do
if G[i]:IsA("StringValue") and G[i].Value == "deletable" then
game.Debris:AddItem(G[i], 0)
end
end
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:07 AM
Way to copy above.

Lrn2script

Thanks all except Nx.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:08 AM
Are you telling me to learn how to script?

I wrote what I posted.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:10 AM
I forgot "G" is a blue keyword.

X = workspace:GetChildren()
for i = 1, #G do
if X[i]:IsA("StringValue") and X[i].Value == "deletable" then
game.Debris:AddItem(G[i], 0)
end
end
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:11 AM
Noob just learn to script and stop copying stuff, you'll get farther.
Good day.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:11 AM
Aaaannnndd another mistake.

game.Debris:AddItem(X[i], 0)
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:12 AM
You're telling me to learn how to script, when the other day I made a Plugin for Studio.

You're just mad because I wouldn't tell you exactly how to do what you were asking earlier.
Report Abuse
YodaimeKing is not online. YodaimeKing
Joined: 01 Nov 2009
Total Posts: 3961
30 Dec 2013 11:13 AM
LOL! You guy's are naive. The white guy probably did make that himself.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:14 AM
I removed all the items I was wearing because I'm in Studio and my hats were getting in the way.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:16 AM
Still look like a noob.

Also CrniOao's script worked perfectly and no lag. Yours crashed my game several times. Learn to script.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:17 AM
>"Yours crashed my game several times. Learn to script."

There's absolutely no way it crashed your game, I tested it myself.

Stop making accusations when you have nothing to back them up.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 11:19 AM
LOL kid. If you think that script has any worth or any remote chance of doing something I want it to, go leave and play with your Barbies.

Just get out, I already got a decent scripter to help.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 11:23 AM
It does exactly what you asked.

It searches the workspace for anything with the Value "deletable" then removes it.
Report Abuse
tmtitanic1 is not online. tmtitanic1
Joined: 30 Sep 2011
Total Posts: 21
30 Dec 2013 11:25 AM
Undoomed, if anything, you're the little kid. Do you have any proof he didn't write it other than your own pathetic ego? 6 year olds usually have that much common sense. So maybe you're 4? Have you tried the script? Keep those questions in mind when you realize you're so pathetically ignorant.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 12:10 PM
lol rage above. Who types a paragraph to insult someone they dont even know?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
30 Dec 2013 12:10 PM
Who accuses someone of not knowing how to script when they don't even know them?
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
30 Dec 2013 12:11 PM
Who continues to try and prove themself after someone already helped me?
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