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 » Scripting Helpers
Home Search
 

Re: Giving a Brick's BrickColor a color3

Previous Thread :: Next Thread 
COMMANDERREX12345345 is not online. COMMANDERREX12345345
Joined: 18 Jun 2009
Total Posts: 1316
13 Aug 2013 12:54 PM
Can someone help me? I want to give a brick a Color3 color..
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
13 Aug 2013 12:55 PM
You dont.
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
13 Aug 2013 12:56 PM
BrickColor.new(r,g,b)?
Report Abuse
COMMANDERREX12345345 is not online. COMMANDERREX12345345
Joined: 18 Jun 2009
Total Posts: 1316
13 Aug 2013 12:57 PM
^ I'll try that one...
Report Abuse
robber4 is not online. robber4
Joined: 20 Jun 2008
Total Posts: 203
13 Aug 2013 12:59 PM
brick.BrickColor = BrickColor.new(Color3.new(0,0,0))
Report Abuse
djboy is not online. djboy
Joined: 16 Mar 2008
Total Posts: 794
13 Aug 2013 01:00 PM
x.BrickColor = BrickColor.new("Lime green")
Report Abuse
robber4 is not online. robber4
Joined: 20 Jun 2008
Total Posts: 203
13 Aug 2013 01:01 PM
He wants to give the Brick a color3 value, which is

brick.BrickColor = BrickColor.new(Color3.new(0,0,0))
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Aug 2013 01:15 PM
my friend knows a way
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
13 Aug 2013 01:19 PM
There IS a file mesh (in my models) that let's you use Vertex Color, but you need to set the scale to 2 * Size
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
13 Aug 2013 01:20 PM
You could do this:

Part.Color = Color3.new(1,1,1)

, but that would snap the color to the closest BrickColor, so it wouldn't be exact.
A better method would be this:

1) Insert SpecialMesh into Part
2) Set MeshType = "FileMesh"
3) Set MeshId = "http://roblox.com/asset/?id=9856898" (This is a mesh for a 0.5x0.5x0.5 cube)
4) Set Scale = Part.Size * 2
5) Set TextureId = "http://roblox.com/asset/?id=104374536" (This is a purely white image)
6) Set the VertexColor = Vector3.new(Red,Green,Blue) (Note: VertexColor uses Vector3 for some reason)

And voila! Any color you want!

~ Oh, I'm sorry, did I break your concentration? ~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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