Advertisement
xmaanzach

Open/Close Button

Apr 25th, 2018
3,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. local button = script.Parent
  2. local frame = script.Parent.Parent.Frame
  3.  
  4. button.MouseButton1Click:Connect(function()
  5. if frame.Visible == false then
  6. frame.Visible = true
  7. else
  8. frame.Visible = false
  9. end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement