Advertisement
OwenNichols

GUI Help

Oct 18th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- GUI HELP FOR GUI TO LUA SCRIPTING
  2.  
  3. --To make the button activate a script
  4.  
  5. BUTTONNAMEHERE.MouseButton1Down:connect(function()
  6. Scripthere
  7. end)
  8.  
  9. --To make Main draggable
  10.  
  11. YOURMAINFRAMENAME.Draggable = true
  12.  
  13. --Make it Open
  14.  
  15. NameOFBUTTON.MouseButton1Down:connect(function()
  16. NameOFURMAINGUI.Visible = true
  17. NAMEOFOPENFrame.Visible = false
  18. end)
  19.  
  20. --Make it Close
  21.  
  22. CLOSEBUTTONNAME.MouseButton1Down:connect(function()
  23. NAMEOFOPENBUTTON.Visible = true
  24. MAINGUINAME.Visible = false
  25. end)
  26.  
  27. --Then search for
  28.  
  29. GUINAME.Parent = game.Workspace
  30.  
  31. --Change Workspace to CoreGui
  32.  
  33. GUINAME.Parent = game.CoreGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement