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: TextColor3

Previous Thread :: Next Thread 
Alyte is not online. Alyte
Joined: 24 Oct 2011
Total Posts: 10090
12 Aug 2015 08:28 PM
I know this may seem easy but I never messed around with changing text labels colors on a surface gui because I rarely use surface gui's. I know its RGB but idk how to use it

is it like this?

script.Parent.TextColor3.r = 0
script.Parent.TextColor3.g = 255
script.Parent.TextColor3.b = 0


lel get rekt
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
12 Aug 2015 08:29 PM
script.Parent.TextColor = Color3.new(1/255, 1/255, 1/255)
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
12 Aug 2015 08:30 PM
script.Parent.TextColor3 = Color3.new(r, g, b)

All 3 of those values are decimals from 0 to 1. Say you wanted color 44, 22, 33 on the color wheel though, you would divide those by 255 to get the decimal.

So:

script.Parent.TextColor3 = Color3.new(44/255, 22/255, 33/255)
Report Abuse
Alyte is not online. Alyte
Joined: 24 Oct 2011
Total Posts: 10090
12 Aug 2015 08:35 PM
like this?

local color = Color3.new(0, 1, 0)
script.Parent.TextColor3 = color


lel get rekt
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:36 PM
yes


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Alyte is not online. Alyte
Joined: 24 Oct 2011
Total Posts: 10090
12 Aug 2015 08:37 PM
yay it works but
how do i make another line change it to really red instead of lime green


lel get rekt
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:38 PM
...

R,G,B

R = 1,0,0
G = 0,1,0
B = 0,0,1


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Alyte is not online. Alyte
Joined: 24 Oct 2011
Total Posts: 10090
12 Aug 2015 08:38 PM
like this
how to make it Really Red

local color = Color3.new(0, 1, 0)


lel get rekt
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
12 Aug 2015 08:46 PM
stop helping this skid, we all know his real intentions: he wants to hurt people
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
12 Aug 2015 09:47 PM
script.Parent.TextColor3 = BrickColor.new('Really red').Color;
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