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

TextButton.Active = false does not work, still sending input information?

Asked by 3 years ago

this script is supposed to make the text button invisible and unusable, it does make it completely invisible however the input is still being sent regardless of the active = false.

I am very confused.

The "OH MY GOD" line is the input received from hitting the button.

script.Parent.Active = false


script.Parent.Parent.Leave.BackgroundTransparency = 1
script.Parent.Parent.Leave.TextTransparency = 1


script.Parent.MouseButton1Click:Connect(function()


    script.Parent.Parent.Leave.Active = true
    script.Parent.Parent.Leave.BackgroundTransparency = 0
    script.Parent.Parent.Leave.TextTransparency = 0



end)

If anyone can help or give insight if this a glitch or if im missing something, I appreciate it.

-snipperdiaper

2 answers

Log in to vote
0
Answered by
pevdn 32
3 years ago
Edited 3 years ago

Simple. In line 1, you have done "script.Parent.Active = false

While in all other lines you have done "script.Parent.Parent"

Let me know if this fixes it.

Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Actually, You Just Need to Change the Visible Check to False

Like this One:

script.Parent.Visible = false


script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Leave.Visible = true
end)

Hope It Help!

Answer this question