Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// XramonramX \\--
- script.Parent.MouseButton1Click:connect(function() -- The function of when the Players Clicks.
- if script.Parent.Parent.Box.Visible == false then -- This tells wither it is open or not.
- script.Parent.Text = "Close" -- Tells us that it is open.
- script.Parent.Parent.Box.Visible = true -- Makes the box visible.
- else -- Otherwise
- script.Parent.Text = "Menu" -- Tells us that it is closed.
- script.Parent.Parent.Box.Visible = false -- Makes the box Invisible
- end -- Ends the If statement.
- end) -- Ends the function in general.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement