|
| 23 Apr 2015 07:48 AM |
| I have a script that makes random bricks and I want to add their Positions into a table. Any ideas how this would look/ |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 23 Apr 2015 07:54 AM |
--Store the vector3s in it?
table = { (1, 3, 4), (6, 42, 2) } |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 10:13 AM |
| Yeah, but I don't know how to add the newly made information into the table. :L |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 10:17 AM |
table.insert(Table, Item)
or
local Table = {CFrame.new(1, 6, 2), CFrame.new(0, 0, 0)} |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 23 Apr 2015 10:24 AM |
CFramePos = {}
for i, v in pairs(game.Workspace:GetChildren()) do table.insert(CFramePos, v.CFrame) end |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 23 Apr 2015 01:11 PM |
save them as strings
("CFrame.new("..math.ceil(part.CFrame.X)..","..math.ceil(part.CFrame.Y)..","..math.ceil(math.CFrame.Z)..")"); |
|
|
| Report Abuse |
|
|