Advertisement
4zx16

Open/Close

Nov 21st, 2021 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || OPEN/CLOSE || ONLY CHANGE LOCAL MAIN!
  3. ]]
  4. local main = script.Parent.Parent.main
  5.  
  6. local function OnClick()
  7.     if main.Visible == false then
  8.         main.Visible = true
  9.     else
  10.         main.Visible = false
  11.     end
  12. end
  13. script.Parent.MouseButton1Click:Connect(OnClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement