Advertisement
PerfectShowsYT

Untitled

Dec 29th, 2017
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. local Button = script.Parent
  2. Frame = script.Parent.Parent.THENAMEOFTHEFRAMETHATYOUWANTTOOPENANDCLOSE
  3.  
  4. function onClick()
  5. if Frame.Visible == false then
  6. Frame.Visible = true
  7. elseif Frame.Visible == true then
  8. Frame.Visible = false
  9. end
  10. end
  11.  
  12. Button.MouseButton1Click:connect(onClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement