Advertisement
JuiceCanX

still chill

Sep 14th, 2020 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("ImageButton")
  3. local Button = Instance.new("ImageButton")
  4. local TextLabel = Instance.new("TextLabel")
  5. local UIListLayout = Instance.new("UIListLayout")
  6.  
  7. local Library = {}
  8.  
  9. function Library:CreateMain()
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local Frame = Instance.new("Frame")
  12. local UIListLayout = Instance.new("UIListLayout")
  13.  
  14. --Properties:
  15. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. Frame.Name = "Frame"
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  21. Frame.BackgroundTransparency = 1
  22. Frame.Size = UDim2.new(0, 200, 0, 409)
  23. Frame.Image = "rbxassetid://2790389767"
  24. Frame.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  25. Frame.ScaleType = Enum.ScaleType.Slice
  26. Frame.SliceCenter = Rect.new(8, 8, 248, 248)
  27.  
  28. Button.Name = "Button"
  29. Button.Parent = Frame
  30. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  31. Button.BackgroundTransparency = 1
  32. Button.Size = UDim2.new(0, 200, 0, 40)
  33. Button.Image = "rbxassetid://2790382281"
  34. Button.ImageColor3 = Color3.new(0, 0.666667, 0.498039)
  35. Button.ScaleType = Enum.ScaleType.Slice
  36. Button.SliceCenter = Rect.new(4, 4, 252, 252)
  37.  
  38. TextLabel.Parent = Button
  39. TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  40. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  41. TextLabel.BackgroundTransparency = 1
  42. TextLabel.BorderSizePixel = 0
  43. TextLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  44. TextLabel.Size = UDim2.new(1, -5, 1, -5)
  45. TextLabel.Font = Enum.Font.GothamSemibold
  46. TextLabel.Text = "Button"
  47. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  48. TextLabel.TextSize = 14
  49.  
  50. UIListLayout.Parent = Frame
  51. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  52. UIListLayout.Padding = UDim.new(0, 5)
  53. -- Scripts:
  54.  
  55. function GamerLibrary:NewButton(Name)
  56. local TextButton = Instance.new("TextButton")
  57. Button.Parent = Frame
  58. Button.Name = "Button"
  59. Button.Parent = Frame
  60. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  61. Button.BackgroundTransparency = 1
  62. Button.Size = UDim2.new(0, 200, 0, 40)
  63. Button.Image = "rbxassetid://2790382281"
  64. Button.ImageColor3 = Color3.new(0, 0.666667, 0.498039)
  65. Button.ScaleType = Enum.ScaleType.Slice
  66. Button.SliceCenter = Rect.new(4, 4, 252, 252)
  67. end
  68. return GamerLibrary;
  69. end
  70. return Library;
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement