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)
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)
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)