Advertisement
RamonDEVex

Untitled

Dec 26th, 2019
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. --// XramonramX \\--
  2.  
  3. script.Parent.MouseButton1Click:connect(function() -- The function of when the Players Clicks.
  4. if script.Parent.Parent.Box.Visible == false then -- This tells wither it is open or not.
  5. script.Parent.Text = "Close" -- Tells us that it is open.
  6. script.Parent.Parent.Box.Visible = true -- Makes the box visible.
  7. else -- Otherwise
  8. script.Parent.Text = "Menu" -- Tells us that it is closed.
  9. script.Parent.Parent.Box.Visible = false -- Makes the box Invisible
  10. end -- Ends the If statement.
  11. end) -- Ends the function in general.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement