01 | if script.Parent.Parent.Parent.TeamColor = = BrickColor.new( 'Really red' ) then |
02 | script.Parent.Angel.TextTransparency = 1 |
03 | script.Parent.Angel.BackgroundTransparency = 1 |
04 | script.Parent.Angel.Active = false |
05 | script.Parent.Heavon.TextTransparency = 1 |
06 | script.Parent.Heavon.BackgroundTransparency = 1 |
07 | script.Parent.Heavon.Active = false |
08 | elseif script.Parent.Parent.Parent.TeamColor = = BrickColor.new( 'New Yeller' ) then |
09 | script.Parent.Demon.TextTransparency = 1 |
10 | script.Parent.Demon.BackgroundTransparency = 1 |
11 | script.Parent.Demon.Active = false |
12 | script.Parent.Hell.TextTransparency = 1 |
13 | script.Parent.Hell.BackgroundTransparency = 1 |
14 | script.Parent.Hell.Active = false |
15 | end |
that is the script... it works for the textbox(hell, heavon) but it wont work for the button...
Well , see you're stating that TextTransparency = 1 -- Means it will be The text that will be transparent.
If you state it as TextButtonTransparency = 1 - Now it's Stating the TextButton (Button) is transparent
Here I edited the text up below!
01 | if script.Parent.Parent.Parent.TeamColor = = BrickColor.new( 'Really red' ) then |
02 | script.Parent.Angel.TextButtonTransparency = 1.0 |
03 | script.Parent.Angel.BackgroundTransparency = 1.0 |
04 | script.Parent.Angel.Active = true |
05 | script.Parent.Heavon.TextButtonTransparency = 1.0 |
06 | script.Parent.Heavon.BackgroundTransparency = 1.0 |
07 | script.Parent.Heavon.Active = true |
08 | elseif script.Parent.Parent.Parent.TeamColor = = BrickColor.new( 'New Yeller' ) then |
09 | script.Parent.Demon.TextButtonTransparency = 1.0 |
10 | script.Parent.Demon.BackgroundTransparency = 1.0 |
11 | script.Parent.Demon.Active = true |
12 | script.Parent.Hell.TextButtonTransparency = 1.0 |
13 | script.Parent.Hell.BackgroundTransparency = 1.0 |
14 | script.Parent.Hell.Active = true |
15 | end |