Guest User

Untitled

a guest
Oct 16th, 2018
90
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. local Frame = script.Parent.Parent.Frame
  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)
Add Comment
Please, Sign In to add comment