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 do I?

Previous Thread :: Next Thread 
ninja5566 is not online. 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 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
01 Dec 2012 11:58 PM
bump
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
02 Dec 2012 12:54 AM
bros = {"InfectedScripts", "ninja5566", "follydog", "LotsOfViolence", "lf1r3wolf", "Player1"}


This is a table.
Report Abuse
ninja5566 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
02 Dec 2012 12:57 AM
"Now go away."

Hypocrite.
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
02 Dec 2012 01:10 AM
Find out for yourself.

I don't help rude people.
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
02 Dec 2012 01:13 AM
Hypocrite.
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
02 Dec 2012 01:17 AM
anyone else?
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
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 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
02 Dec 2012 02:08 AM
    table.insert(table,string or number)

~ thedeathmaster01 ~
Report Abuse
ProAVENGERfromLU is not online. ProAVENGERfromLU
Joined: 04 Feb 2012
Total Posts: 5234
02 Dec 2012 03:30 AM
No idea.
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