Parellel_X

Untitled

Apr 19th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. local library = {}
  2.  
  3. function library:CreateWindow()
  4. local CoolestUiInTown = Instance.new("ScreenGui")
  5. local Top = Instance.new("Frame")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local UIGridLayout = Instance.new("UIGridLayout")
  9. local windoname = Instance.new("TextLabel")
  10. local HS = Instance.new("TextButton")
  11. local red = Instance.new("Frame")
  12. local green = Instance.new("Frame")
  13.  
  14. CoolestUiInTown.Name = "CoolestUiInTown"
  15. CoolestUiInTown.Parent = game.CoreGui
  16.  
  17. Top.Name = "Top"
  18. Top.Parent = CoolestUiInTown
  19. Top.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  20. Top.BorderSizePixel = 0
  21. Top.Position = UDim2.new(0.234489053, 0, 0.137802616, 0)
  22. Top.Size = UDim2.new(0, 136, 0, 20)
  23. Top.Active = true
  24. Top.Selectable = true
  25. Top.Draggable = true
  26.  
  27. Frame.Parent = Top
  28. Frame.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  29. Frame.BorderSizePixel = 0
  30. Frame.Position = UDim2.new(0, 0, 0.999999642, 0)
  31. Frame.Size = UDim2.new(0, 136, 0, 52)
  32.  
  33. Frame_2.Parent = Frame
  34. Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. Frame_2.BackgroundTransparency = 1.000
  36. Frame_2.Position = UDim2.new(0, 0, 0, 3)
  37. Frame_2.Size = UDim2.new(0, 136, 0, 20)
  38.  
  39. windoname.Name = "windoname"
  40. windoname.Parent = Top
  41. windoname.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  42. windoname.BackgroundTransparency = 1.000
  43. windoname.Position = UDim2.new(0.139705881, 0, 0, 0)
  44. windoname.Size = UDim2.new(0, 95, 0, 20)
  45. windoname.Font = Enum.Font.ArialBold
  46. windoname.Text = "window title"
  47. windoname.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. windoname.TextSize = 14.000
  49.  
  50. HS.Name = "HS"
  51. HS.Parent = Top
  52. HS.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. HS.BackgroundTransparency = 1.000
  54. HS.Position = UDim2.new(0.838235319, 0, 0, 0)
  55. HS.Size = UDim2.new(0, 21, 0, 19)
  56. HS.Font = Enum.Font.ArialBold
  57. HS.Text = "-"
  58. HS.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. HS.TextSize = 14.000
  60.  
  61. red.Name = "red"
  62. red.Parent = Top
  63. red.BackgroundColor3 = Color3.fromRGB(210, 46, 47)
  64. red.BackgroundTransparency = 1.000
  65.  
  66. green.Name = "green"
  67. green.Parent = Top
  68. green.BackgroundColor3 = Color3.fromRGB(45, 192, 45)
  69. green.BackgroundTransparency = 1.000
  70.  
  71. UIGridLayout.Parent = Frame_2
  72. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  73. UIGridLayout.CellSize = UDim2.new(0, 136, 0, 20)
  74.  
  75. local script = Instance.new('LocalScript', HS)
  76.  
  77. script.Parent.MouseButton1Click:Connect(function()
  78. if script.Parent.Parent.HS.Text == ("-") then
  79. wait()
  80. script.Parent.Parent.HS.Visible = false
  81. script.Parent.Parent.Frame.Frame.Visible = false
  82. script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 136,0, 0))
  83. wait(1)
  84. script.Parent.Parent.HS.Text = ("+")
  85. script.Parent.Parent.HS.Visible = true
  86. else
  87. if script.Parent.Parent.HS.Text == ("+") then
  88. wait()
  89. script.Parent.Parent.HS.Visible = false
  90. script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 136,0, 77))
  91. wait(1)
  92. script.Parent.Parent.Frame.Frame.Visible = true
  93. script.Parent.Parent.HS.Text = ("-")
  94. script.Parent.Parent.HS.Visible = true
  95. end
  96. end
  97. end)
  98.  
  99. local script = Instance.new('LocalScript', Top)
  100.  
  101. local mouse = game.Players.LocalPlayer:GetMouse()
  102. local player = game.Players.LocalPlayer
  103. local gui = script.Parent.Parent.Top
  104. mouse.KeyDown:connect(function(key)
  105. if key == "j" then
  106. if gui.Visible == false then
  107.  
  108. gui.Visible = true
  109. else
  110.  
  111. gui.Visible = false
  112. end
  113.  
  114.  
  115. end
  116. end)
  117. end
  118.  
  119. local EpicLibrary = {}
  120.  
  121. function EpicLibrary:CreateButton(text)
  122. local button = Instance.new("Frame")
  123. local buttonbody = Instance.new("ImageLabel")
  124. local Title = Instance.new("TextButton")
  125.  
  126. button.Name = "button"
  127. button.Parent = Frame_2
  128. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. button.BackgroundTransparency = 1.000
  130. button.Position = UDim2.new(0, 0, 0.0434782617, 0)
  131. button.Size = UDim2.new(0, 136, 0, 20)
  132.  
  133. buttonbody.Name = "buttonbody"
  134. buttonbody.Parent = button
  135. buttonbody.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  136. buttonbody.BackgroundTransparency = 1.000
  137. buttonbody.Position = UDim2.new(0.0439999998, 0, 0, 0)
  138. buttonbody.Size = UDim2.new(0, 124, 0, 20)
  139. buttonbody.Image = "rbxassetid://3570695787"
  140. buttonbody.ImageColor3 = Color3.fromRGB(40, 40, 40)
  141. buttonbody.ScaleType = Enum.ScaleType.Slice
  142. buttonbody.SliceCenter = Rect.new(100, 100, 100, 100)
  143. buttonbody.SliceScale = 0.120
  144.  
  145. Title.Name = "Title"
  146. Title.Parent = buttonbody
  147. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  148. Title.BackgroundTransparency = 1.000
  149. Title.Size = UDim2.new(0, 124, 0, 20)
  150. Title.AutoButtonColor = false
  151. Title.Font = Enum.Font.ArialBold
  152. Title.Text = text
  153. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. Title.TextSize = 14.000
  155. return EpicLibrary
  156. end
  157.  
  158. local CoolLibrary = {}
  159.  
  160. function CoolLibrary:CreateToggle
  161. local toggle = Instance.new("Frame")
  162. local Name = Instance.new("TextLabel")
  163. local onoff = Instance.new("ImageLabel")
  164. local Click = Instance.new("TextButton")
  165.  
  166. toggle.Name = "toggle"
  167. toggle.Parent = Frame_2
  168. toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  169. toggle.BackgroundTransparency = 1.000
  170. toggle.Position = UDim2.new(0, 0, 0.0434782617, 0)
  171. toggle.Size = UDim2.new(0, 136, 0, 20)
  172.  
  173. Name.Name = "Name"
  174. Name.Parent = toggle
  175. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  176. Name.BackgroundTransparency = 1.000
  177. Name.BorderSizePixel = 0
  178. Name.Position = UDim2.new(0.0881177112, 0, 0, 0)
  179. Name.Size = UDim2.new(0, 118, 0, 19)
  180. Name.Font = Enum.Font.ArialBold
  181. Name.Text = "toggle"
  182. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  183. Name.TextSize = 14.000
  184. Name.TextXAlignment = Enum.TextXAlignment.Left
  185.  
  186. onoff.Name = "onoff"
  187. onoff.Parent = Name
  188. onoff.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. onoff.BackgroundTransparency = 1.000
  190. onoff.Position = UDim2.new(0.813559294, 0, 0, 0)
  191. onoff.Size = UDim2.new(0, 22, 0, 19)
  192. onoff.Image = "rbxassetid://3570695787"
  193. onoff.ImageColor3 = Color3.fromRGB(210, 46, 47)
  194. onoff.ScaleType = Enum.ScaleType.Slice
  195. onoff.SliceCenter = Rect.new(100, 100, 100, 100)
  196. onoff.SliceScale = 0.120
  197.  
  198. Click.Name = "Click"
  199. Click.Parent = onoff
  200. Click.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. Click.BackgroundTransparency = 1.000
  202. Click.Size = UDim2.new(0, 22, 0, 19)
  203. Click.Font = Enum.Font.SourceSans
  204. Click.Text = ""
  205. Click.TextColor3 = Color3.fromRGB(0, 0, 0)
  206. Click.TextSize = 14.000
  207.  
  208. local script = Instance.new('LocalScript', Click)
  209.  
  210. script.Parent.MouseButton1Click:Connect(function()
  211. local lol = script.Parent.Parent.Parent.Frame
  212. local color = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
  213. if lol.ImageColor3 == (color.red.BackgroundColor3) then
  214. lol.ImageColor3 = (color.green.BackgroundColor3)
  215. else
  216. lol.ImageColor3 = (color.red.BackgroundColor3)
  217. end
  218. end)
  219. return CoolLibrary
  220. end
  221. return library
  222.  
  223.  
  224. main:CreateButton("lol")
Advertisement
Add Comment
Please, Sign In to add comment