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 » Scripters
Home Search
 

Re: adding CFrames into a table

Previous Thread :: Next Thread 
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
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 is not online. 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
Lordlukervol is not online. Lordlukervol
Joined: 29 May 2012
Total Posts: 749
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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