RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"click ui button to open and close frame"
-- local script local button = script.Parent local frame = script.Parent.Frame local open = false local function toggleFrame() if open then frame.Visible = false button.Text = "Open" open = false else frame.Visible = true button.Text = "Close" open = true end end button.MouseButton1Click:Connect(toggleFrame)