|
| 06 May 2012 09:13 AM |
How would I go about adding the name of a part to a table?
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:16 AM |
| table.insert(tableName, Placment, Information) |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:19 AM |
Confused.. I have an existing table that I want to add to table.Insert(Parts, hit.Parent.Name, ???)
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:21 AM |
table.insert(tableName, Placment, Information)
Table name being the name of the table you want to insert information to,
Placement would be the position the data would be entered into the table
information would be the information you are putting into the table.
so,
table.Insert(Parts, 1, hit.Parent.Name)
print(Parts[1]) >What ever 'hit.Parent.Name' would be. |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:26 AM |
now Idk how many parts will end up going into the table and I just want it to keep adding them.. How can I do that without defining a 'Placement' #?
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:27 AM |
for the placement number just do
#Parts + 1
It will just put it one in front of how many objects there are in the table. |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:30 AM |
I see. Thanks :D
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 09:36 AM |
One last thing, How can I set the table value as a String value? So I can Use it between scripts?
site.Players.callmeduck2.PostCount.Value=site.Players.callmeduck2.PostCount.Value+1 |
|
|
| Report Abuse |
|
|
|
| 06 May 2012 03:43 PM |
as in the data entered in the table is a string?
in the example of adding a name it's all ready a string. |
|
|
| Report Abuse |
|
|