Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont the button transparency go to 1 and be unactive?

Asked by 10 years ago
01if 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
08elseif 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
15end

that is the script... it works for the textbox(hell, heavon) but it wont work for the button...

1 answer

Log in to vote
0
Answered by 10 years ago

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!

01if 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
08elseif 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
15end
0
it says that it is not a valid member... User#600 0 — 10y
0
Try 1.0? Y0UNGK1NG 0 — 10y
0
no User#600 0 — 10y
0
didnt work User#600 0 — 10y
View all comments (2 more)
0
Hmmm Let me see something else Y0UNGK1NG 0 — 10y
0
Try the script of my reply i edited some things up... Y0UNGK1NG 0 — 10y
Ad

Answer this question