DogeOfTheDoges

gay lib

Apr 8th, 2021 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. --[[
  2.  
  3. local ui = loadstring(game:HttpGet("https://pastebin.com/raw/2Xbj73m3"))()
  4.  
  5. ]]
  6. local GayLib = Instance.new("ScreenGui")
  7. GayLib.Name = math.random(1, 99999999)
  8. GayLib.Parent = game.CoreGui
  9. GayLib.ZIndexBehavior = Enum.ZIndexBehavior.Global
  10. local uis = game:GetService("UserInputService")
  11. local Mouse = game.Players.LocalPlayer:GetMouse()
  12. local Library = {
  13. windows = 0;
  14. }
  15. local toggled = false
  16.  
  17. local function getNextWindowPos()
  18. local biggest = 0;
  19. local ok = nil;
  20. for i,v in pairs(GayLib:GetChildren()) do
  21. if v.Position.X.Offset>biggest then
  22. biggest = v.Position.X.Offset
  23. ok = v;
  24. end
  25. end
  26. if biggest == 0 then
  27. biggest = biggest + 5;
  28. else
  29. biggest = biggest + ok.Size.X.Offset + 5;
  30. end
  31.  
  32. return biggest;
  33. end
  34.  
  35. function Library:CreateWindow(title)
  36. Library.windows = Library.windows + 1;
  37. local BodyYSize = 0
  38. local InputService = game:GetService("UserInputService")
  39.  
  40. local TopMain = Instance.new("ImageLabel")
  41. local Body = Instance.new("Frame")
  42. local Container = Instance.new("Frame")
  43. local UIListLayout = Instance.new("UIListLayout")
  44. local TitleText = Instance.new("TextLabel")
  45. local ToggleVisible = Instance.new("TextButton")
  46.  
  47. local function Resize(Value)
  48. BodyYSize = BodyYSize + Value
  49.  
  50. Container.Size = UDim2.new(0, 150, 0, BodyYSize)
  51. Body.Size = UDim2.new(0, 172, 0, BodyYSize)
  52. end
  53.  
  54. local dragging = false;
  55. TopMain.Name = "TopMain"
  56. TopMain.Parent = GayLib
  57. TopMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TopMain.BackgroundTransparency = 1.000
  59. TopMain.Position = UDim2.new(0, getNextWindowPos() + 10, 0, 10)
  60. TopMain.Size = UDim2.new(0, 172, 0, 27)
  61. TopMain.Image = "rbxassetid://6653133593"
  62. TopMain.Active = true
  63. local dragging
  64. local dragInput
  65. local dragStart
  66. local startPos
  67. local function update(input)
  68. local delta = input.Position - dragStart
  69. TopMain:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y), "Out", "Sine", 0.05, true)
  70. end
  71. TopMain.InputBegan:Connect(function(input)
  72. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  73. dragging = true
  74. dragStart = input.Position
  75. startPos = TopMain.Position
  76.  
  77. input.Changed:Connect(function()
  78. if input.UserInputState == Enum.UserInputState.End then
  79. dragging = false
  80. end
  81. end)
  82. end
  83. end)
  84. TopMain.InputChanged:Connect(function(input)
  85. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  86. dragInput = input
  87. end
  88. end)
  89. uis.InputChanged:Connect(function(input)
  90. if input == dragInput and dragging then
  91. update(input)
  92. end
  93. end)
  94. Body.Name = "Body"
  95. Body.Parent = TopMain
  96. Body.BackgroundColor3 = Color3.fromRGB(21, 13, 118)
  97. Body.BackgroundTransparency = 0.500
  98. Body.BorderSizePixel = 0
  99. Body.Position = UDim2.new(0, 0, 0.980000019, 0)
  100. Body.Size = UDim2.new(0, 172, 0, 156)
  101. Body.ClipsDescendants = true
  102.  
  103. Container.Name = "Container"
  104. Container.Parent = Body
  105. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. Container.BackgroundTransparency = 1.000
  107. Container.BorderSizePixel = 0
  108. Container.Position = UDim2.new(0.0639534891, 0, 0.0478453636, 0)
  109. Container.Size = UDim2.new(0, 150, 0, 148)
  110. Container.ClipsDescendants = true
  111.  
  112. UIListLayout.Parent = Container
  113. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  114. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  115. UIListLayout.Padding = UDim.new(0, 5)
  116.  
  117. TitleText.Name = "TitleText"
  118. TitleText.Parent = TopMain
  119. TitleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120. TitleText.BackgroundTransparency = 1.000
  121. TitleText.Size = UDim2.new(0, 172, 0, 25)
  122. TitleText.ZIndex = 2
  123. TitleText.Font = Enum.Font.GothamBlack
  124. TitleText.Text = title
  125. TitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. TitleText.TextSize = 20.000
  127.  
  128. ToggleVisible.Name = "ToggleVisible"
  129. ToggleVisible.Parent = TopMain
  130. ToggleVisible.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  131. ToggleVisible.BackgroundTransparency = 1.000
  132. ToggleVisible.Position = UDim2.new(0, 145, 0, 2)
  133. ToggleVisible.Rotation = 90.000
  134. ToggleVisible.Size = UDim2.new(0, 25, 0, 25)
  135. ToggleVisible.Font = Enum.Font.GothamBlack
  136. ToggleVisible.Text = ">"
  137. ToggleVisible.TextColor3 = Color3.fromRGB(111, 198, 255)
  138. ToggleVisible.TextSize = 14.000
  139. ToggleVisible.MouseButton1Down:Connect(function()
  140. if toggled then
  141. toggled = false
  142. ToggleVisible.Rotation = -90
  143. Body:TweenSize(UDim2.new(0, 172,0, 0), "InOut", "Quad", 0.2)
  144. else
  145. toggled = true
  146. ToggleVisible.Rotation = 90
  147. Body:TweenSize(UDim2.new(0, 172,0, BodyYSize), "InOut", "Quad", 0.2)
  148. end
  149. end)
  150.  
  151. local a = {}
  152.  
  153. --[[
  154. function a:CreateButton(text)
  155. --thing
  156. end
  157. ]]
  158.  
  159. function a:CreateButton(text, callback)
  160. local callback = callback or function() end
  161.  
  162. Resize(49)
  163.  
  164. local Button = Instance.new("TextButton")
  165. local UICorner = Instance.new("UICorner")
  166.  
  167. Button.Name = "Button"
  168. Button.Parent = Container
  169. Button.BackgroundColor3 = Color3.fromRGB(24, 9, 71)
  170. Button.BorderColor3 = Color3.fromRGB(27, 42, 53)
  171. Button.BorderSizePixel = 0
  172. Button.Position = UDim2.new(0.139534891, 0, 0.0866141766, 0)
  173. Button.Size = UDim2.new(0, 123, 0, 31)
  174. Button.Font = Enum.Font.GothamBold
  175. Button.TextColor3 = Color3.fromRGB(230, 230, 230)
  176. Button.TextSize = 17.000
  177. Button.Text = text
  178.  
  179. UICorner.Parent = Button
  180.  
  181. Button.MouseButton1Click:Connect(function()
  182. pcall(callback)
  183. end)
  184. end
  185.  
  186. function a:CreateLabel(fontsize, text)
  187. Resize(49)
  188.  
  189. local Label = Instance.new("TextLabel")
  190. local UICorner = Instance.new("UICorner")
  191.  
  192. Label.Name = "Label"
  193. Label.Parent = Container
  194. Label.Active = true
  195. Label.BackgroundColor3 = Color3.fromRGB(24, 9, 71)
  196. Label.BorderColor3 = Color3.fromRGB(27, 42, 53)
  197. Label.BorderSizePixel = 0
  198. Label.Position = UDim2.new(0.139534891, 0, 0.0866141766, 0)
  199. Label.Selectable = true
  200. Label.Size = UDim2.new(0, 150, 0, 28)
  201. Label.Font = Enum.Font.GothamBold
  202. Label.TextColor3 = Color3.fromRGB(230, 230, 230)
  203. Label.TextSize = fontsize
  204. Label.Text = text
  205.  
  206. UICorner.Parent = Label
  207. end
  208.  
  209. return a;
  210. end
  211.  
  212. return Library;
Add Comment
Please, Sign In to add comment