How to make a simple open/close frame Gui | Roblox Studio

Опубликовано: 15 Май 2026
на канале: Lil Peng
69
4

You can learn from this video on how to do a super simple open and close a frame

here's the code

local SGui = script.Parent
local Frame = SGui:WaitForChild("Frame")
local CloseButton = Frame:WaitForChild("TextButton")
local Button = SGui:WaitForChild("TextButton")

CloseButton.MouseButton1Up:Connect(function()
Frame.Visible = false
end)

Button.MouseButton1Up:Connect(function()
Frame.Visible = true
end)


Enjoy the rest