Advertisement
AbstractPoo

kinda working finally

Mar 22nd, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.56 KB | None | 0 0
  1. local Library = {}
  2. OptionCount = 2
  3. function Library:Create(Title)
  4. local ScreenGui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  5. ScreenGui.Name = "AbstractUi"
  6. ScreenGui.ResetOnSpawn = false
  7. local Container = Instance.new("Frame")
  8. local Main = Instance.new("Frame")
  9. local Options = Instance.new("Frame")
  10. local UIListLayout_2 = Instance.new("UIListLayout")
  11. local Name = Instance.new("TextLabel")
  12.  
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Container.Name = "Container"
  16. Container.Parent = ScreenGui
  17. Container.BackgroundColor3 = Color3.new(0, 0, 0)
  18. Container.BorderSizePixel = 0
  19. Container.Position = UDim2.new(0.295238107, 0, 0.298507452, 0)
  20. Container.Size = UDim2.new(0, 405, 0, 243)
  21. Container.BackgroundColor3 = Color3.new(0.0901961, 0.0901961, 0.0941176)
  22.  
  23. Name.Name = ""
  24. Name.Parent = Container
  25. Name.BackgroundColor3 = Color3.new(0, 0, 0)
  26. Name.BorderSizePixel = 0
  27. Name.Size = UDim2.new(0, 405, 0, 30)
  28. Name.Font = Enum.Font.GothamBold
  29. Name.Text = Title
  30. Name.TextColor3 = Color3.new(0.392157, 0.509804, 0.666667)
  31. Name.TextScaled = true
  32. Name.TextSize = 14
  33. Name.TextWrapped = true
  34. Name.TextXAlignment = Enum.TextXAlignment.Left
  35.  
  36. Options.Name = "Options"
  37. Options.Parent = Container
  38. Options.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  39. Options.BorderColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
  40. Options.BorderSizePixel = 0
  41. Options.Position = UDim2.new(0, 0, 0.123825319, 0)
  42. Options.Size = UDim2.new(0, 100, 0, 213)
  43.  
  44. UIListLayout_2.Parent = Options
  45. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  46. UIListLayout_2.Padding = UDim.new(0.0500000007, 0)
  47. Main.Name = "Main"
  48. Main.Parent = Container
  49. Main.BackgroundColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
  50. Main.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  51. Main.BorderSizePixel = 0
  52. Main.Position = UDim2.new(0.246913582, 0, 0.12384259, 0)
  53. Main.Size = UDim2.new(0, 305, 0, 213)
  54. local OptionsLibrary = {}
  55. function OptionsLibrary:AddOption(Option)
  56. local TextButton = Instance.new("TextButton", Options)
  57. TextButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  58. TextButton.BorderColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  59. TextButton.BorderSizePixel = 0
  60. TextButton.Size = UDim2.new(0, 100, 0, 40)
  61. TextButton.Font = Enum.Font.GothamBold
  62. TextButton.Text = Option
  63. TextButton.TextColor3 = Color3.new(1, 1, 1)
  64. TextButton.TextScaled = true
  65. TextButton.TextSize = 14
  66. TextButton.TextWrapped = true
  67. TextButton.MouseButton1Click:Connect(function()
  68. OptionCount = OptionCount + 1
  69. game.Players.LocalPlayer.PlayerGui.AbstractUi.Container.Main[Option].ZIndex = OptionCount
  70. end)
  71.  
  72. local Frame = Instance.new("Frame", Main)
  73. Frame.Name = Option
  74. Frame.BackgroundColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
  75. Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  76. Frame.BorderSizePixel = 0
  77. Frame.Size = Main.Size
  78. local UIListLayout = Instance.new("UIListLayout", Main[Option])
  79. local UIPadding = Instance.new("UIPadding", Main[Option])
  80. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  81. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  82. UIListLayout.Padding = UDim.new(0.0500000007, 0)
  83. UIPadding.PaddingTop = UDim.new(0.0500000007, 0)
  84.  
  85. local CheatsLib = {}
  86.  
  87. function CheatsLib:AddButton(Name, Callback)
  88. local Buttoncontainer = Instance.new("Frame", Frame)
  89. Buttoncontainer.Name = "Button container"
  90. Buttoncontainer.BackgroundColor3 = Color3.new(0, 0, 0)
  91. Buttoncontainer.BorderColor3 = Color3.new(0, 0, 0)
  92. Buttoncontainer.BorderSizePixel = 2
  93. Buttoncontainer.Position = UDim2.new(0.0409836061, 0, 0.0500000417, 0)
  94. Buttoncontainer.Size = UDim2.new(0, 280, 0, 20)
  95. local TextButton = Instance.new("TextButton")
  96. TextButton.Parent = Buttoncontainer
  97. TextButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  98. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  99. TextButton.BorderSizePixel = 2
  100. TextButton.Position = UDim2.new(0, 0, 7.62939464e-07, 0)
  101. TextButton.Size = UDim2.new(0, 280, 0, 20)
  102. TextButton.Font = Enum.Font.GothamSemibold
  103. TextButton.Text = Name
  104. TextButton.TextColor3 = Color3.new(1, 1, 1)
  105. TextButton.TextScaled = true
  106. TextButton.TextSize = 14
  107. TextButton.TextWrapped = true
  108. TextButton.TextXAlignment = Enum.TextXAlignment.Left
  109. TextButton.MouseButton1Click:Connect(Callback)
  110. end
  111. function CheatsLib:AddToggle(Title, State, Callback)
  112. local Togglecontainer = Instance.new("Frame", Frame)
  113. Togglecontainer.Name = "Toggle container"
  114. Togglecontainer.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  115. Togglecontainer.BorderColor3 = Color3.new(0, 0, 0)
  116. Togglecontainer.BorderSizePixel = 2
  117. Togglecontainer.Position = UDim2.new(-0.101639345, 0, 0.191396788, 0)
  118. Togglecontainer.Size = UDim2.new(0, 280, 0, 20)
  119. local ImageButton = Instance.new("ImageButton")
  120. ImageButton.Parent = Togglecontainer
  121. ImageButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  122. ImageButton.Position = UDim2.new(0.935000002, 0, 0.100000001, 0)
  123. ImageButton.Size = UDim2.new(0, 16, 0, 16)
  124. ImageButton.ZIndex = 2
  125. ImageButton.ImageColor3 = Color3.new(1, 0, 0)
  126. local TextLabel = Instance.new("TextLabel")
  127. TextLabel.Parent = Togglecontainer
  128. TextLabel.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  129. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  130. TextLabel.BorderSizePixel = 0
  131. TextLabel.Size = UDim2.new(0, 274, 0, 20)
  132. TextLabel.Font = Enum.Font.GothamSemibold
  133. TextLabel.Text = Title
  134. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  135. TextLabel.TextScaled = true
  136. TextLabel.TextSize = 14
  137. TextLabel.TextWrapped = true
  138. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  139. TextLabel.Position = UDim2.new(0.021428572, 0, 0, 0)
  140. if State then
  141. ImageButton.BackgroundColor3 = Color3.new(0, 1, 0)
  142. else
  143. ImageButton.BackgroundColor3 = Color3.new(1, 0, 0)
  144. end
  145. ImageButton.MouseButton1Click:Connect(function()
  146. State = not State
  147. if State then
  148. ImageButton.BackgroundColor3 = Color3.new(0, 1, 0)
  149. Callback(true)
  150. else
  151. ImageButton.BackgroundColor3 = Color3.new(1, 0, 0)
  152. Callback(false)
  153. end
  154. end)
  155. end
  156. function CheatsLib:AddBox(Default, PlaceholderText, ClearTextOnFocus, Callback)
  157. local Textboxcontainer = Instance.new("Frame", Frame)
  158. local TextBox = Instance.new("TextBox")
  159. Textboxcontainer.Name = "Textbox container"
  160. Textboxcontainer.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  161. Textboxcontainer.BorderColor3 = Color3.new(0, 0, 0)
  162. Textboxcontainer.BorderSizePixel = 2
  163. Textboxcontainer.Position = UDim2.new(0.0327868834, 0, 0.376760572, 0)
  164. Textboxcontainer.Size = UDim2.new(0, 280, 0, 20)
  165.  
  166. TextBox.Parent = Textboxcontainer
  167. TextBox.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
  168. TextBox.BorderSizePixel = 0
  169. TextBox.Position = UDim2.new(0.021428572, 0, 0, 0)
  170. TextBox.Size = UDim2.new(0, 274, 0, 20)
  171. TextBox.Font = Enum.Font.GothamSemibold
  172. TextBox.PlaceholderColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  173. TextBox.Text = Default
  174. TextBox.TextColor3 = Color3.new(1, 1, 1)
  175. TextBox.TextSize = 18
  176. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  177. TextBox.PlaceholderText = PlaceholderText
  178. TextBox.ClearTextOnFocus = ClearTextOnFocus
  179. TextBox.FocusLost:Connect(function()
  180. Callback(TextBox.Text)
  181. end)
  182. end
  183. return CheatsLib
  184. end
  185. return OptionsLibrary
  186. end
  187. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement