Advertisement
XYZZAYNAY

Open and close, Script GUI

Jul 8th, 2021
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Open And Close Script
  2.  
  3. (Open)
  4.  
  5. local frame = script.Parent.Parent.Frame
  6.  
  7. script.parent.MouseButton1Click:Connect(function()
  8. frame.Visible = true
  9.  
  10. end)
  11.  
  12.  
  13. (Close)
  14.  
  15. script.Parent.MouseButton1Click:Connect(function()
  16. script.Parent.Parent.Visible = false
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement