SHARE
TWEET

GUI Help

OwenNichols Oct 18th, 2019 (edited) 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top