local Button = script.Parent
local FrameHello = script.Parent.Parent.FrameHello
function onClick()
if FrameHello.Visible == false then
FrameHello.Visible = true
Button.Text = "Close"
else
FrameHello.Visible = false
Button.Text = "Hello"
end
end
Button.MouseButton1Click:Connect(onClick)
local Button = script.Parent
FrameHello = script.Parent.Parent.FrameHello
function onClick()
if FrameHello.Visible == false then
FrameHello.Visible = true
Button.Text = "Hello."
end
end
Button.MouseButton1Click:Connect(onClick)