Advertisement
Guest User

Close And Open

a guest
Mar 24th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Open Button Script (TextButton Only)
  2.  
  3. local frame = script.Parent.Parent.test
  4. local open = false
  5.  
  6.  
  7. script.Parent.MouseButton1Click:Connect(function()
  8. if frame.Visible == false then
  9. frame.Visible = true
  10. else
  11. frame.Visible = false
  12. end
  13. end)
  14.  
  15. Close Button Script (TextButton Only)
  16.  
  17. script.Parent.MouseButton1Click:connect(function()
  18. script.Parent.Parent.Visible = false
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement