Okay I am experimenting with GUI's and I'm trying to hide or destroy a GUI button when clicked. I've made this code but it doesn't work.
function onClick()
game.Players.LocalPlayer.PlayerGui.ScreenGui:Destroy()
end
LocalScript.Parent.MouseButton1Click:connect(onClick)

1 comment
Thanks.