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

Not active TextButton still pressable?

I have SurfaceGui with TextButton on it. And when button becomes inactive, it still can be pressed. How do i make the button not pressable?

function click()
	script.Parent.Active = false
	print("Button pressed!")
	wait(5)
	script.Parent.Active = true
end

script.Parent.MouseButton1Click:connect(click)

2 answers

Try this

function click()
    script.Parent.Active = false
	script.Parent.Visible = false
    print("Button pressed!")
    wait(5)
	script.Parent.Visible = true
    script.Parent.Active = true
end

script.Parent.MouseButton1Click:connect(click)


2 comments

0

Wow... you just fixed AgentL3r's script... you so sm4rt...

0

Well if your more smart than us, why do you have a problem with this script?

function click()
script.Parent.Active = false
script.Visible = false
print("Button pressed!")
wait(5)
script.Visible = true
script.Parent.Active = true
end
script.Parent.MouseButton1Click:connect(click)

Try that.

:o)

1 comment

0

Umm.... make SCRIPT invisible?

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