matekaOSF2

Untitled

Jul 17th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. local library = {
  2. windowcount = 0;
  3. }
  4.  
  5. function library:CreateWindow(text)
  6. library.windowcount = library.windowcount + 1
  7. local toggled = false
  8. local MADCITYX = Instance.new("ScreenGui")
  9. local Frame = Instance.new("Frame")
  10. local func = Instance.new("Frame")
  11. local TextLabel = Instance.new("TextLabel")
  12. local MinBtn = Instance.new("TextButton")
  13. local Diamond = Instance.new("ImageLabel")
  14. local Panel = Instance.new("Frame")
  15. local Strip = Instance.new("Frame")
  16. local BtnFrames = Instance.new("Frame")
  17. local UIListLayout = Instance.new("UIListLayout")
  18.  
  19. MADCITYX.Name = "InfernusLIB"
  20. MADCITYX.Parent = game.CoreGui
  21. MADCITYX.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22. MADCITYX.ResetOnSpawn = false
  23.  
  24. func.Name = "func"
  25. func.Parent = MADCITYX
  26. func.Active = true
  27. func.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
  28. func.BorderSizePixel = 0
  29. func.Position = UDim2.new(0.0650496334, 0, 0.0970371962, 0)
  30. func.Selectable = true
  31. func.Size = UDim2.new(0, 177, 0, 43)
  32. func.Selectable = true
  33. func.Active = true
  34. func.Draggable = true
  35.  
  36. TextLabel.Parent = func
  37. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. TextLabel.BackgroundTransparency = 1.000
  39. TextLabel.Position = UDim2.new(0.231792897, 0, 0.224843681, 0)
  40. TextLabel.Size = UDim2.new(0, 93, 0, 15)
  41. TextLabel.Font = Enum.Font.SourceSansBold
  42. TextLabel.Text = text
  43. TextLabel.TextColor3 = Color3.fromRGB(125, 255, 201)
  44. TextLabel.TextScaled = true
  45. TextLabel.TextSize = 14.000
  46. TextLabel.TextWrapped = true
  47.  
  48. MinBtn.Name = "MinBtn"
  49. MinBtn.Parent = func
  50. MinBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. MinBtn.BackgroundTransparency = 1.000
  52. MinBtn.Position = UDim2.new(0.754991829, 0, -0.0223813951, 0)
  53. MinBtn.Size = UDim2.new(0, 54, 0, 34)
  54. MinBtn.Font = Enum.Font.SourceSansBold
  55. MinBtn.Text = "-"
  56. MinBtn.TextColor3 = Color3.fromRGB(125, 255, 201)
  57. MinBtn.TextScaled = true
  58. MinBtn.TextSize = 14.000
  59. MinBtn.TextWrapped = true
  60. MinBtn.MouseButton1Click:Connect(function()
  61. if toggled == false then
  62. toggled = true
  63. MinBtn.Text = "-"
  64. Panel.Visible = true
  65. else
  66. toggled = false
  67. MinBtn.Text = "+"
  68. Panel.Visible = false
  69. end
  70. end)
  71.  
  72. Diamond.Name = "Diamond"
  73. Diamond.Parent = func
  74. Diamond.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  75. Diamond.BackgroundTransparency = 1.000
  76. Diamond.Position = UDim2.new(0.0254812501, 0, 0.0999122635, 0)
  77. Diamond.Size = UDim2.new(0.172413319, 0, 0.141544059, 0)
  78. Diamond.SizeConstraint = Enum.SizeConstraint.RelativeXX
  79. Diamond.Image = "rbxassetid://4851247883"
  80. Diamond.ScaleType = Enum.ScaleType.Fit
  81.  
  82. Panel.Name = "Panel"
  83. Panel.Parent = func
  84. Panel.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
  85. Panel.BorderSizePixel = 0
  86. Panel.Position = UDim2.new(0, 0, 0.966999829, 0)
  87. Panel.Size = UDim2.new(0, 177, 0, 0)
  88.  
  89. Strip.Name = "Strip"
  90. Strip.Parent = func
  91. Strip.BackgroundColor3 = Color3.fromRGB(125, 255, 201)
  92. Strip.BorderSizePixel = 0
  93. Strip.Position = UDim2.new(-3.44831392e-07, 0, 0.768718243, 0)
  94. Strip.Size = UDim2.new(0.999999821, 0, 0.127149001, 0)
  95.  
  96. BtnFrames.Name = "BtnFrames"
  97. BtnFrames.Parent = Panel
  98. BtnFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  99. BtnFrames.BackgroundTransparency = 1.000
  100. BtnFrames.Position = UDim2.new(0, 0, 0.014581793, 0)
  101. BtnFrames.Size = UDim2.new(0, 176, 0, 300)
  102.  
  103. UIListLayout.Parent = BtnFrames
  104. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  105. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  106. UIListLayout.Padding = UDim.new(0, 5)
  107.  
  108. local epicLibrary = {}
  109.  
  110. function epicLibrary:Button(text, callback)
  111. local Button = Instance.new("TextButton")
  112. text = text or "Button"
  113. callback = callback or function() end
  114. Button.Name = text
  115. Button.Parent = BtnFrames
  116. Button.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
  117. Button.BorderSizePixel = 0
  118. Button.Position = UDim2.new(0.00651116669, 0, -0.135416672, 0)
  119. Button.Size = UDim2.new(0, 165, 0, 38)
  120. Button.Font = Enum.Font.SourceSansBold
  121. Button.Text = text
  122. Button.TextColor3 = Color3.fromRGB(125, 255, 201)
  123. Button.TextSize = 14.000
  124. Panel.Size = Panel.Size + UDim2.new(0, 0, 0, 44.7)
  125.  
  126. Button.MouseButton1Click:Connect(callback)
  127. end
  128.  
  129. return epicLibrary
  130. end
  131.  
  132. return library
Add Comment
Please, Sign In to add comment