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