✓ Accepted answer
You should put the ScreenGui in StarterGui.
Then, put a TextButton(or ImageButton) and the TextBox in the ScreenGui.
Then, you should put a LocalScript into it.
Here is the code(with the explanation):
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.TextBox.Visible = not script.Parent.Parent.TextBox.Visible
end)
This will make if script.Parent.Parent.TextBox.Visible is true(visible) and the button is pressed, then it will make it invisible(false(the opposite of true).
If script.Parent.Parent.TextBox.Visible is false(invisible) and the button is pressed, then it will make it visible(ftruethe opposite of false).
Sorry for the bad explanation.
1 comment
Thanks lol!