Advertisement
Guest User

Open/Close Button Script

a guest
Oct 21st, 2017
735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Shop = script.Parent.GuiButton.Shop
  2.  
  3. script.Parent.GuiButton.MouseButton1Click:connect(function()
  4. if Shop.Visible == false then
  5. Shop.Visible = true
  6. script.Parent.GuiButton.Text = "CLOSE"
  7. elseif Shop.Visible == true then
  8. script.Parent.GuiButton.Text = "OPEN"
  9. Shop.Visible = false
  10. end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement