i have tried it. i tried this code Box = script.Parent:WaitForChild("Box") Button = script.Parent:WaitForChild("OpenAndClose") Open = false
Button.MouseButton1Down:connect(function(open) if Open == false then Button.Text = "Close" Box.Visible = true Open = true elseif Open == true then Button.Text = "Open" Box.Visible = false Open = false end end)?
and many otheres but they dont work please elp.
Make sure this is a local script:
Box = script.Parent:WaitForChild("Box") Button = script.Parent:WaitForChild("OpenAndClose") Open = false Button.MouseButton1Down:connect(function(open) if Open == false then Button.Text = "Close" Box.Visible = true Open = true elseif Open == true then Button.Text = "Open" Box.Visible = false Open = false end end)