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: table.insert ???!!!

Previous Thread :: Next Thread 
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 05:27 PM
explain.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
14 May 2012 05:31 PM
tab = {"hi", "bye, "no"}

print(tab[3])
table.insert(tab, 3, "yes")
print(tab[3])

> no
> yes

http://wiki.roblox.com/index.php/Function_Dump/Table_Manipulation#table.insert_.28table.2C_.5Bpos.2C.5D_value.29
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 05:34 PM
i dont need wikis (there stoped anyhow), and example wont help me learn with out explaining what you did you cheap "teacher".
i need the real stuff, how does this work?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
14 May 2012 06:02 PM
Wiki.
Explains it quite well.
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 06:17 PM
well wiki not help me and i cant learn from it. explain menual...thats why this forum created for, not just to give the save advice for each post "go to the wiki", unless you a pefetic lazy noob to explain how things work.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 May 2012 06:18 PM
I still use the wiki as a reference. If you can't learn from it, you need to learn how to learn
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
14 May 2012 06:20 PM
The wiki is a GREAT reference.
Why do I not explain stuff like that on the forum?

Because there's so many posts about the same thing.
The LEAST you could do is a bit of research before you come here asking about how something works, especially since you could just type 'table.insert lua' in the Googlebox.

The wiki is also a GREAT reference, as Crazyman said.
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 06:26 PM
i leaned scripting all the time from other people explaning it to me, i never use the wiki because its not work for me to learn it, it my work for you but remeber, we not the same people. now insted wasting my time fighting agains you ignerent people that i should use wiki....please explain me how this works.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
14 May 2012 06:31 PM
"you could just type 'table.insert lua' in the Googlebox."
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 May 2012 06:36 PM
TheWhiteAngle, not to be offensive or anything, but it might be beneficial to hold off from learning a programming language until you're a bit older. It will be easier for you.
Report Abuse
DangCool is not online. DangCool
Joined: 27 Apr 2010
Total Posts: 5568
14 May 2012 06:40 PM
[ Content Deleted ]
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 06:49 PM
-_-

my own admin that i righted right now nubz >:3

game.Players.TheWhiteAngle.Chatted:connect(function (msg)

if msg:lower:sub(1,5) == "kick/" then
game.Players:findFirstChild(msg:sub(6)):remove()

elseif msg:lower:sub(1,3) == "ff/" then

Instance.new("ForceFilde", game.Players:findFirstChild(msg:sub(6).Character)

elseif msg:lower:sub(1,5) == "unff/" then
game.Players:findFirstChild(msg:sub(6)).Character:findFirstChild("ForceFild"):remove()

elseif msg:lower:sub(1,5) == "heal/" then
game.Players:findFirstChild(msg:sub(6).Character.Humanoid.Health = game.Players:findFirstChild(msg:sub(6).Character.Humanoid.MaxHealth

elseif msg:lower:sub(1,2) == "m/" then

message = Instance.new("Message", workspace)
message.Text = msg:sub(6)
wait(3)
message:Remove()

elseif msg:lower:sub(1,2) == "h/" then

hint = Instance.new("Hint", workspace)
hint.Text = msg:sub(6)
wait(3)
hint:Remove()

elseif msg:lower:sub(1,5) == "kill/" then
game.Players:findFirstChild(msg:sub(6).Character.Humanoid.Health = 0

elseif msg:lower:sub(1,5) == "god/" then
game.Players:findFirstChild(msg:sub(6).Character.Humanoid.Health = math.huge

elseif msg:lower:sub(1,7) == "ungod/" then
game.Players:findFirstChild(msg:sub(8).Character.Humanoid.Health = 100

end
end)
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 07:07 PM
i got over studio and i fix some stuff c:

game.Players.TheWhiteAngle.Chatted:connect(function (msg)

if msg:lower():sub(1,5) == "kick/" then
game.Players:findFirstChild(msg:sub(6)):remove()

elseif msg:lower():sub(1,3) == "ff/" then

Instance.new("ForceFielde", game.Players:findFirstChild(msg:sub(6)).Character)

elseif msg:lower():sub(1,5) == "unff/" then
game.Players:findFirstChild(msg:sub(6)).Character:findFirstChild("ForceField"):remove()

elseif msg:lower():sub(1,5) == "heal/" then
game.Players:findFirstChild(msg:sub(6)).Character.Humanoid.Health = game.Players:findFirstChild(msg:sub(6)).Character.Humanoid.MaxHealth

elseif msg:lower():sub(1,2) == "m/" then

message = Instance.new("Message", workspace)
message.Text = msg:sub(6)
wait(3)
message:Remove()

elseif msg:lower():sub(1,2) == "h/" then

hint = Instance.new("Hint", workspace)
hint.Text = msg:sub(6)
wait(3)
hint:Remove()

elseif msg:lower():sub(1,5) == "kill/" then
game.Players:findFirstChild(msg:sub(6)).Character.Humanoid.Health = 0

elseif msg:lower():sub(1,5) == "god/" then
game.Players:findFirstChild(msg:sub(6)).Character.Humanoid.Health = math.huge

elseif msg:lower():sub(1,7) == "ungod/" then
game.Players:findFirstChild(msg:sub(8)).Character.Humanoid.Health = 100

end
end)
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 May 2012 07:07 PM
Instance.new("ForceFilde" ...

That's not gonna work very well
Report Abuse
MrMcAero is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
14 May 2012 07:13 PM
Looked kid,

lemme get something straight. This is the way you want this community to be:

We learn.
We help.
We debug.
We TEACH --No, no. We won't teach you in-depth on stuff like this, but the wiki will.

As I say to most thread's like this, such as "Requests","TELL ME",and "I DEMAND..", I just say the same thing.

We learned RBX.Lua, we learn the syntax, we learn the method's, we learned the Instance's, and we learned the connection line's. Most of all we learn IT. So while you go pouncing around looking like a fool, we're all in a huge Party laughing at your every move. every complaint, every argument (Which always fails). So please, be quite, learn some grammar, and wait until your older to learn the language.


- Cheers! <--You don't deserve this...
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
14 May 2012 07:54 PM
Is there really that much to explain about it?

table.insert basically does what the name suggests and *inserts* a value into a table. table.insert takes in 3 arguments but only two are required.
table.insert(_TABLE_, _INDEX_, _VALUE_)
or optionally
table.insert(_TABLE_, _VALUE_)

when you only give two arguments table.insert automatically sends the value to the next numeric index else it will just send the value to the assigned index

ex:
tab = {"hi"}
table.insert(tab, "LOL")
--Tab would now look like {"hi", "LOL"}
That's basically all there is to it
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 08:10 PM
omfg thank you soo much smurf279, was that so hard to do you retard people?!
and im 16 btw -_-
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
14 May 2012 08:48 PM
>im 16 btw

>you retard people

>i dont need wiki

>i need the real stuff


I'm am absolutely 100% completely confused by those 4 previous statements. Read them, and then think about what you just read.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 May 2012 08:51 PM
@TheWhiteAngle - He literally put what the wiki said.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
14 May 2012 09:14 PM
Your calling US a "retard people" when your the one that doesn't know how to use a dictionary when to use one. [Noted: Wiki == Dictionary]

The Wiki explains in detail on how it works, with examples. Also, ever heard of something called Google? Or, maybe Bing? Or Wikipedia? Here is one of those hidden rules that the majority of us agree with:

We are here to help you with questions that pertain to subjects that cannot be answer thoroughly through the Wiki and/or other sources.

That is what this whole argument is about. And, also, I learn COMPLETELY off the Wiki, with help from a FEW friends with VERY simple things, such as string manipulation. Yet you "supposedly" made those admin commands and yet you don't know how to use table.insert? Because, admin commands require tons of that. So, I don't believe that you are 16, based on what you have said and how you speak, and that you made that admin commands.

And by the way, you could have looked up "table.insert" in the Wiki, and it would've given you this:

http://wiki.roblox.com/index.php/Function_Dump/Table_Manipulation#table.insert_.28table.2C_.5Bpos.2C.5D_value.29

We are here to fix scripts, answer questions that cannot be answer via Wiki, and to help you with stuff that are not in the Wiki. [Mostly un-written pages]

We are not here to answer questions that can easily be answered in 1000 other places, make you scripts [Unless it's a really simple script, like print("Hello World!")], take bribes, accept offers etc.




ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
14 May 2012 09:34 PM
@TheWhiteAngle, Your Admin Script will probably error if You're not in the Server.
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
14 May 2012 09:38 PM
Thants for the usless compliments?
btw, i didn't readed any post you said about me because its a waist of time to read them.

kthxbai now...
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
14 May 2012 09:41 PM
"Thants for the usless compliments?"

"btw, i didn't readed any post you said about me because its a waist of time to read them."

the First part says You read 'em, second Part says the Oposite.
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