|
| 14 Oct 2012 10:06 AM |
Okay, so you know how there's a green, blue, and red type of frame that looks like dialog? I want it so if my team color is blue, the frame type is "ChatBlue". I just did this, but I'm almost certain it wouldn't work: script.Parent.Style = "ChatBlue" if script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor = "Bright blue"
It's a big GUI btw.
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 10:12 AM |
Not a single view after ten minutes? Bump, even though it's still at the top of the page.
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 10:21 AM |
Bump. 14 minutes. 8 views. This morning is super slow.
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
Parthax
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 6941 |
|
|
| 14 Oct 2012 10:27 AM |
Your code is backwards. "script.Parent.Style = "ChatBlue" if script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor = "Bright blue""
should be:
if script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor == BrickColor.new("Bright blue") then script.Parent.Style = "ChatBlue"
-ραятнαχ- |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 10:27 AM |
How about:
h = game.Players.findfirstchild("Player") if h.TeamColor == "Bright blue" then script.Parent.Style == ChatBlue end
I'm not sure but it might work. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 10:29 AM |
| actually :findfirstchild not .findfirstchild and change == ChatBlue to =ChatBlue |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 10:34 AM |
Thanks Parthax, I had to add an end after what you said, though o3o
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|