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

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

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

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.

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!

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