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: Background Color to BrickColor

Previous Thread :: Next Thread 
ToontownROXYA is not online. ToontownROXYA
Joined: 02 Aug 2010
Total Posts: 434
12 Jan 2013 09:35 PM
Hey I got a fairly hard question :3. How do you get a Frame/Whatever in a GUI's background color and make it a brickcolor, to then transfer to another brick.
Sort of like this :

game.Workspace.Part.BrickColor = BrickColor.new(game.Players.ToontownROXYA.PlayerGui.ScreenGui.Frame.BackgroundColor)

Anyone? I knew that would definitely not work, since B.C. in a Frame is a Color3 value. Thanks!
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
12 Jan 2013 09:38 PM
Uh what i would do is put a string value called Color inside the frame and then write the color you want to when you want to call the color you could just do
...BrickColor = game.Players.Gui.Frame.Color
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
12 Jan 2013 09:39 PM
there is not a definitive way to convert Color3 values into BrickColors, simply because not all Color3s are BrickColors.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:53 PM
In my experience it generally snaps to the closest one.
Report Abuse
ToontownROXYA is not online. ToontownROXYA
Joined: 02 Aug 2010
Total Posts: 434
12 Jan 2013 10:08 PM
Its a customization GUI... So, the string value is out, I, making a fool of myself, tried all the different methods, even tostring...
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 10:12 PM
Last time I went from Color3 to BrickColor I remember just going

Blah.BrickColor = BrickColor.new(Color3.new(WHATEVERVALUEHERE))

I assume you have already tried that with the BackgroundColor?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 10:13 PM
Woops, ignore that, In the top post you already said it xD, I am stupid late at night.
Report Abuse
ToontownROXYA is not online. ToontownROXYA
Joined: 02 Aug 2010
Total Posts: 434
12 Jan 2013 10:52 PM
Lol
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 10:53 PM
Yea, I don't think when tired, although that method you posted has worked for me in the past so I don't know why it wouldn't for you.
Report Abuse
ToontownROXYA is not online. ToontownROXYA
Joined: 02 Aug 2010
Total Posts: 434
12 Jan 2013 10:53 PM
Found a way, I just used a C3 Value, and then created like points, if c3.Value == afnaksdfnalk then etc here.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 10:55 PM
Sounds painful.
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