Advertisement
9_cVv

GUI Help edit

Jan 3rd, 2020
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. OPEN/CLOSE BUTTON:
  2.  
  3. script.Parent.MouseButton1Down:connect(function()
  4. if frame.Visible == false then
  5. frame.Visible = true
  6. else
  7. frame.Visible = false
  8. end
  9. end)
  10.  
  11. TO MAKE THE BUTTON ACTIVATE THE SCRIPT:
  12.  
  13. BUTTONNAMEHERE.MouseButton1Down:connect(function()
  14. Scripthere
  15. end)
  16.  
  17. Search you're Main and make it draggable like that
  18.  
  19. YOURMAINFRAMENAME.Draggable = true
  20.  
  21.  
  22. To make it open you to
  23.  
  24. NameOFBUTTON.MouseButton1Down:connect(function()
  25. NameOFURMAINGUI.Visible = true
  26. NAMEOFOPENFrame.Visible = false
  27. end)
  28.  
  29. To make it close you to
  30.  
  31. CLOSEBUTTONNAME.MouseButton1Down:connect(function()
  32. NAMEOFOPENBUTTON.Visible = true
  33. MAINGUINAME.Visible = false
  34. end)
  35.  
  36. Then scroll up and search for
  37.  
  38. GUINAME.Parent = game.Workspace
  39. change Workspace to CoreGui
  40.  
  41. GUINAME.Parent = game.CoreGui
  42.  
  43. [FOR GUI IF IT'S SCRIPTED TO LUA]
  44.  
  45. credits scelt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement