Advertisement
AlexGamerBLOX

Open and Close FrameButton ROBLOX

Dec 20th, 2023 (edited)
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | Source Code | 0 0
  1. --Open Frame--
  2.  
  3. local frame = script.Parent.Parent.Frame
  4. local open = false
  5.  
  6. script.Parent.MouseButton1Click:Connect(function()
  7.     if frame.Visible == false then
  8.         frame.Visible = true
  9.     end
  10. end)
  11.  
  12. --Close Frame--
  13.  
  14. script.Parent.MouseButton1Click:Connect(function()
  15.     script.Parent.Parent.Visible = false
  16. end)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement