Advertisement
zephpsian

Untitled

Sep 27th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. local Lib = {}
  2. local ac = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local whatdoicallthisagain = Instance.new("Frame")
  5. local toplabel = Instance.new("TextLabel")
  6. local uilayoutthing1 = Instance.new("Frame")
  7. local coolbutton = Instance.new("TextButton")
  8. local UIListLayout = Instance.new("UIListLayout")
  9. --Properties:
  10. ac.Name = "ac"
  11. ac.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  12. ac.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. whatdoicallthisagain.Name = "what do i call this again"
  15. whatdoicallthisagain.Parent = Frame
  16. whatdoicallthisagain.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  17. whatdoicallthisagain.BorderSizePixel = 0
  18. whatdoicallthisagain.Size = UDim2.new(0, 0, 0, 0)
  19.  
  20. toplabel.Name = "toplabel"
  21. toplabel.Parent = whatdoicallthisagain
  22. toplabel.AnchorPoint = Vector2.new(0.5, 0.5)
  23. toplabel.BackgroundColor3 = Color3.new(1, 1, 1)
  24. toplabel.BackgroundTransparency = 1
  25. toplabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  26. toplabel.Size = UDim2.new(0.800000012, 0, 0.5, 0)
  27. toplabel.Font = Enum.Font.Code
  28. toplabel.Text = ">w<"
  29. toplabel.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
  30. toplabel.TextScaled = true
  31. toplabel.TextSize = 14
  32. toplabel.TextWrapped = true
  33.  
  34. uilayoutthing1.Name = "uilayoutthing1"
  35. uilayoutthing1.Parent = whatdoicallthisagain
  36. uilayoutthing1.BackgroundColor3 = Color3.new(0.0156863, 0.0156863, 0.0156863)
  37. uilayoutthing1.BackgroundTransparency = 0.5
  38. uilayoutthing1.BorderSizePixel = 0
  39. uilayoutthing1.Position = UDim2.new(0, 0, 1, 0)
  40. uilayoutthing1.Size = UDim2.new(1, 0, 1, 0)
  41.  
  42. coolbutton.Name = "coolbutton"
  43. coolbutton.Parent = uilayoutthing1
  44. coolbutton.AnchorPoint = Vector2.new(0.5, 0.5)
  45. coolbutton.BackgroundColor3 = Color3.new(1, 1, 1)
  46. coolbutton.BackgroundTransparency = 1
  47. coolbutton.Position = UDim2.new(0.5, 0, 0.5, 0)
  48. coolbutton.Size = UDim2.new(0.800000012, 0, 0.5, 0)
  49. coolbutton.Font = Enum.Font.Code
  50. coolbutton.Text = "click to print uwu"
  51. coolbutton.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
  52. coolbutton.TextScaled = true
  53. coolbutton.TextSize = 14
  54. coolbutton.TextWrapped = true
  55.  
  56. UIListLayout.Parent = Frame
  57. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  58. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  59. UIListLayout.Padding = UDim.new(0, 5)
  60. -- Scripts:
  61.  
  62. local Bar = whatdoicallthisagain:Clone()
  63. local Button = Bar.uilayoutthing1:Clone()
  64. local Label = Bar.toplabel:Clone()
  65.  
  66. Bar:ClearAllChildren()
  67. ac:ClearAllChildren()
  68.  
  69. Frame.Parent = ac
  70. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  71. Frame.BackgroundTransparency = 1
  72. Frame.BorderSizePixel = 0
  73. Frame.Position = UDim2.new(0.00999999978, 0, 0.0199999996, 0)
  74. Frame.Size = UDim2.new(0.980000019, 0, 0.0599999987, 0)
  75. local PosFrame = Frame
  76. function Lib:NewBar(Text)
  77.  
  78. local Bar2 = Bar:Clone()
  79. local TopLabel = Label:Clone()
  80. TopLabel.Parent = Bar2
  81.  
  82. Bar2.Size = UDim2.new(0.15, 0,1, 0)
  83. Bar2.toplabel.Text = Text
  84. return Bar2
  85. end
  86.  
  87. function Lib:NewButton(Text, Func, Parent)
  88. local ExistingButtons = 0
  89. for _,gui in pairs(Parent:GetChildren()) do
  90. ExistingButtons = ExistingButtons + 1
  91. end
  92.  
  93. local Button2 = Button:Clone()
  94. Button2.coolbutton.Text = Text
  95. Button2.Parent = Parent
  96. Button2.Position = UDim2.new(0, 0, 1 * ExistingButtons, 0)
  97. Button2.coolbutton.MouseButton1Down:connect(function()
  98. loadstring(Func)()
  99. end)
  100. end
  101.  
  102. return Lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement