RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 17 Jul 2016 09:06 PM |
I want to make a brick making machine (stupid and simple, I know) Basically, I want to put all the colors in a table, then for each color make a part with that color and for the name of the part put it as the color. I want the size to be 2x2, and next to eachother. It's probably hard, but is it possible /
|
|
|
| Report Abuse |
|
|
|
| 17 Jul 2016 09:10 PM |
local part = Instance.new("Part") part.BrickColor = BrickColor.Random() part.Name = part.BrickColor.Name |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 18 Jul 2016 09:06 AM |
@Both
That's the easy part, but I want to basically get all of ROBLOX's colors into a table, then do what I said in the post :P
|
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2016 09:27 AM |
local parent = workspace.Model --Parent to place bricks in local start = Vector3.new(0,0,0) --Start location
local lastpart,part for i = 0, 127 do part = Instance.new("Part", parent) part.Size = Vector3.new(2, 2, 1) part.BrickColor = BrickColor.palette(i) part.Name = part.BrickColor.Name part.Position = (lastpart and lastpart.Position+Vector3.new(2,0,0) or start) lastpart=part end
Shouldn't something like that work? |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 18 Jul 2016 09:32 AM |
@War
Thanks, but how do I stack them so they don't go across the map lol
|
|
|
| Report Abuse |
|
|
|
| 18 Jul 2016 09:34 AM |
OH you want it stacked?
local lastpart,part for i = 0, 127 do part = Instance.new("Part", parent) part.Size = Vector3.new(2, 2, 1) part.BrickColor = BrickColor.palette(i) part.Name = part.BrickColor.Name part.Position = (lastpart and lastpart.Position+Vector3.new(0,2,0) or start) --Goes upwards now lastpart=part end |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2016 09:44 AM |
nuu take my PART EXPLODER 2000 :D
https://www.roblox.com/PART-EXPLODER-2000-item?id=458906631 |
|
|
| Report Abuse |
|
|