I don't understand how to code for GUIs. I'm trying to have pressing 1 button lead to another button appearing, and the original disappearing, but I have no idea how to do that. This is my first time ever scripting, so I'm really lost.
-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textButton = Instance.new("TextButton")
textButton.Parent = screenGui
textButton.Position = UDim2.new(.25, 0, .25, 0)
textButton.Size = UDim2.new(.1, 0, .1, 0)
textButton.BackgroundColor3 = BrickColor.White().Color
textButton.Text = "Click Me!"
textButton.MouseButton1Down:connect(function()
textButton2 = Instance.new("TextButton")
textButton2.Parent = screenGui
textButton2.Position = UDim2.new(.25, 0, .25, 0)
textButton2.Size = UDim2.new(.1, 0, .1, 0)
textButton2.BackgroundColor3 = BrickColor.White().Color
textButton2.Text = "Hi!"
Also, how do you make pressing a specific GUI make other GUI's disappear, and have GUIs give players int values? All I need is a written explanation, not a code.
