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: Is Color3 not a changeable property?

Previous Thread :: Next Thread 
GeorgeTolsmaIII is not online. GeorgeTolsmaIII
Joined: 10 Feb 2011
Total Posts: 700
31 Aug 2015 03:29 PM
So, I have a value that is constantly changing, and I'm not sure why this doesn't work out...


while true do
wait(0)
if Seat.Damage.Value > 100 then
Text.TextColor3.r = 255
Text.TextColor3.g = 0
Text.TextColor3.b = 0
elseif Seat.Damage.Value < 99.9995 then
Text.TextColor3.r = 85
Text.TextColor3.g = 255
Text.TextColor3.b = 0


Obviously I did some short handing. Isn't really important to include, I know for sure the short hand is correct, as I used the same short hand to make the value as a changing display text for the Damage.Value on a brick.
Report Abuse
Someguy1002 is not online. Someguy1002
Joined: 27 Dec 2012
Total Posts: 195
31 Aug 2015 03:33 PM
You are doing it wrong, do it like this Text.TextColor3 = Color3.new(255, 0, 0) or Text.TextColor3 = Color3.new(85, 255, 0)
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
31 Aug 2015 03:35 PM
Someguy you are also doing it wrong, you need to divide the numbers by 255
Report Abuse
Someguy1002 is not online. Someguy1002
Joined: 27 Dec 2012
Total Posts: 195
31 Aug 2015 03:38 PM
Ahhh, my bad Text.TextColor3 = Color3.new(255/255, 0/255, 0/255) or Text.TextColor3 = Color3.new(85/255, 255/255, 0/255)
Report Abuse
GeorgeTolsmaIII is not online. GeorgeTolsmaIII
Joined: 10 Feb 2011
Total Posts: 700
31 Aug 2015 03:40 PM
Yeah, that looks familiar now. Thanks to the both of you.

Text.TextColor3 = Color3.new(255/255, 0/255, 0/255) - Looks kinda like that.

I don't use GUIs much, so I don't typically know what I'm doing. I remember that with bricks you do the .brickcolor = brickcolor.new(value) but I didn't really remember that GUI colors are the same.
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