Gui button not working

So I have this GUI, and the script is a child of it


function click()
	script.Parent.Parent.Enabled = false


And yet it does not work. Clicking the button does nothing. How??

1 Like

Button clicks arent passed over the client-server boundary, make it a local script.

1 Like

It still refuses to work even after that.

Well if you changed it to a local script, make sure the button has the propriety “Active” enabled.