ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 01 Dec 2012 11:48 PM |
function clicky() modelid = script.Parent.Text if modelid == "8340" then children = Workspace:GetChildren() for i=1, #children do if children[i].Name == "Base." then print("Nothing") elseif children[i].Name ~= (Names) and "Base." then --Names of ALL the players goes there if children[i]:IsA("Model") or children[i]:IsA("Part")then children[i]:Destroy() end end end end end end script.Parent.Button.MouseButton1Down:connect(clicky) ----------------------------------------
Okay where it says "Names" I want to have all the names of the player in the playerlist so they wont get deleted, how would I do that.. -- without making a table! |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
|
| 02 Dec 2012 12:01 AM |
if script.Parent.Name == "Lol" or script.Parent.Name == "Brb" then print("WHY DONT YOU USE A TABLE" end
That should work.
But my question is.
(Insert print here) |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 12:01 AM |
| I'M NOT USING A TABLE! STOP WASTING MY TIME! |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 12:02 AM |
I helped :/
That would be how you do it.
Just replace the print with your script...
Take a chill pill. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 12:06 AM |
elseif children[i].Name ~= "Name one" or children[i].Name ~= "Name two" and "Base." then --Names of ALL the players goes there
Now go away. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 12:48 AM |
bros = {"InfectedScripts", "ninja5566", "follydog", "LotsOfViolence", "lf1r3wolf", "Player1"} function clicky() for _,v in ipairs(bros) do modelid = script.Parent.Text if modelid == "8340" then children = Workspace:GetChildren() for i=1, #children do if children[i].Name ~= "Base." or v then if children[i]:IsA("Model") then children[i]:Destroy() end end end end end end script.Parent.Button.MouseButton1Down:connect(clicky) --------------------
Didn't work.. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 12:54 AM |
bros = {"InfectedScripts", "ninja5566", "follydog", "LotsOfViolence", "lf1r3wolf", "Player1"}
This is a table. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 12:55 AM |
| Yes, and it should work. Now stop making smart alec questions. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 12:56 AM |
It was not a question.
And no it should not work. Because it is wrong.
But you are rude.
So you get nothing. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
|
| 02 Dec 2012 12:58 AM |
>I'M NOT USING A TABLE! STOP WASTING MY TIME!<
Now who was rude first when I gave them help?
Now who tried to help again anyway? |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 12:58 AM |
| You didn't give me any help, I said "no, i'm not using a table" there is a way to do it without a table. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 01:00 AM |
I gave you the way to do it without a table.
Right after that
You post it with a table, Calling me a brat (Smart alec, Same thing.) because I said thats a table. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 01:01 AM |
| Okay you posted a table, Okay? I am not writing down the names of each person who is my community (aka plays on my server). |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 01:04 AM |
You sir, Are not to bright.
You asked to not use a table
TableName = {"TableObject1", "TableObject2",} esc
This is a table.
if (To whatever).Name == "NameHere" or (To whatever).Name == "NameHere2" then
Oh look. Its not a freakin table.
You didnt ask for a way to auto add peoples names to it.
You asked for the script you have to not use a table. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 01:08 AM |
| So how do I auto add peoples names to it? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 01:10 AM |
Find out for yourself.
I don't help rude people. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
|
| 02 Dec 2012 01:17 AM |
I would be a hypocrite if I said I don't like rude people.
I don't like or dislike them.
They are just there.
And I am rude to them. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
|
| 02 Dec 2012 01:20 AM |
No one else is here.
I would fix it.
I see whats wrong.
But I don't want to. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 02 Dec 2012 01:22 AM |
| Alright, I admit I was rude. I was in a hurry. My friends are bugging me right now about a griefer in my place. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 02:08 AM |
table.insert(table,string or number)
~ thedeathmaster01 ~ |
|
|
| Report Abuse |
|
|
| |
|