RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script that opens and and closes a frame when a ui button is clicked"
local button = script.Parent local frame = script.Parent.Parent.Frame local open = true local function onButtonClick() if open then open = false frame.Visible = true else open = true frame.Visible = false end end button.MouseButton1Click:Connect(onButtonClick)