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: GUI Color?

Previous Thread :: Next Thread 
lordyoman is not online. lordyoman
Joined: 10 Jun 2010
Total Posts: 426
14 Jul 2012 03:29 PM
Secured works just fine and the text turns green, But for bomb planted and breached then both come up as balck? Help?

while true do
wait(.1)
if script.Parent.Secure.Value == true then
script.Parent.Text = "Secured"
script.Parent.TextColor3 = Color3.new(0,128,0)
elseif script.Parent.Planted.Value == true then
script.Parent.Text = "BOMB PLANTED"
script.Parent.TextColor3 = Color3.new(255,255,0)
elseif script.Parent.Breached.Value == true then
script.Parent.Text = "BREACHED"
script.Parent.TextColor3 = Color3.new(255,0,0)
end
end
Report Abuse
ghostrider333 is not online. ghostrider333
Joined: 24 May 2010
Total Posts: 1095
14 Jul 2012 03:32 PM
TextColor3 = Color3.new("Whatever color")

Problem? ~Ghostrider333 - Helping Robloxians~
Need help with a model your building? Follow the link!
http://www.roblox.com/Forum/ShowPost.aspx?PostID=72417451
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
14 Jul 2012 03:32 PM
When using a GUI and changing the color you do this:

GUI.TextColor3 = BrickColor.new("Color Here").Color
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
14 Jul 2012 03:32 PM
A if loop first checks the first statement if that is true then it will use the code inside that.
Else it will go to the other elseif statement. If that also isn't true then it will go to the third.

The problem with this is that Planted, Breached and Secure are true and never false.

Or

You must update your Textcolors using this :

Color3.new(Color1/255, Color2/255, Color3/255)

Glad to help,
Velibor
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
14 Jul 2012 03:34 PM
THERE'S NO SUCH THING AS AN IF LOOP!!!
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
14 Jul 2012 03:35 PM
If is a conditional statement, not a loop.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
14 Jul 2012 03:36 PM
White, knows it.. I lol'd when I saw that, XD.
Report Abuse
lordyoman is not online. lordyoman
Joined: 10 Jun 2010
Total Posts: 426
14 Jul 2012 03:40 PM
@CeaselessSoul, Thank you it worked perfect :D.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
14 Jul 2012 03:42 PM
No problem.
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