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 9 years ago
if script.Parent.Parent.Parent.TeamColor == BrickColor.new('Really red') then
    script.Parent.Angel.TextTransparency = 1
    script.Parent.Angel.BackgroundTransparency = 1
    script.Parent.Angel.Active = false
    script.Parent.Heavon.TextTransparency = 1
    script.Parent.Heavon.BackgroundTransparency = 1
    script.Parent.Heavon.Active = false
elseif script.Parent.Parent.Parent.TeamColor == BrickColor.new('New Yeller') then
    script.Parent.Demon.TextTransparency = 1
    script.Parent.Demon.BackgroundTransparency = 1
    script.Parent.Demon.Active = false
    script.Parent.Hell.TextTransparency = 1
    script.Parent.Hell.BackgroundTransparency = 1
    script.Parent.Hell.Active = false
end

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 9 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!

if script.Parent.Parent.Parent.TeamColor == BrickColor.new('Really red') then
    script.Parent.Angel.TextButtonTransparency = 1.0
    script.Parent.Angel.BackgroundTransparency = 1.0
    script.Parent.Angel.Active = true
    script.Parent.Heavon.TextButtonTransparency = 1.0
    script.Parent.Heavon.BackgroundTransparency = 1.0
    script.Parent.Heavon.Active = true
elseif script.Parent.Parent.Parent.TeamColor == BrickColor.new('New Yeller') then
    script.Parent.Demon.TextButtonTransparency = 1.0
    script.Parent.Demon.BackgroundTransparency = 1.0
    script.Parent.Demon.Active = true
    script.Parent.Hell.TextButtonTransparency = 1.0
    script.Parent.Hell.BackgroundTransparency = 1.0
    script.Parent.Hell.Active = true
end
0
it says that it is not a valid member... User#600 0 — 9y
0
Try 1.0? Y0UNGK1NG 0 — 9y
0
no User#600 0 — 9y
0
didnt work User#600 0 — 9y
View all comments (2 more)
0
Hmmm Let me see something else Y0UNGK1NG 0 — 9y
0
Try the script of my reply i edited some things up... Y0UNGK1NG 0 — 9y
Ad

Answer this question