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
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 30 Dec 2013 10:58 AM |
| http://wiki.roblox.com/index.php/GetChildren_(Function) |
|
|
| Report Abuse |
|
|
Undoomed
|
  |
| Joined: 19 Oct 2010 |
| Total Posts: 1662 |
|
|
| 30 Dec 2013 11:01 AM |
I still don't know how..
Bump |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 19 Oct 2010 |
| Total Posts: 1662 |
|
| |
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 30 Dec 2013 11:05 AM |
| You can't delete Workspace, can you? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 30 Dec 2013 11:13 AM |
| LOL! You guy's are naive. The white guy probably did make that himself. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|