Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

6 comments

0

it says that it is not a valid member...

0

Try 1.0?

0

no

0

didnt work

0

Hmmm Let me see something else

0

Try the script of my reply i edited some things up...

This discussion is preserved as it was. New answers, comments, and votes are closed.