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: Is this possible, and how?

Previous Thread :: Next Thread 
RobuxLife is not online. 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
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
17 Jul 2016 09:10 PM
local part = Instance.new("Part")
part.BrickColor = BrickColor.Random()
part.Name = part.BrickColor.Name
Report Abuse
RobuxLife is not online. 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
African_Black is not online. African_Black
Joined: 04 Mar 2013
Total Posts: 680
18 Jul 2016 09:19 AM
I can help
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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 is not online. 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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
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
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