What im trying to do is take the TextButton and when you click it a textbox and the button disappears. my code is:
game.Players[p.name].PlayerGui.ScreenGui.Textbutton.MouseClick:connect(function(p)
game.Players[p.name].PlayerGui.ScreenGui.TextButton.Visible = not game.StarterGui.ScreenGui.TextButton.Visible
game.Players[p.name].PlayerGui.ScreenGui.TextBox.Visible = not game.StarterGui.ScreenGui.TextBox.Visible
end)

1 comment
You should add more context about what you want to do.