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: How could I do this?

Previous Thread :: Next Thread 
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
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
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
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
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
14 Oct 2012 10:21 AM
Bump. 14 minutes. 8 views. This morning is super slow.

Tactical Rainboom Inbound
Report Abuse
Parthax is not online. 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
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
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
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
14 Oct 2012 10:29 AM
actually :findfirstchild not .findfirstchild and change == ChatBlue to =ChatBlue
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
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
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