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: Trying to Change Color of GUI

Previous Thread :: Next Thread 
coldnature is not online. coldnature
Joined: 04 Nov 2010
Total Posts: 2034
31 Jul 2012 10:10 AM
How do I change the color of a GUI to white?

I'm creating a textbutton:

tb = Instance.new("TextButton")
tb.Parent = person.PartyChat.BeingInvited
tb.Size = UDim2.new(0,160,0,40)
tb.BackgroundColor3 = Color3.new(?,?,?)


Apparently Color3 = 0-1 but I don't understand the corolation...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
31 Jul 2012 10:11 AM
Just use the numbers you wanted, only divide it by 255.

† KMXD † ~ Evil Duck Overlord, bent on world domination.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
31 Jul 2012 10:11 AM
tb.BackgroundColor3 = Color3.new(255/255,255/255,255/255)
Report Abuse
Sharpshooter26 is not online. Sharpshooter26
Joined: 26 May 2010
Total Posts: 5166
31 Jul 2012 11:05 AM
Or ("White")
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
31 Jul 2012 11:32 AM
function Color(r,g,b)
return Color3.new(r/255,g/255,b/255);
end

GUI.BackgroundColor3 = Color(25,50,75)
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