Joriangames

Open/Close Button

Jul 17th, 2020
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local frame = script.Parent.Parent.Frame
  2.  
  3. script.Parent.MouseButton1Click:Connect(function()
  4.     if frame.Visible == false then
  5.         frame.Visible = true
  6.     else
  7.         frame.Visible = false
  8.     end
  9. end)
  10.  
  11. --if you want to know how to use this script, go watch my tutorial about how you can make a open/close button: https://www.youtube.com/watch?v=XVwYgTLlrkM
  12. --or watch my tutorial about how to make a Gamepass Shop Gui: https://youtu.be/zXkaaXHPvuU
Add Comment
Please, Sign In to add comment