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: How to convert Color3 to BrickColor?

Previous Thread :: Next Thread 
spaceranger7 is not online. spaceranger7
Joined: 18 Jul 2010
Total Posts: 347
23 Jun 2015 02:40 PM
Like the color of a PointLight to the color of a Part.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
23 Jun 2015 02:42 PM
BrickColor.new(Color3.new(1, 1, 1))

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
23 Jun 2015 02:42 PM
brickcolor.color
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
23 Jun 2015 02:43 PM
PointLight.Color = Part.Color
Report Abuse
TheInnovative is not online. TheInnovative
Joined: 31 Dec 2008
Total Posts: 23486
23 Jun 2015 02:43 PM
Part.BrickColor = BrickColor.new(PointLight.Color)
Report Abuse
Nerdream is not online. Nerdream
Joined: 06 Jun 2015
Total Posts: 81
23 Jun 2015 02:43 PM
Light.Color = workspace.Part.BrickColor.Color

Use .Color on BrickColor to convert it to Color3.
Report Abuse
spaceranger7 is not online. spaceranger7
Joined: 18 Jul 2010
Total Posts: 347
23 Jun 2015 02:44 PM
Well why won't this work?

LightHolder.BrickColor.Color = BrickColor.new(Color.BackgroundColor3)

or this

LightHolder.BrickColor.Color = Color.BackgroundColor3
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
23 Jun 2015 02:44 PM
I think I misread that, use what power said.
Report Abuse
TheInnovative is not online. TheInnovative
Joined: 31 Dec 2008
Total Posts: 23486
23 Jun 2015 02:45 PM
Or what I said if he is using the PointLight's color
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
23 Jun 2015 02:46 PM
But remember, converting a Color3 to a BrickColor will just make the BrickColor round to the nearest color.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
TheInnovative is not online. TheInnovative
Joined: 31 Dec 2008
Total Posts: 23486
23 Jun 2015 02:46 PM
LightHolder.BrickColor= BrickColor.new(LightHolder.Color)


I'm assuming LightHolder is the PointLight :P
Report Abuse
spaceranger7 is not online. spaceranger7
Joined: 18 Jul 2010
Total Posts: 347
23 Jun 2015 02:46 PM
Thanks @TheInnovative! Your solution worked properly.
Report Abuse
TheInnovative is not online. TheInnovative
Joined: 31 Dec 2008
Total Posts: 23486
23 Jun 2015 02:46 PM
Wait derp no it's not, use LightHolder.BrickColor= BrickColor.new(PointLight.Color)

just define PointLight :P
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
23 Jun 2015 02:47 PM
It isn't really a solution, but oh well. :)

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
spaceranger7 is not online. spaceranger7
Joined: 18 Jul 2010
Total Posts: 347
23 Jun 2015 02:48 PM
Well it worked, that's all I needed. I was off by a little and TheInno filled in the part I needed.
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