Advertisement
kodythebossYT

2025

Mar 28th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.61 KB | None | 0 0
  1. -- // Coded by _notportal
  2. -- Example at bottom
  3. local Library = {};
  4. do
  5. Library = {
  6. Open = true;
  7. Accent = Color3.fromRGB(85, 134, 214);
  8. Pages = {};
  9. Sections = {};
  10. Flags = {};
  11. UnNamedFlags = 0;
  12. ThemeObjects = {};
  13. Holder = nil;
  14. Keys = {
  15. [Enum.KeyCode.LeftShift] = "LShift",
  16. [Enum.KeyCode.RightShift] = "RShift",
  17. [Enum.KeyCode.LeftControl] = "LCtrl",
  18. [Enum.KeyCode.RightControl] = "RCtrl",
  19. [Enum.KeyCode.LeftAlt] = "LAlt",
  20. [Enum.KeyCode.RightAlt] = "RAlt",
  21. [Enum.KeyCode.CapsLock] = "Caps",
  22. [Enum.KeyCode.One] = "1",
  23. [Enum.KeyCode.Two] = "2",
  24. [Enum.KeyCode.Three] = "3",
  25. [Enum.KeyCode.Four] = "4",
  26. [Enum.KeyCode.Five] = "5",
  27. [Enum.KeyCode.Six] = "6",
  28. [Enum.KeyCode.Seven] = "7",
  29. [Enum.KeyCode.Eight] = "8",
  30. [Enum.KeyCode.Nine] = "9",
  31. [Enum.KeyCode.Zero] = "0",
  32. [Enum.KeyCode.KeypadOne] = "Num1",
  33. [Enum.KeyCode.KeypadTwo] = "Num2",
  34. [Enum.KeyCode.KeypadThree] = "Num3",
  35. [Enum.KeyCode.KeypadFour] = "Num4",
  36. [Enum.KeyCode.KeypadFive] = "Num5",
  37. [Enum.KeyCode.KeypadSix] = "Num6",
  38. [Enum.KeyCode.KeypadSeven] = "Num7",
  39. [Enum.KeyCode.KeypadEight] = "Num8",
  40. [Enum.KeyCode.KeypadNine] = "Num9",
  41. [Enum.KeyCode.KeypadZero] = "Num0",
  42. [Enum.KeyCode.Minus] = "-",
  43. [Enum.KeyCode.Equals] = "=",
  44. [Enum.KeyCode.Tilde] = "~",
  45. [Enum.KeyCode.LeftBracket] = "[",
  46. [Enum.KeyCode.RightBracket] = "]",
  47. [Enum.KeyCode.RightParenthesis] = ")",
  48. [Enum.KeyCode.LeftParenthesis] = "(",
  49. [Enum.KeyCode.Semicolon] = ",",
  50. [Enum.KeyCode.Quote] = "'",
  51. [Enum.KeyCode.BackSlash] = "\\",
  52. [Enum.KeyCode.Comma] = ",",
  53. [Enum.KeyCode.Period] = ".",
  54. [Enum.KeyCode.Slash] = "/",
  55. [Enum.KeyCode.Asterisk] = "*",
  56. [Enum.KeyCode.Plus] = "+",
  57. [Enum.KeyCode.Period] = ".",
  58. [Enum.KeyCode.Backquote] = "`",
  59. [Enum.UserInputType.MouseButton1] = "MB1",
  60. [Enum.UserInputType.MouseButton2] = "MB2",
  61. [Enum.UserInputType.MouseButton3] = "MB3"
  62. };
  63. Connections = {};
  64. UIKey = Enum.KeyCode.End;
  65. ScreenGUI = nil;
  66. FSize = 13;
  67. UIFont = Font.new("rbxasset://fonts/families/Ubuntu.json");
  68. SettingsPage = nil;
  69. VisValues = {};
  70. Cooldown = false;
  71. }
  72.  
  73. -- // Ignores
  74. local Flags = {}; -- Ignore
  75. local Dropdowns = {}; -- Ignore
  76. local Pickers = {}; -- Ignore
  77. local VisValues = {}; -- Ignore
  78.  
  79. -- // Extension
  80. Library.__index = Library
  81. Library.Pages.__index = Library.Pages
  82. Library.Sections.__index = Library.Sections
  83. local LocalPlayer = game:GetService('Players').LocalPlayer;
  84. local Mouse = LocalPlayer:GetMouse();
  85. local TweenService = game:GetService("TweenService");
  86.  
  87. -- // Misc Functions
  88. do
  89. function Library:Connection(Signal, Callback)
  90. local Con = Signal:Connect(Callback)
  91. return Con
  92. end
  93. --
  94. function Library:Disconnect(Connection)
  95. Connection:Disconnect()
  96. end
  97. --
  98. function Library:Round(Number, Float)
  99. return Float * math.floor(Number / Float)
  100. end
  101. --
  102. function Library.NextFlag()
  103. Library.UnNamedFlags = Library.UnNamedFlags + 1
  104. return string.format("%.14g", Library.UnNamedFlags)
  105. end
  106. --
  107. function Library:RGBA(r, g, b, alpha)
  108. local rgb = Color3.fromRGB(r, g, b)
  109. local mt = table.clone(getrawmetatable(rgb))
  110.  
  111. setreadonly(mt, false)
  112. local old = mt.__index
  113.  
  114. mt.__index = newcclosure(function(self, key)
  115. if key:lower() == "transparency" then
  116. return alpha
  117. end
  118.  
  119. return old(self, key)
  120. end)
  121.  
  122. setrawmetatable(rgb, mt)
  123.  
  124. return rgb
  125. end
  126. --
  127. function Library:GetConfig()
  128. local Config = ""
  129. for Index, Value in pairs(self.Flags) do
  130. if
  131. Index ~= "ConfigConfig_List"
  132. and Index ~= "ConfigConfig_Load"
  133. and Index ~= "ConfigConfig_Save"
  134. then
  135. local Value2 = Value
  136. local Final = ""
  137. --
  138. if typeof(Value2) == "Color3" then
  139. local hue, sat, val = Value2:ToHSV()
  140. --
  141. Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, 1)
  142. elseif typeof(Value2) == "table" and Value2.Color and Value2.Transparency then
  143. local hue, sat, val = Value2.Color:ToHSV()
  144. --
  145. Final = ("rgb(%s,%s,%s,%s)"):format(hue, sat, val, Value2.Transparency)
  146. elseif typeof(Value2) == "table" and Value.Mode then
  147. local Values = Value.current
  148. --
  149. Final = ("key(%s,%s,%s)"):format(Values[1] or "nil", Values[2] or "nil", Value.Mode)
  150. elseif Value2 ~= nil then
  151. if typeof(Value2) == "boolean" then
  152. Value2 = ("bool(%s)"):format(tostring(Value2))
  153. elseif typeof(Value2) == "table" then
  154. local New = "table("
  155. --
  156. for Index2, Value3 in pairs(Value2) do
  157. New = New .. Value3 .. ","
  158. end
  159. --
  160. if New:sub(#New) == "," then
  161. New = New:sub(0, #New - 1)
  162. end
  163. --
  164. Value2 = New .. ")"
  165. elseif typeof(Value2) == "string" then
  166. Value2 = ("string(%s)"):format(Value2)
  167. elseif typeof(Value2) == "number" then
  168. Value2 = ("number(%s)"):format(Value2)
  169. end
  170. --
  171. Final = Value2
  172. end
  173. --
  174. Config = Config .. Index .. ": " .. tostring(Final) .. "\n"
  175. end
  176. end
  177. --
  178. return Config
  179. end
  180. --
  181. function Library:LoadConfig(Config)
  182. local Table = string.split(Config, "\n")
  183. local Table2 = {}
  184. for Index, Value in pairs(Table) do
  185. local Table3 = string.split(Value, ":")
  186. --
  187. if Table3[1] ~= "ConfigConfig_List" and #Table3 >= 2 then
  188. local Value = Table3[2]:sub(2, #Table3[2])
  189. --
  190. if Value:sub(1, 3) == "rgb" then
  191. local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  192. --
  193. Value = Table4
  194. elseif Value:sub(1, 3) == "key" then
  195. local Table4 = string.split(Value:sub(5, #Value - 1), ",")
  196. --
  197. if Table4[1] == "nil" and Table4[2] == "nil" then
  198. Table4[1] = nil
  199. Table4[2] = nil
  200. end
  201. --
  202. Value = Table4
  203. elseif Value:sub(1, 4) == "bool" then
  204. local Bool = Value:sub(6, #Value - 1)
  205. --
  206. Value = Bool == "true"
  207. elseif Value:sub(1, 5) == "table" then
  208. local Table4 = string.split(Value:sub(7, #Value - 1), ",")
  209. --
  210. Value = Table4
  211. elseif Value:sub(1, 6) == "string" then
  212. local String = Value:sub(8, #Value - 1)
  213. --
  214. Value = String
  215. elseif Value:sub(1, 6) == "number" then
  216. local Number = tonumber(Value:sub(8, #Value - 1))
  217. --
  218. Value = Number
  219. end
  220. --
  221. Table2[Table3[1]] = Value
  222. end
  223. end
  224. --
  225. for i, v in pairs(Table2) do
  226. if Flags[i] then
  227. if typeof(Flags[i]) == "table" then
  228. Flags[i]:Set(v)
  229. else
  230. Flags[i](v)
  231. end
  232. end
  233. end
  234. end
  235. --
  236. function Library:SetOpen(bool)
  237. if typeof(bool) == 'boolean' then
  238. Library.Open = bool;
  239. Library.ScreenGUI.Enabled = bool;
  240. Library.Holder.Visible = bool;
  241. end
  242. end;
  243. --
  244. function Library:IsMouseOverFrame(Frame)
  245. local AbsPos, AbsSize = Frame.AbsolutePosition, Frame.AbsoluteSize;
  246.  
  247. if Mouse.X >= AbsPos.X and Mouse.X <= AbsPos.X + AbsSize.X
  248. and Mouse.Y >= AbsPos.Y and Mouse.Y <= AbsPos.Y + AbsSize.Y then
  249.  
  250. return true;
  251. end;
  252. end;
  253. --
  254. function Library:ChangeAccent(Color)
  255. Library.Accent = Color
  256.  
  257. for obj, theme in next, Library.ThemeObjects do
  258. if theme:IsA("Frame") or theme:IsA("TextButton") or theme:IsA("ScrollingFrame") then
  259. theme.BackgroundColor3 = Color
  260. elseif theme:IsA("TextLabel") or theme:IsA("TextBox") then
  261. theme.TextColor3 = Color
  262. elseif theme:IsA("ImageLabel") or theme:IsA("ImageButton") then
  263. theme.ImageColor3 = Color
  264. end
  265. end
  266. end
  267. end;
  268. function Library:CreateESPPreview(parent)
  269. local PreviewFrame = Instance.new("Frame")
  270. PreviewFrame.Name = "ESP_Preview"
  271. PreviewFrame.BackgroundColor3 = Color3.fromRGB(8, 9, 10)
  272. PreviewFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  273. PreviewFrame.BorderSizePixel = 0
  274. PreviewFrame.Position = UDim2.new(1, 10, 0.5, 0)
  275. PreviewFrame.Size = UDim2.new(0, 200, 0, 300)
  276. PreviewFrame.AnchorPoint = Vector2.new(0, 0.5)
  277.  
  278. local UICorner = Instance.new("UICorner")
  279. UICorner.Name = "UICorner"
  280. UICorner.CornerRadius = UDim.new(0, 6)
  281. UICorner.Parent = PreviewFrame
  282.  
  283. local PreviewTitle = Instance.new("TextLabel")
  284. PreviewTitle.Name = "PreviewTitle"
  285. PreviewTitle.FontFace = Library.UIFont
  286. PreviewTitle.Text = "ESP Preview"
  287. PreviewTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  288. PreviewTitle.TextSize = 16
  289. PreviewTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  290. PreviewTitle.BackgroundTransparency = 1
  291. PreviewTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  292. PreviewTitle.BorderSizePixel = 0
  293. PreviewTitle.Position = UDim2.new(0, 0, 0, 10)
  294. PreviewTitle.Size = UDim2.new(1, 0, 0, 20)
  295. PreviewTitle.Parent = PreviewFrame
  296.  
  297. local PreviewContent = Instance.new("Frame")
  298. PreviewContent.Name = "PreviewContent"
  299. PreviewContent.BackgroundColor3 = Color3.fromRGB(13, 15, 16)
  300. PreviewContent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  301. PreviewContent.BorderSizePixel = 0
  302. PreviewContent.Position = UDim2.new(0.5, 0, 0.5, 10)
  303. PreviewContent.Size = UDim2.new(0.9, 0, 0.8, 0)
  304. PreviewContent.AnchorPoint = Vector2.new(0.5, 0.5)
  305.  
  306. local UICorner2 = Instance.new("UICorner")
  307. UICorner2.Name = "UICorner"
  308. UICorner2.CornerRadius = UDim.new(0, 6)
  309. UICorner2.Parent = PreviewContent
  310.  
  311. PreviewContent.Parent = PreviewFrame
  312.  
  313. local DummyModel = Instance.new("Frame")
  314. DummyModel.Name = "DummyPlayer"
  315. DummyModel.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  316. DummyModel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  317. DummyModel.BorderSizePixel = 0
  318. DummyModel.Position = UDim2.new(0.5, 0, 0.5, 0)
  319. DummyModel.Size = UDim2.new(0, 40, 0, 100)
  320. DummyModel.AnchorPoint = Vector2.new(0.5, 0.5)
  321.  
  322. local UICorner3 = Instance.new("UICorner")
  323. UICorner3.Name = "UICorner"
  324. UICorner3.CornerRadius = UDim.new(0, 6)
  325. UICorner3.Parent = DummyModel
  326.  
  327. local Head = Instance.new("Frame")
  328. Head.Name = "Head"
  329. Head.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  330. Head.BorderColor3 = Color3.fromRGB(0, 0, 0)
  331. Head.BorderSizePixel = 0
  332. Head.Position = UDim2.new(0.5, 0, 0, -20)
  333. Head.Size = UDim2.new(0, 30, 0, 30)
  334. Head.AnchorPoint = Vector2.new(0.5, 0)
  335.  
  336. local UICorner4 = Instance.new("UICorner")
  337. UICorner4.Name = "UICorner"
  338. UICorner4.CornerRadius = UDim.new(1, 0)
  339. UICorner4.Parent = Head
  340.  
  341. Head.Parent = DummyModel
  342. DummyModel.Parent = PreviewContent
  343.  
  344. local ESPBox = Instance.new("Frame")
  345. ESPBox.Name = "ESPBox"
  346. ESPBox.BackgroundTransparency = 1
  347. ESPBox.BorderColor3 = Library.Accent
  348. ESPBox.BorderSizePixel = 1
  349. ESPBox.Position = UDim2.new(0.5, 0, 0.5, 0)
  350. ESPBox.Size = UDim2.new(1.2, 0, 1.5, 0)
  351. ESPBox.AnchorPoint = Vector2.new(0.5, 0.5)
  352. ESPBox.Parent = DummyModel
  353.  
  354. local ESPName = Instance.new("TextLabel")
  355. ESPName.Name = "ESPName"
  356. ESPName.FontFace = Library.UIFont
  357. ESPName.Text = "Player"
  358. ESPName.TextColor3 = Library.Accent
  359. ESPName.TextSize = 12
  360. ESPName.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  361. ESPName.BackgroundTransparency = 0.5
  362. ESPName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  363. ESPName.BorderSizePixel = 0
  364. ESPName.Position = UDim2.new(0.5, 0, 0, -40)
  365. ESPName.Size = UDim2.new(0, 60, 0, 16)
  366. ESPName.AnchorPoint = Vector2.new(0.5, 0)
  367.  
  368. local UICorner5 = Instance.new("UICorner")
  369. UICorner5.Name = "UICorner"
  370. UICorner5.CornerRadius = UDim.new(0, 4)
  371. UICorner5.Parent = ESPName
  372.  
  373. ESPName.Parent = DummyModel
  374.  
  375. local HealthBarBackground = Instance.new("Frame")
  376. HealthBarBackground.Name = "HealthBarBG"
  377. HealthBarBackground.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  378. HealthBarBackground.BorderColor3 = Color3.fromRGB(0, 0, 0)
  379. HealthBarBackground.BorderSizePixel = 0
  380. HealthBarBackground.Position = UDim2.new(0, -15, 0, 0)
  381. HealthBarBackground.Size = UDim2.new(0, 5, 1, 0)
  382.  
  383. local UICorner6 = Instance.new("UICorner")
  384. UICorner6.Name = "UICorner"
  385. UICorner6.CornerRadius = UDim.new(0, 2)
  386. UICorner6.Parent = HealthBarBackground
  387.  
  388. local HealthBar = Instance.new("Frame")
  389. HealthBar.Name = "HealthBar"
  390. HealthBar.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  391. HealthBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  392. HealthBar.BorderSizePixel = 0
  393. HealthBar.Position = UDim2.new(0, 0, 0, 0)
  394. HealthBar.Size = UDim2.new(1, 0, 0.7, 0)
  395. HealthBar.AnchorPoint = Vector2.new(0, 0)
  396.  
  397. local UICorner7 = Instance.new("UICorner")
  398. UICorner7.Name = "UICorner"
  399. UICorner7.CornerRadius = UDim.new(0, 2)
  400. UICorner7.Parent = HealthBar
  401.  
  402. HealthBar.Parent = HealthBarBackground
  403. HealthBarBackground.Parent = DummyModel
  404.  
  405. local ESPDistance = Instance.new("TextLabel")
  406. ESPDistance.Name = "ESPDistance"
  407. ESPDistance.FontFace = Library.UIFont
  408. ESPDistance.Text = "10m"
  409. ESPDistance.TextColor3 = Color3.fromRGB(200, 200, 200)
  410. ESPDistance.TextSize = 10
  411. ESPDistance.BackgroundTransparency = 1
  412. ESPDistance.Position = UDim2.new(0.5, 0, 1, 5)
  413. ESPDistance.Size = UDim2.new(0, 60, 0, 16)
  414. ESPDistance.AnchorPoint = Vector2.new(0.5, 0)
  415. ESPDistance.Parent = DummyModel
  416.  
  417. local ControlsFrame = Instance.new("Frame")
  418. ControlsFrame.Name = "Controls"
  419. ControlsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  420. ControlsFrame.BackgroundTransparency = 1
  421. ControlsFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  422. ControlsFrame.BorderSizePixel = 0
  423. ControlsFrame.Position = UDim2.new(0, 0, 1, -40)
  424. ControlsFrame.Size = UDim2.new(1, 0, 0, 30)
  425. ControlsFrame.Parent = PreviewFrame
  426.  
  427. PreviewFrame.Parent = parent
  428.  
  429. local ESPPreview = {
  430. Frame = PreviewFrame,
  431. Box = ESPBox,
  432. Name = ESPName,
  433. Health = HealthBar,
  434. Distance = ESPDistance,
  435. DummyModel = DummyModel
  436. }
  437.  
  438. function ESPPreview:UpdateColor(color)
  439. ESPBox.BorderColor3 = color
  440. ESPName.TextColor3 = color
  441. end
  442.  
  443. function ESPPreview:ToggleBox(enabled)
  444. ESPBox.Visible = enabled
  445. end
  446.  
  447. function ESPPreview:ToggleName(enabled)
  448. ESPName.Visible = enabled
  449. end
  450.  
  451. function ESPPreview:ToggleHealth(enabled)
  452. HealthBarBackground.Visible = enabled
  453. end
  454.  
  455. function ESPPreview:ToggleDistance(enabled)
  456. ESPDistance.Visible = enabled
  457. end
  458.  
  459. function ESPPreview:UpdateHealth(percentage)
  460. percentage = math.clamp(percentage, 0, 100)
  461. HealthBar.Size = UDim2.new(1, 0, percentage/100, 0)
  462.  
  463. if percentage > 70 then
  464. HealthBar.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  465. elseif percentage > 30 then
  466. HealthBar.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  467. else
  468. HealthBar.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  469. end
  470. end
  471.  
  472. ESPPreview:UpdateHealth(70)
  473.  
  474. return ESPPreview
  475. end
  476.  
  477. -- // Colorpicker Element
  478. do
  479. function Library:NewPicker(name, default, defaultalpha, parent, count, flag, callback)
  480. -- // Instances
  481. local ColorpickerFrame = Instance.new("TextButton")
  482. ColorpickerFrame.Name = "Colorpicker_frame"
  483. ColorpickerFrame.BackgroundColor3 = default
  484. ColorpickerFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  485. ColorpickerFrame.BorderSizePixel = 0
  486. ColorpickerFrame.Position = UDim2.new(1, - (count * 30) - (count * 4), 0.5, 0)
  487. ColorpickerFrame.Size = UDim2.new(0, 20, 0, 20)
  488. ColorpickerFrame.AnchorPoint = Vector2.new(0,0.5)
  489. ColorpickerFrame.Text = ""
  490. ColorpickerFrame.AutoButtonColor = false
  491.  
  492. local UICorner = Instance.new("UICorner")
  493. UICorner.Name = "UICorner"
  494. UICorner.CornerRadius = UDim.new(0, 6)
  495. UICorner.Parent = ColorpickerFrame
  496.  
  497. ColorpickerFrame.Parent = parent
  498.  
  499. local Colorpicker = Instance.new("TextButton")
  500. Colorpicker.Name = "Colorpicker"
  501. Colorpicker.BackgroundColor3 = Color3.fromRGB(14, 17, 19)
  502. Colorpicker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  503. Colorpicker.BorderSizePixel = 0
  504. Colorpicker.Position = UDim2.new(0, ColorpickerFrame.AbsolutePosition.X - 100, 0, ColorpickerFrame.AbsolutePosition.Y - 50)
  505. Colorpicker.Size = UDim2.new(0, 180, 0, 180)
  506. Colorpicker.Parent = Library.ScreenGUI
  507. Colorpicker.ZIndex = 100
  508. Colorpicker.Visible = false
  509. Colorpicker.Text = ""
  510. Colorpicker.AutoButtonColor = false
  511. local H,S,V = default:ToHSV()
  512. local ImageLabel = Instance.new("ImageLabel")
  513. ImageLabel.Name = "ImageLabel"
  514. ImageLabel.Image = "rbxassetid://11970108040"
  515. ImageLabel.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  516. ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  517. ImageLabel.BorderSizePixel = 0
  518. ImageLabel.Position = UDim2.new(0.0556, 0, 0.026, 0)
  519. ImageLabel.Size = UDim2.new(0, 160, 0, 154)
  520. ImageLabel.Parent = Colorpicker
  521.  
  522. local UICorner = Instance.new("UICorner")
  523. UICorner.Name = "UICorner"
  524. UICorner.CornerRadius = UDim.new(0, 6)
  525. UICorner.Parent = Colorpicker
  526.  
  527. local ImageButton = Instance.new("ImageButton")
  528. ImageButton.Name = "ImageButton"
  529. ImageButton.Image = "rbxassetid://14684562507"
  530. ImageButton.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  531. ImageButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  532. ImageButton.BorderSizePixel = 0
  533. ImageButton.Position = UDim2.new(0.056, 0, 0.026, 0)
  534. ImageButton.Size = UDim2.new(0, 160, 0, 154)
  535. ImageButton.AutoButtonColor = false
  536.  
  537. local SVSlider = Instance.new("Frame")
  538. SVSlider.Name = "SV_slider"
  539. SVSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  540. SVSlider.BackgroundTransparency = 1
  541. SVSlider.ClipsDescendants = true
  542. SVSlider.Position = UDim2.new(0.855, 0, 0.0966, 0)
  543. SVSlider.Size = UDim2.new(0,7,0,7)
  544. SVSlider.ZIndex = 3
  545.  
  546. local Val = Instance.new("ImageLabel")
  547. Val.Name = "Val"
  548. Val.Image = "http://www.roblox.com/asset/?id=14684563800"
  549. Val.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  550. Val.BackgroundTransparency = 1
  551. Val.BorderColor3 = Color3.fromRGB(0, 0, 0)
  552. Val.BorderSizePixel = 0
  553. Val.Size = UDim2.new(1, 0, 1, 0)
  554. Val.Parent = ImageButton
  555.  
  556. local UICorner1 = Instance.new("UICorner")
  557. UICorner1.Name = "UICorner"
  558. UICorner1.CornerRadius = UDim.new(0, 100)
  559. UICorner1.Parent = SVSlider
  560.  
  561. local UIStroke = Instance.new("UIStroke")
  562. UIStroke.Name = "UIStroke"
  563. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  564. UIStroke.Parent = SVSlider
  565.  
  566. SVSlider.Parent = ImageButton
  567.  
  568. ImageButton.Parent = Colorpicker
  569.  
  570. local ImageButton1 = Instance.new("ImageButton")
  571. ImageButton1.Name = "ImageButton"
  572. ImageButton1.Image = "http://www.roblox.com/asset/?id=16789872274"
  573. ImageButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  574. ImageButton1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  575. ImageButton1.BorderSizePixel = 0
  576. ImageButton1.Position = UDim2.new(0.5, 0,0, 165)
  577. ImageButton1.Size = UDim2.new(0, 160,0, 8)
  578. ImageButton1.AutoButtonColor = false
  579. ImageButton1.AnchorPoint = Vector2.new(0.5,0)
  580. ImageButton1.BackgroundTransparency = 1
  581.  
  582. local Frame = Instance.new("Frame")
  583. Frame.Name = "Frame"
  584. Frame.BackgroundColor3 = Color3.fromRGB(254, 254, 254)
  585. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  586. Frame.BorderSizePixel = 0
  587. Frame.Position = UDim2.new(0.926, 0,0.5, 0)
  588. Frame.Size = UDim2.new(0, 12,0, 12)
  589. Frame.AnchorPoint = Vector2.new(0,0.5)
  590. Frame.ZIndex = 45
  591.  
  592. local UICorner2 = Instance.new("UICorner")
  593. UICorner2.Name = "UICorner"
  594. UICorner2.Parent = Frame
  595. UICorner2.CornerRadius = UDim.new(1,0)
  596.  
  597. local UICorner3 = Instance.new("UICorner")
  598. UICorner3.Name = "UICorner"
  599. UICorner3.Parent = ImageButton1
  600.  
  601. Frame.Parent = ImageButton1
  602.  
  603. ImageButton1.Parent = Colorpicker
  604.  
  605. -- // Connections
  606. local mouseover = false
  607. local hue, sat, val = default:ToHSV()
  608. local hsv = default:ToHSV()
  609. local alpha = defaultalpha
  610. local oldcolor = hsv
  611. local slidingsaturation = false
  612. local slidinghue = false
  613. local slidingalpha = false
  614.  
  615. local function update()
  616. local real_pos = game:GetService("UserInputService"):GetMouseLocation()
  617. local mouse_position = Vector2.new(real_pos.X, real_pos.Y - 30)
  618. local relative_palette = (mouse_position - ImageButton.AbsolutePosition)
  619. local relative_hue = (mouse_position - ImageButton1.AbsolutePosition)
  620. --
  621. if slidingsaturation then
  622. sat = math.clamp(1 - relative_palette.X / ImageButton.AbsoluteSize.X, 0, 1)
  623. val = math.clamp(1 - relative_palette.Y / ImageButton.AbsoluteSize.Y, 0, 1)
  624. elseif slidinghue then
  625. hue = math.clamp(relative_hue.X / ImageButton.AbsoluteSize.X, 0, 1)
  626. end
  627.  
  628. hsv = Color3.fromHSV(hue, sat, val)
  629. TweenService:Create(SVSlider, TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(math.clamp(1 - sat, 0.000, 1 - 0.055), 0, math.clamp(1 - val, 0.000, 1 - 0.045), 0)}):Play()
  630. ImageButton.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  631. ColorpickerFrame.BackgroundColor3 = hsv
  632.  
  633. TweenService:Create(Frame, TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(math.clamp(hue, 0.000, 0.982),-5,0.5,0)}):Play()
  634.  
  635. if flag then
  636. Library.Flags[flag] = Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha)
  637. end
  638.  
  639. callback(Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha))
  640. end
  641.  
  642. local function set(color, a)
  643. if type(color) == "table" then
  644. a = color[4]
  645. color = Color3.fromHSV(color[1], color[2], color[3])
  646. end
  647. if type(color) == "string" then
  648. color = Color3.fromHex(color)
  649. end
  650.  
  651. local oldcolor = hsv
  652. local oldalpha = alpha
  653.  
  654. hue, sat, val = color:ToHSV()
  655. alpha = a or 1
  656. hsv = Color3.fromHSV(hue, sat, val)
  657.  
  658. if hsv ~= oldcolor then
  659. ColorpickerFrame.BackgroundColor3 = hsv
  660. TweenService:Create(SVSlider, TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(math.clamp(1 - sat, 0.000, 1 - 0.055), 0, math.clamp(1 - val, 0.000, 1 - 0.045), 0)}):Play()
  661. ImageButton.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  662. TweenService:Create(Frame, TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(math.clamp(hue, 0.000, 0.982),-5,0.5,0)}):Play()
  663.  
  664. if flag then
  665. Library.Flags[flag] = Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha)
  666. end
  667.  
  668. callback(Library:RGBA(hsv.r * 255, hsv.g * 255, hsv.b * 255, alpha))
  669. end
  670. end
  671.  
  672. Flags[flag] = set
  673.  
  674. set(default, defaultalpha)
  675.  
  676. ImageButton.InputBegan:Connect(function(input)
  677. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  678. slidingsaturation = true
  679. update()
  680. end
  681. end)
  682.  
  683. ImageButton.InputEnded:Connect(function(input)
  684. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  685. slidingsaturation = false
  686. update()
  687. end
  688. end)
  689.  
  690. ImageButton1.InputBegan:Connect(function(input)
  691. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  692. slidinghue = true
  693. update()
  694. end
  695. end)
  696.  
  697. ImageButton1.InputEnded:Connect(function(input)
  698. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  699. slidinghue = false
  700. update()
  701. end
  702. end)
  703.  
  704. Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  705. if input.UserInputType == Enum.UserInputType.MouseMovement then
  706. if slidinghue then
  707. update()
  708. end
  709.  
  710. if slidingsaturation then
  711. update()
  712. end
  713. end
  714. end)
  715.  
  716. local colorpickertypes = {}
  717.  
  718. function colorpickertypes:Set(color, newalpha)
  719. set(color, newalpha)
  720. end
  721.  
  722. Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  723. if Colorpicker.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  724. if not Library:IsMouseOverFrame(Colorpicker) and not Library:IsMouseOverFrame(ColorpickerFrame) then
  725. Colorpicker.Position = UDim2.new(0, ColorpickerFrame.AbsolutePosition.X - 100, 0, ColorpickerFrame.AbsolutePosition.Y + 25)
  726. TweenService:Create(Colorpicker, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  727. TweenService:Create(Colorpicker, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Position = UDim2.new(0, ColorpickerFrame.AbsolutePosition.X - 100, 0, ColorpickerFrame.AbsolutePosition.Y)}):Play()
  728. task.spawn(function()
  729. task.wait(0.1)
  730. Colorpicker.Visible = false
  731. parent.ZIndex = 1
  732. Library.Cooldown = false
  733. end)
  734. for _,V in next, Colorpicker:GetDescendants() do
  735. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  736. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  737. Library.VisValues[V] = V.BackgroundTransparency
  738. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  739. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  740. Library.VisValues[V] = V.TextTransparency
  741. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  742. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play();
  743. Library.VisValues[V] = V.ImageTransparency
  744. elseif V:IsA("UIStroke") then
  745. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  746. Library.VisValues[V] = V.Transparency
  747. end
  748. end
  749. end
  750. end
  751. end)
  752.  
  753. ColorpickerFrame.MouseButton1Down:Connect(function()
  754. if Colorpicker.Visible == false then
  755. Colorpicker.Position = UDim2.new(0, ColorpickerFrame.AbsolutePosition.X - 100, 0, ColorpickerFrame.AbsolutePosition.Y)
  756. TweenService:Create(Colorpicker, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0, ColorpickerFrame.AbsolutePosition.X - 100, 0, ColorpickerFrame.AbsolutePosition.Y + 25)}):Play()
  757. end
  758. Colorpicker.Visible = true
  759. parent.ZIndex = 100
  760. Library.Cooldown = true
  761. TweenService:Create(Colorpicker, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  762. for _,V in next, Colorpicker:GetDescendants() do
  763. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  764. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = Library.VisValues[V]}):Play()
  765. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  766. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = Library.VisValues[V]}):Play()
  767. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  768. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = Library.VisValues[V]}):Play();
  769. elseif V:IsA("UIStroke") then
  770. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = 0}):Play()
  771. end
  772. end
  773.  
  774. if slidinghue then
  775. slidinghue = false
  776. end
  777.  
  778. if slidingsaturation then
  779. slidingsaturation = false
  780. end
  781. end)
  782.  
  783. return colorpickertypes, Colorpicker
  784. end
  785. end
  786.  
  787. function Library:NewInstance(Inst, Theme)
  788. local Obj = Instance.new(Inst)
  789. if Theme then
  790. table.insert(Library.ThemeObjects, Obj)
  791. if Obj:IsA("Frame") or Obj:IsA("TextButton") or Obj:IsA("ScrollingFrame") then
  792. Obj.BackgroundColor3 = Library.Accent;
  793. if Obj:IsA("ScrollingFrame") then
  794. Obj.ScrollBarImageColor3 = Library.Accent
  795. end
  796. elseif Obj:IsA("TextLabel") or Obj:IsA("TextBox") then
  797. Obj.TextColor3 = Library.Accent;
  798. elseif Obj:IsA("ImageLabel") or Obj:IsA("ImageButton") then
  799. Obj.ImageColor3 = Library.Accent;
  800. elseif Obj:IsA("UIStroke") then
  801. Obj.Color = Library.Accent;
  802. end;
  803. end;
  804. return Obj;
  805. end;
  806.  
  807. do
  808. local Pages = Library.Pages;
  809. local Sections = Library.Sections;
  810. --
  811. function Library:Window(Options)
  812. local Window = {
  813. Pages = {};
  814. Sections = {};
  815. Elements = {};
  816. Dragging = { false, UDim2.new(0, 0, 0, 0) };
  817. Name = Options.Name or "dmt";
  818. };
  819. --
  820. local Lexyawin = Instance.new("ScreenGui", game.CoreGui)
  821. Lexyawin.Name = "lexyawin"
  822. Lexyawin.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  823. Library.ScreenGUI = Lexyawin
  824.  
  825. local MainFrame = Instance.new("TextButton")
  826. MainFrame.Name = "Main_frame"
  827. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  828. MainFrame.BackgroundColor3 = Color3.fromRGB(8, 9, 10)
  829. MainFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  830. MainFrame.BorderSizePixel = 0
  831. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  832. MainFrame.Size = UDim2.new(0, 710, 0, 535)
  833. MainFrame.Text = ''
  834. MainFrame.AutoButtonColor = false
  835. MainFrame.Parent = Lexyawin
  836. Library.Holder = MainFrame
  837.  
  838. local UICorner = Instance.new("UICorner")
  839. UICorner.Name = "UICorner"
  840. UICorner.Parent = MainFrame
  841.  
  842. local Sidebar = Instance.new("Frame")
  843. Sidebar.Name = "Sidebar"
  844. Sidebar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  845. Sidebar.BackgroundTransparency = 1
  846. Sidebar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  847. Sidebar.BorderSizePixel = 0
  848. Sidebar.Size = UDim2.new(0, 200, 0, 535)
  849.  
  850. local TextThingAttop = Library:NewInstance("TextLabel", true)
  851. TextThingAttop.Name = "text_thing_attop"
  852. TextThingAttop.FontFace = Library.UIFont
  853. TextThingAttop.RichText = true
  854. TextThingAttop.Text = Window.Name
  855. TextThingAttop.TextColor3 = Library.Accent
  856. TextThingAttop.TextSize = 25
  857. TextThingAttop.TextWrapped = true
  858. TextThingAttop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  859. TextThingAttop.BackgroundTransparency = 1
  860. TextThingAttop.BorderColor3 = Color3.fromRGB(0, 0, 0)
  861. TextThingAttop.BorderSizePixel = 0
  862. TextThingAttop.Size = UDim2.new(0, 188, 0, 75)
  863. TextThingAttop.Parent = Sidebar
  864.  
  865. local TabHolders = Instance.new("ScrollingFrame")
  866. TabHolders.Name = "Tab_holders"
  867. TabHolders.AutomaticCanvasSize = Enum.AutomaticSize.Y
  868. TabHolders.CanvasSize = UDim2.new()
  869. TabHolders.ScrollBarThickness = 0
  870. TabHolders.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  871. TabHolders.BackgroundTransparency = 1
  872. TabHolders.BorderColor3 = Color3.fromRGB(0, 0, 0)
  873. TabHolders.BorderSizePixel = 0
  874. TabHolders.Position = UDim2.new(0.0449, 0, 0.14, 0)
  875. TabHolders.Selectable = false
  876. TabHolders.Size = UDim2.new(0, 181, 0, 460)
  877. TabHolders.SelectionGroup = false
  878.  
  879. local UIListLayout = Instance.new("UIListLayout")
  880. UIListLayout.Name = "UIListLayout"
  881. UIListLayout.Padding = UDim.new(0, 6)
  882. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  883. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  884. UIListLayout.Parent = TabHolders
  885.  
  886. local TabSectionHolder = Instance.new("Frame")
  887. TabSectionHolder.Name = "Tab_section_holder"
  888. TabSectionHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  889. TabSectionHolder.BackgroundTransparency = 1
  890. TabSectionHolder.BorderColor3 = Color3.fromRGB(0, 0, 0)
  891. TabSectionHolder.BorderSizePixel = 0
  892. TabSectionHolder.Position = UDim2.new(0.282, 0, 0.164, 0)
  893. TabSectionHolder.Size = UDim2.new(0, 500, 0, 430)
  894.  
  895. local FadeThing = Instance.new("Frame")
  896. FadeThing.Name = "FadeThing"
  897. FadeThing.BackgroundColor3 = Color3.fromRGB(8, 9, 10)
  898. FadeThing.BackgroundTransparency = 1
  899. FadeThing.BorderColor3 = Color3.fromRGB(0, 0, 0)
  900. FadeThing.BorderSizePixel = 0
  901. FadeThing.Position = UDim2.new(0, 0, -0.166, 0)
  902. FadeThing.Selectable = false
  903. FadeThing.Size = UDim2.new(0, 503, 0, 501)
  904. FadeThing.SelectionGroup = false
  905. FadeThing.Visible = false
  906. FadeThing.ZIndex = 100
  907. FadeThing.Parent = TabSectionHolder
  908.  
  909. TabHolders.Parent = Sidebar
  910.  
  911. Sidebar.Parent = MainFrame
  912.  
  913. TabSectionHolder.Parent = MainFrame
  914.  
  915. -- // Elements
  916. Window.Elements = {
  917. TabHolder = TabHolders,
  918. Holder = TabSectionHolder,
  919. FadeThing = FadeThing,
  920. }
  921.  
  922. -- // Dragging
  923. Library:Connection(MainFrame.MouseButton1Down, function()
  924. local Location = game:GetService("UserInputService"):GetMouseLocation()
  925. Window.Dragging[1] = true
  926. Window.Dragging[2] = UDim2.new(0, Location.X - MainFrame.AbsolutePosition.X, 0, Location.Y - MainFrame.AbsolutePosition.Y)
  927. end)
  928. Library:Connection(game:GetService("UserInputService").InputEnded, function(Input)
  929. if Input.UserInputType == Enum.UserInputType.MouseButton1 and Window.Dragging[1] then
  930. local Location = game:GetService("UserInputService"):GetMouseLocation()
  931. Window.Dragging[1] = false
  932. Window.Dragging[2] = UDim2.new(0, 0, 0, 0)
  933. end
  934. end)
  935. Library:Connection(game:GetService("UserInputService").InputChanged, function(Input)
  936. local Location = game:GetService("UserInputService"):GetMouseLocation()
  937. local ActualLocation = nil
  938.  
  939. -- Dragging
  940. if Window.Dragging[1] then
  941. MainFrame.Position = UDim2.new(
  942. 0,
  943. Location.X - Window.Dragging[2].X.Offset + (MainFrame.Size.X.Offset * MainFrame.AnchorPoint.X),
  944. 0,
  945. Location.Y - Window.Dragging[2].Y.Offset + (MainFrame.Size.Y.Offset * MainFrame.AnchorPoint.Y)
  946. )
  947. end
  948. end)
  949. Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  950. if Input.KeyCode == Library.UIKey then
  951. Library:SetOpen(not Library.Open)
  952. end
  953. end)
  954.  
  955. -- // Functions
  956. function Window:UpdateTabs()
  957. for Index, Page in pairs(Window.Pages) do
  958. Page:Turn(Page.Open)
  959. end
  960. end
  961.  
  962. -- // Returns
  963. Library.Holder = MainFrame
  964. return setmetatable(Window, Library)
  965. end;
  966. --
  967. function Library:Catagory(Properties)
  968. local Page = {
  969. Name = Properties.Name or "Page",
  970. Window = self,
  971. Elements = {},
  972. }
  973. --
  974. local TabSeparationName = Instance.new("TextLabel")
  975. TabSeparationName.Name = "Tab_separation_name"
  976. TabSeparationName.FontFace = Font.new(
  977. "rbxasset://fonts/families/Ubuntu.json",
  978. Enum.FontWeight.Bold,
  979. Enum.FontStyle.Normal
  980. )
  981. TabSeparationName.Text = Page.Name
  982. TabSeparationName.TextColor3 = Color3.fromRGB(36, 37, 40)
  983. TabSeparationName.TextSize = 11
  984. TabSeparationName.TextXAlignment = Enum.TextXAlignment.Left
  985. TabSeparationName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  986. TabSeparationName.BackgroundTransparency = 1
  987. TabSeparationName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  988. TabSeparationName.BorderSizePixel = 0
  989. TabSeparationName.Size = UDim2.new(0, 178, 0, 25)
  990.  
  991. local UIPadding = Instance.new("UIPadding")
  992. UIPadding.Name = "UIPadding"
  993. UIPadding.PaddingLeft = UDim.new(0, 10)
  994. UIPadding.Parent = TabSeparationName
  995.  
  996. TabSeparationName.Parent = Page.Window.Elements.TabHolder
  997. end;
  998. --
  999. function Library:Page(Properties)
  1000. if not Properties then
  1001. Properties = {}
  1002. end
  1003. --
  1004. local Page = {
  1005. Name = Properties.Name or Properties.name or "Page",
  1006. Icon = Properties.Icon or "rbxassetid://16687036847",
  1007. Window = self,
  1008. Open = false,
  1009. Sections = {},
  1010. Pages = {},
  1011. Elements = {},
  1012. }
  1013. --
  1014. local ATabActive = Instance.new("TextButton")
  1015. ATabActive.Name = "a_tab_active"
  1016. ATabActive.BackgroundColor3 = Color3.fromRGB(14, 15, 18)
  1017. ATabActive.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1018. ATabActive.BorderSizePixel = 0
  1019. ATabActive.BackgroundTransparency = 1
  1020. ATabActive.Position = UDim2.new(-0.011, 0, 0.0587, 0)
  1021. ATabActive.Size = UDim2.new(0, 185, 0, 40)
  1022. ATabActive.Text = ""
  1023. ATabActive.AutoButtonColor = false
  1024.  
  1025. local UICorner1 = Instance.new("UICorner")
  1026. UICorner1.Name = "UICorner"
  1027. UICorner1.Parent = ATabActive
  1028.  
  1029. local TabImage = Instance.new("ImageLabel")
  1030. TabImage.Name = "Tab_image"
  1031. TabImage.Image = Page.Icon
  1032. TabImage.ImageColor3 = Color3.fromRGB(41, 42, 45)
  1033. TabImage.AnchorPoint = Vector2.new(0,0.5)
  1034. TabImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1035. TabImage.BackgroundTransparency = 1
  1036. TabImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1037. TabImage.BorderSizePixel = 0
  1038. TabImage.Position = UDim2.new(0.0732, 0, 0.5, 0)
  1039. TabImage.Size = UDim2.new(0, 20, 0, 20)
  1040. TabImage.Parent = ATabActive
  1041.  
  1042. local AccentImage = Library:NewInstance("ImageLabel", true)
  1043. AccentImage.Name = "Tab_image"
  1044. AccentImage.Image = Page.Icon
  1045. AccentImage.AnchorPoint = Vector2.new(0,0.5)
  1046. AccentImage.ImageColor3 = Library.Accent
  1047. AccentImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1048. AccentImage.BackgroundTransparency = 1
  1049. AccentImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1050. AccentImage.BorderSizePixel = 0
  1051. AccentImage.Position = UDim2.new(0.0732, 0, 0.5, 0)
  1052. AccentImage.Size = UDim2.new(0, 20, 0, 20)
  1053. AccentImage.Parent = ATabActive
  1054.  
  1055. local TabText = Instance.new("TextLabel")
  1056. TabText.Name = "Tab_text"
  1057. TabText.FontFace = Library.UIFont
  1058. TabText.Text = Page.Name
  1059. TabText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1060. TabText.TextSize = 11
  1061. TabText.TextXAlignment = Enum.TextXAlignment.Left
  1062. TabText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1063. TabText.BackgroundTransparency = 1
  1064. TabText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1065. TabText.BorderSizePixel = 0
  1066. TabText.Position = UDim2.new(0.179, 0, 0.5, 0)
  1067. TabText.Size = UDim2.new(0, 134, 0, 22)
  1068. TabText.AnchorPoint = Vector2.new(0,0.5)
  1069.  
  1070. local UIPadding1 = Instance.new("UIPadding")
  1071. UIPadding1.Name = "UIPadding"
  1072. UIPadding1.PaddingLeft = UDim.new(0, 5)
  1073. UIPadding1.Parent = TabText
  1074.  
  1075. TabText.Parent = ATabActive
  1076.  
  1077. local TabIndicator = Library:NewInstance("Frame", true)
  1078. TabIndicator.Name = "Tab_indicator"
  1079. TabIndicator.BackgroundColor3 = Library.Accent
  1080. TabIndicator.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1081. TabIndicator.BorderSizePixel = 0
  1082. TabIndicator.Position = UDim2.new(0.899, 0, 0.5, 0)
  1083. TabIndicator.Size = UDim2.new(0, 4, 0, 23)
  1084. TabIndicator.AnchorPoint = Vector2.new(0,0.5)
  1085.  
  1086. local UICorner2 = Instance.new("UICorner")
  1087. UICorner2.Name = "UICorner"
  1088. UICorner2.CornerRadius = UDim.new(0, 99)
  1089. UICorner2.Parent = TabIndicator
  1090.  
  1091. TabIndicator.Parent = ATabActive
  1092.  
  1093. ATabActive.Parent = Page.Window.Elements.TabHolder
  1094.  
  1095. local SectionHolders = Instance.new("ScrollingFrame")
  1096. SectionHolders.Name = "SectionHolders"
  1097. SectionHolders.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1098. SectionHolders.CanvasSize = UDim2.new()
  1099. SectionHolders.ScrollBarThickness = 0
  1100. SectionHolders.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1101. SectionHolders.BackgroundTransparency = 1
  1102. SectionHolders.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1103. SectionHolders.BorderSizePixel = 0
  1104. SectionHolders.Position = UDim2.new(0, 0, -0.166, 0)
  1105. SectionHolders.Selectable = false
  1106. SectionHolders.Size = UDim2.new(0, 503, 0, 501)
  1107. SectionHolders.SelectionGroup = false
  1108. SectionHolders.Visible = false
  1109.  
  1110. local LeftSide = Instance.new("Frame")
  1111. LeftSide.Name = "Left side"
  1112. LeftSide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1113. LeftSide.BackgroundTransparency = 1
  1114. LeftSide.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1115. LeftSide.BorderSizePixel = 0
  1116. LeftSide.Position = UDim2.new(-0.000109, 0, 0, 0)
  1117. LeftSide.Size = UDim2.new(0, 245, 0, 433)
  1118.  
  1119. local UIListLayout1 = Instance.new("UIListLayout")
  1120. UIListLayout1.Name = "UIListLayout"
  1121. UIListLayout1.Padding = UDim.new(0, 6)
  1122. UIListLayout1.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1123. UIListLayout1.SortOrder = Enum.SortOrder.LayoutOrder
  1124. UIListLayout1.Parent = LeftSide
  1125.  
  1126. LeftSide.Parent = SectionHolders
  1127.  
  1128. local RightSide = Instance.new("Frame")
  1129. RightSide.Name = "Right side"
  1130. RightSide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1131. RightSide.BackgroundTransparency = 1
  1132. RightSide.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1133. RightSide.BorderSizePixel = 0
  1134. RightSide.Position = UDim2.new(0.511, 0, 0, 0)
  1135. RightSide.Size = UDim2.new(0, 245, 0, 433)
  1136.  
  1137. local UIListLayout4 = Instance.new("UIListLayout")
  1138. UIListLayout4.Name = "UIListLayout"
  1139. UIListLayout4.Padding = UDim.new(0, 6)
  1140. UIListLayout4.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1141. UIListLayout4.SortOrder = Enum.SortOrder.LayoutOrder
  1142. UIListLayout4.Parent = RightSide
  1143.  
  1144. RightSide.Parent = SectionHolders
  1145.  
  1146. SectionHolders.Parent = Page.Window.Elements.Holder
  1147.  
  1148. function Page:Turn(bool)
  1149. Page.Open = bool
  1150. TweenService:Create(TabText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Page.Open and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(71, 73, 80)}):Play()
  1151. TweenService:Create(AccentImage, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = Page.Open and 0 or 1}):Play()
  1152. TweenService:Create(TabIndicator, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = Page.Open and 0 or 1}):Play()
  1153. TweenService:Create(ATabActive, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = Page.Open and 0 or 1}):Play()
  1154. --
  1155. task.spawn(function()
  1156. Page.Window.Elements.FadeThing.Visible = true
  1157. TweenService:Create(Page.Window.Elements.FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1158. task.wait(0.1)
  1159. SectionHolders.Visible = Page.Open
  1160. TweenService:Create(Page.Window.Elements.FadeThing, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1161. task.wait(0.1)
  1162. Page.Window.Elements.FadeThing.Visible = false
  1163. end)
  1164. end
  1165. --
  1166. Library:Connection(ATabActive.MouseButton1Down, function()
  1167. if not Page.Open then
  1168. for _, Pages in pairs(Page.Window.Pages) do
  1169. if Pages.Open and Pages ~= Page then
  1170. Pages:Turn(false)
  1171. end
  1172. end
  1173. Page:Turn(true)
  1174. end
  1175. end)
  1176.  
  1177. -- // Elements
  1178. Page.Elements = {
  1179. Left = LeftSide,
  1180. Right = RightSide,
  1181. }
  1182.  
  1183. -- // Drawings
  1184. if #Page.Window.Pages == 0 then
  1185. Page:Turn(true)
  1186. end
  1187. Page.Window.Pages[#Page.Window.Pages + 1] = Page
  1188. Page.Window:UpdateTabs()
  1189. return setmetatable(Page, Library.Pages)
  1190. end
  1191. --
  1192. function Pages:Section(Properties)
  1193. if not Properties then
  1194. Properties = {}
  1195. end
  1196. --
  1197. local Section = {
  1198. Name = Properties.Name or "Section",
  1199. Page = self,
  1200. Side = (Properties.side or Properties.Side or "left"):lower(),
  1201. Zindex = (Properties.Zindex or Properties.zindex or 1),
  1202. Elements = {},
  1203. Content = {},
  1204. }
  1205. --
  1206. local RealSection = Instance.new("TextButton")
  1207. RealSection.Name = "Section"
  1208. RealSection.AutomaticSize = Enum.AutomaticSize.Y
  1209. RealSection.BackgroundColor3 = Color3.fromRGB(11, 12, 15)
  1210. RealSection.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1211. RealSection.BorderSizePixel = 0
  1212. RealSection.Position = UDim2.new(0.00816, 0, 0.00231, 0)
  1213. RealSection.Size = UDim2.new(0, 245, 0, 0)
  1214. RealSection.ZIndex = 5
  1215. RealSection.Parent = Section.Side == "left" and Section.Page.Elements.Left or Section.Side == "right" and Section.Page.Elements.Right
  1216. RealSection.Text = ""
  1217. RealSection.AutoButtonColor = false
  1218.  
  1219. local UICorner3 = Instance.new("UICorner")
  1220. UICorner3.Name = "UICorner"
  1221. UICorner3.Parent = RealSection
  1222.  
  1223. local UIListLayout2 = Instance.new("UIListLayout")
  1224. UIListLayout2.Name = "UIListLayout"
  1225. UIListLayout2.Padding = UDim.new(0, 6)
  1226. UIListLayout2.SortOrder = Enum.SortOrder.LayoutOrder
  1227. UIListLayout2.Parent = RealSection
  1228.  
  1229. local UIPadding2 = Instance.new("UIPadding")
  1230. UIPadding2.Name = "UIPadding"
  1231. UIPadding2.PaddingBottom = UDim.new(0, 5)
  1232. UIPadding2.Parent = RealSection
  1233.  
  1234. local SectionStartNameIcon = Instance.new("Frame")
  1235. SectionStartNameIcon.Name = "Section_start(name+icon)"
  1236. SectionStartNameIcon.BackgroundColor3 = Color3.fromRGB(18, 18, 24)
  1237. SectionStartNameIcon.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1238. SectionStartNameIcon.BorderSizePixel = 0
  1239. SectionStartNameIcon.LayoutOrder = -100
  1240. SectionStartNameIcon.Position = UDim2.new(0.0286, 0, 0.0694, 0)
  1241. SectionStartNameIcon.Size = UDim2.new(0, 245, 0, 38)
  1242.  
  1243. local UICorner10 = Instance.new("UICorner")
  1244. UICorner10.Name = "UICorner"
  1245. UICorner10.Parent = SectionStartNameIcon
  1246.  
  1247. local Nouicorner = Instance.new("Frame")
  1248. Nouicorner.Name = "nouicorner"
  1249. Nouicorner.BackgroundColor3 = Color3.fromRGB(18, 18, 24)
  1250. Nouicorner.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1251. Nouicorner.BorderSizePixel = 0
  1252. Nouicorner.Position = UDim2.new(-0, 0, 0.532, 2)
  1253. Nouicorner.Size = UDim2.new(1, 0, 0, 17)
  1254. Nouicorner.ZIndex = 0
  1255. Nouicorner.Parent = SectionStartNameIcon
  1256.  
  1257. local SectionText = Instance.new("TextLabel")
  1258. SectionText.Name = "Section_text"
  1259. SectionText.FontFace = Library.UIFont
  1260. SectionText.Text = Section.Name
  1261. SectionText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1262. SectionText.TextSize = 11
  1263. SectionText.TextXAlignment = Enum.TextXAlignment.Left
  1264. SectionText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1265. SectionText.BackgroundTransparency = 1
  1266. SectionText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1267. SectionText.BorderSizePixel = 0
  1268. SectionText.Position = UDim2.new(0.13, 0, 0.263, 0)
  1269. SectionText.Size = UDim2.new(0, 134, 0, 18)
  1270.  
  1271. local UIPadding7 = Instance.new("UIPadding")
  1272. UIPadding7.Name = "UIPadding"
  1273. UIPadding7.PaddingLeft = UDim.new(0, 5)
  1274. UIPadding7.Parent = SectionText
  1275.  
  1276. SectionText.Parent = SectionStartNameIcon
  1277.  
  1278. local SectionImage = Library:NewInstance("ImageLabel", true)
  1279. SectionImage.Name = "Section_image"
  1280. SectionImage.Image = Section.Page.Icon
  1281. SectionImage.ImageColor3 = Library.Accent
  1282. SectionImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1283. SectionImage.BackgroundTransparency = 1
  1284. SectionImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1285. SectionImage.BorderSizePixel = 0
  1286. SectionImage.Position = UDim2.new(0.0406, 0, 0.182, 0)
  1287. SectionImage.Size = UDim2.new(0, 22, 0, 22)
  1288. SectionImage.Parent = SectionStartNameIcon
  1289.  
  1290. local TheGrid = Instance.new("ImageLabel")
  1291. TheGrid.Name = "the_grid"
  1292. TheGrid.Image = "rbxassetid://16994393834"
  1293. TheGrid.ImageColor3 = Color3.fromRGB(36, 36, 45)
  1294. TheGrid.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1295. TheGrid.BackgroundTransparency = 1
  1296. TheGrid.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1297. TheGrid.BorderSizePixel = 0
  1298. TheGrid.Position = UDim2.new(0.873, 0, 0.184, 0)
  1299. TheGrid.Size = UDim2.new(0, 22, 0, 22)
  1300. TheGrid.Parent = SectionStartNameIcon
  1301.  
  1302. SectionStartNameIcon.Parent = RealSection
  1303.  
  1304. -- // Elements
  1305. Section.Elements = {
  1306. SectionContent = RealSection;
  1307. }
  1308.  
  1309. -- // Returning
  1310. Section.Page.Sections[#Section.Page.Sections + 1] = Section
  1311. return setmetatable(Section, Library.Sections)
  1312. end
  1313. --
  1314. function Sections:Toggle(Properties)
  1315. if not Properties then
  1316. Properties = {}
  1317. end
  1318. --
  1319. local Toggle = {
  1320. Window = self.Window,
  1321. Page = self.Page,
  1322. Section = self,
  1323. Name = Properties.Name or "Toggle",
  1324. State = (
  1325. Properties.state
  1326. or Properties.State
  1327. or Properties.def
  1328. or Properties.Def
  1329. or Properties.default
  1330. or Properties.Default
  1331. or false
  1332. ),
  1333. Callback = (
  1334. Properties.callback
  1335. or Properties.Callback
  1336. or Properties.callBack
  1337. or Properties.CallBack
  1338. or function() end
  1339. ),
  1340. Flag = (
  1341. Properties.flag
  1342. or Properties.Flag
  1343. or Properties.pointer
  1344. or Properties.Pointer
  1345. or Library.NextFlag()
  1346. ),
  1347. Toggled = false,
  1348. }
  1349. --
  1350. local RealToggle = Instance.new("TextButton")
  1351. RealToggle.Name = "Toggle"
  1352. RealToggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1353. RealToggle.BackgroundTransparency = 1
  1354. RealToggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1355. RealToggle.BorderSizePixel = 0
  1356. RealToggle.Position = UDim2.new(0, 0, 0.346, 0)
  1357. RealToggle.Size = UDim2.new(1,0,0,26)
  1358. RealToggle.Text = ""
  1359. RealToggle.AutoButtonColor = false
  1360.  
  1361. local ToggleText = Instance.new("TextLabel")
  1362. ToggleText.Name = "Toggle_text"
  1363. ToggleText.FontFace = Library.UIFont
  1364. ToggleText.Text = Toggle.Name
  1365. ToggleText.TextColor3 = Color3.fromRGB(46, 47, 52)
  1366. ToggleText.TextSize = 11
  1367. ToggleText.AnchorPoint = Vector2.new(0,0.5)
  1368. ToggleText.TextXAlignment = Enum.TextXAlignment.Left
  1369. ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1370. ToggleText.BackgroundTransparency = 1
  1371. ToggleText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1372. ToggleText.BorderSizePixel = 0
  1373. ToggleText.Position = UDim2.new(0.0389, 0, 0.5, 0)
  1374. ToggleText.Size = UDim2.new(0, 197, 0, 20)
  1375.  
  1376. local UIPadding11 = Instance.new("UIPadding")
  1377. UIPadding11.Name = "UIPadding"
  1378. UIPadding11.PaddingLeft = UDim.new(0, 5)
  1379. UIPadding11.Parent = ToggleText
  1380.  
  1381. ToggleText.Parent = RealToggle
  1382.  
  1383. local ToggleFrame = Instance.new("Frame")
  1384. ToggleFrame.Name = "toggle_frame"
  1385. ToggleFrame.BackgroundColor3 = Color3.fromRGB(27, 28, 31)
  1386. ToggleFrame.AnchorPoint = Vector2.new(0,0.5)
  1387. ToggleFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1388. ToggleFrame.BorderSizePixel = 0
  1389. ToggleFrame.Position = UDim2.new(1, -31,0.5, 0)
  1390. ToggleFrame.Size = UDim2.new(0,20,0,20)
  1391.  
  1392. local UICorner15 = Instance.new("UICorner")
  1393. UICorner15.Name = "UICorner"
  1394. UICorner15.CornerRadius = UDim.new(0, 2)
  1395. UICorner15.Parent = ToggleFrame
  1396.  
  1397. local AccentFrame = Library:NewInstance("Frame", true)
  1398. AccentFrame.Name = "toggle_frame"
  1399. AccentFrame.BackgroundColor3 = Library.Accent
  1400. AccentFrame.BackgroundTransparency = 1
  1401. AccentFrame.AnchorPoint = Vector2.new(0,0.5)
  1402. AccentFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1403. AccentFrame.BorderSizePixel = 0
  1404. AccentFrame.Position = UDim2.new(1, -31,0.5, 0)
  1405. AccentFrame.Size = UDim2.new(0,20,0,20)
  1406.  
  1407. local UICorner15 = Instance.new("UICorner")
  1408. UICorner15.Name = "UICorner"
  1409. UICorner15.CornerRadius = UDim.new(0, 2)
  1410. UICorner15.Parent = AccentFrame
  1411.  
  1412. local ToggleCheckImage = Instance.new("ImageLabel")
  1413. ToggleCheckImage.Name = "Toggle_check_image"
  1414. ToggleCheckImage.Image = "rbxassetid://16994544635"
  1415. ToggleCheckImage.ImageTransparency = 1
  1416. ToggleCheckImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1417. ToggleCheckImage.BackgroundTransparency = 1
  1418. ToggleCheckImage.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1419. ToggleCheckImage.BorderSizePixel = 0
  1420. ToggleCheckImage.Position = UDim2.new(0.5, 0, 0.5, 0)
  1421. ToggleCheckImage.Size = UDim2.new(0, 16, 0, 14)
  1422. ToggleCheckImage.AnchorPoint = Vector2.new(0.5,0.5)
  1423. ToggleCheckImage.Parent = AccentFrame
  1424.  
  1425. ToggleFrame.Parent = RealToggle
  1426. AccentFrame.Parent = RealToggle
  1427.  
  1428. RealToggle.Parent = Toggle.Section.Elements.SectionContent
  1429.  
  1430. function Toggle:Options(Properties)
  1431. local Options = {
  1432. Elements = {},
  1433. Content = {},
  1434. }
  1435. --
  1436. local ImageLabel = Instance.new("ImageButton")
  1437. ImageLabel.Name = "ImageLabel"
  1438. ImageLabel.Image = "rbxassetid://15847528907"
  1439. ImageLabel.ImageColor3 = Color3.fromRGB(45, 46, 50)
  1440. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1441. ImageLabel.BackgroundTransparency = 1
  1442. ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1443. ImageLabel.BorderSizePixel = 0
  1444. ImageLabel.Position = UDim2.new(0.782, 0, 0.214, 0)
  1445. ImageLabel.Size = UDim2.new(0, 17, 0, 17)
  1446. ImageLabel.AutoButtonColor = false
  1447. ImageLabel.Parent = RealToggle
  1448.  
  1449. local SettingsOpened = Instance.new("Frame")
  1450. SettingsOpened.Name = "settings opened"
  1451. SettingsOpened.BackgroundColor3 = Color3.fromRGB(17, 19, 22)
  1452. SettingsOpened.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1453. SettingsOpened.BorderSizePixel = 0
  1454. SettingsOpened.Position = UDim2.new(1, -179,0, 0)
  1455. SettingsOpened.Size = UDim2.new(0, 169, 0, 0)
  1456. SettingsOpened.ZIndex = 45
  1457. SettingsOpened.AutomaticSize = Enum.AutomaticSize.Y
  1458. SettingsOpened.Visible = false
  1459. SettingsOpened.Parent = RealToggle
  1460. SettingsOpened.BackgroundTransparency = 1
  1461.  
  1462. local UIListLayout = Instance.new("UIListLayout")
  1463. UIListLayout.Name = "UIListLayout"
  1464. UIListLayout.Padding = UDim.new(0, 6)
  1465. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1466. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1467. UIListLayout.Parent = SettingsOpened
  1468.  
  1469. local UICorner = Instance.new("UICorner")
  1470. UICorner.Name = "UICorner"
  1471. UICorner.CornerRadius = UDim.new(0, 6)
  1472. UICorner.Parent = SettingsOpened
  1473.  
  1474. local UIPadding = Instance.new("UIPadding")
  1475. UIPadding.Name = "UIPadding"
  1476. UIPadding.PaddingTop = UDim.new(0, 5)
  1477. UIPadding.PaddingBottom = UDim.new(0, 5)
  1478. UIPadding.Parent = SettingsOpened
  1479.  
  1480. ImageLabel.MouseButton1Down:Connect(function()
  1481. if SettingsOpened.Visible == false then
  1482. TweenService:Create(SettingsOpened, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(1, -179,1, 0)}):Play()
  1483. end
  1484. SettingsOpened.Visible = true
  1485. RealToggle.ZIndex = 100
  1486. TweenService:Create(SettingsOpened, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1487. for _,V in next, SettingsOpened:GetDescendants() do
  1488. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  1489. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = Library.VisValues[V]}):Play()
  1490. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  1491. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = Library.VisValues[V]}):Play()
  1492. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  1493. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = Library.VisValues[V]}):Play();
  1494. elseif V:IsA("UIStroke") and V.Transparency ~= 1 then
  1495. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = Library.VisValues[V]}):Play()
  1496. end
  1497. end
  1498. end)
  1499.  
  1500. Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  1501. if SettingsOpened.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 and not Library.Cooldown then
  1502. if not Library:IsMouseOverFrame(SettingsOpened) and not Library:IsMouseOverFrame(RealToggle) then
  1503. TweenService:Create(SettingsOpened, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1504. TweenService:Create(SettingsOpened, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Position = UDim2.new(1, -179,0, 0)}):Play()
  1505. task.spawn(function()
  1506. task.wait(0.1)
  1507. SettingsOpened.Visible = false
  1508. RealToggle.ZIndex = 1
  1509. end)
  1510. for _,V in next, SettingsOpened:GetDescendants() do
  1511. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  1512. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1513. Library.VisValues[V] = V.BackgroundTransparency
  1514. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  1515. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  1516. Library.VisValues[V] = V.TextTransparency
  1517. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  1518. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play();
  1519. Library.VisValues[V] = V.ImageTransparency
  1520. elseif V:IsA("UIStroke") and V.Transparency ~= 1 then
  1521. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  1522. Library.VisValues[V] = V.Transparency
  1523. end
  1524. end
  1525. end
  1526. end
  1527. end)
  1528.  
  1529. -- // Elements
  1530. Options.Elements = {
  1531. SectionContent = SettingsOpened;
  1532. }
  1533.  
  1534. -- // Returning
  1535. Toggle.Page.Sections[#Toggle.Page.Sections + 1] = Options
  1536. return setmetatable(Options, Library.Sections)
  1537. end
  1538.  
  1539. -- // Functions
  1540. local function SetState()
  1541. Toggle.Toggled = not Toggle.Toggled
  1542. TweenService:Create(ToggleText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Toggle.Toggled and Color3.fromRGB(255,255,255) or Color3.fromRGB(46, 47, 52)}):Play()
  1543. TweenService:Create(AccentFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = Toggle.Toggled and 0 or 1}):Play()
  1544. TweenService:Create(ToggleCheckImage, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = Toggle.Toggled and 0 or 1}):Play()
  1545. Library.Flags[Toggle.Flag] = Toggle.Toggled
  1546. Toggle.Callback(Toggle.Toggled)
  1547. end
  1548. --
  1549. Library:Connection(RealToggle.MouseButton1Down, SetState)
  1550.  
  1551. -- // Misc Functions
  1552. function Toggle.Set(bool)
  1553. bool = type(bool) == "boolean" and bool or false
  1554. if Toggle.Toggled ~= bool then
  1555. SetState()
  1556. end
  1557. end
  1558. Toggle.Set(Toggle.State)
  1559. Library.Flags[Toggle.Flag] = Toggle.State
  1560. Flags[Toggle.Flag] = Toggle.Set
  1561.  
  1562. -- // Returning
  1563. return Toggle
  1564. end
  1565. --
  1566. function Sections:Slider(Properties)
  1567. if not Properties then
  1568. Properties = {}
  1569. end
  1570. --
  1571. local Slider = {
  1572. Window = self.Window,
  1573. Page = self.Page,
  1574. Section = self,
  1575. Name = Properties.Name or nil,
  1576. Min = (Properties.min or Properties.Min or Properties.minimum or Properties.Minimum or 0),
  1577. State = (
  1578. Properties.state
  1579. or Properties.State
  1580. or Properties.def
  1581. or Properties.Def
  1582. or Properties.default
  1583. or Properties.Default
  1584. or 1
  1585. ),
  1586. Max = (Properties.max or Properties.Max or Properties.maximum or Properties.Maximum or 100),
  1587. Sub = (
  1588. Properties.suffix
  1589. or Properties.Suffix
  1590. or Properties.ending
  1591. or Properties.Ending
  1592. or Properties.prefix
  1593. or Properties.Prefix
  1594. or Properties.measurement
  1595. or Properties.Measurement
  1596. or ""
  1597. ),
  1598. Decimals = (Properties.decimals or Properties.Decimals or 1),
  1599. Callback = (
  1600. Properties.callback
  1601. or Properties.Callback
  1602. or Properties.callBack
  1603. or Properties.CallBack
  1604. or function() end
  1605. ),
  1606. Flag = (
  1607. Properties.flag
  1608. or Properties.Flag
  1609. or Properties.pointer
  1610. or Properties.Pointer
  1611. or Library.NextFlag()
  1612. )
  1613. }
  1614. local TextValue = ("[value]" .. Slider.Sub)
  1615. --
  1616. local RealSlider = Instance.new("Frame")
  1617. RealSlider.Name = "Slider"
  1618. RealSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1619. RealSlider.BackgroundTransparency = 1
  1620. RealSlider.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1621. RealSlider.BorderSizePixel = 0
  1622. RealSlider.Position = UDim2.new(0, 0, 0.346, 0)
  1623. RealSlider.Size = UDim2.new(1, 0, 0, 28)
  1624.  
  1625. local SliderText = Instance.new("TextLabel")
  1626. SliderText.Name = "Slider_text"
  1627. SliderText.FontFace = Library.UIFont
  1628. SliderText.Text = Slider.Name
  1629. SliderText.TextColor3 = Color3.fromRGB(46, 47, 52)
  1630. SliderText.TextSize = 12
  1631. SliderText.TextWrapped = true
  1632. SliderText.TextXAlignment = Enum.TextXAlignment.Left
  1633. SliderText.AnchorPoint = Vector2.new(0, 0.5)
  1634. SliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1635. SliderText.BackgroundTransparency = 1
  1636. SliderText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1637. SliderText.BorderSizePixel = 0
  1638. SliderText.Position = UDim2.new(0.039, 0, 0.5, 0)
  1639. SliderText.Size = UDim2.new(0, 110, 0, 22)
  1640.  
  1641. local UIPadding = Instance.new("UIPadding")
  1642. UIPadding.Name = "UIPadding"
  1643. UIPadding.PaddingLeft = UDim.new(0, 5)
  1644. UIPadding.Parent = SliderText
  1645.  
  1646. SliderText.Parent = RealSlider
  1647.  
  1648. local SliderBar = Instance.new("TextButton")
  1649. SliderBar.Name = "Slider_bar"
  1650. SliderBar.AnchorPoint = Vector2.new(0, 0.5)
  1651. SliderBar.BackgroundColor3 = Color3.fromRGB(29, 29, 34)
  1652. SliderBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1653. SliderBar.BorderSizePixel = 0
  1654. SliderBar.Position = UDim2.new(1, -92, 0.5, 0)
  1655. SliderBar.Size = UDim2.new(0, 82, 0, 4)
  1656. SliderBar.Text = ""
  1657. SliderBar.AutoButtonColor = false
  1658.  
  1659. local SliderIndicator = Library:NewInstance("TextButton", true)
  1660. SliderIndicator.Name = "slider_indicator"
  1661. SliderIndicator.BackgroundColor3 = Library.Accent
  1662. SliderIndicator.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1663. SliderIndicator.BorderSizePixel = 0
  1664. SliderIndicator.Size = UDim2.new(-0.668, 100, 1, 0)
  1665. SliderIndicator.Text = ""
  1666. SliderIndicator.AutoButtonColor = false
  1667.  
  1668. local Indicator = Library:NewInstance("TextButton", true)
  1669. Indicator.Name = "Indicator"
  1670. Indicator.AnchorPoint = Vector2.new(0, 0.5)
  1671. Indicator.BackgroundColor3 = Library.Accent
  1672. Indicator.BorderSizePixel = 0
  1673. Indicator.Position = UDim2.new(1, -6, 0.5, 0)
  1674. Indicator.Size = UDim2.new(0, 12, 0, 12)
  1675. Indicator.Text = ""
  1676. Indicator.AutoButtonColor = false
  1677.  
  1678. local UICorner = Instance.new("UICorner")
  1679. UICorner.Name = "UICorner"
  1680. UICorner.CornerRadius = UDim.new(1, 0)
  1681. UICorner.Parent = Indicator
  1682.  
  1683. Indicator.Parent = SliderIndicator
  1684.  
  1685. local UICorner1 = Instance.new("UICorner")
  1686. UICorner1.Name = "UICorner"
  1687. UICorner1.Parent = SliderIndicator
  1688.  
  1689. SliderIndicator.Parent = SliderBar
  1690.  
  1691. local UICorner2 = Instance.new("UICorner")
  1692. UICorner2.Name = "UICorner"
  1693. UICorner2.Parent = SliderBar
  1694.  
  1695. SliderBar.Parent = RealSlider
  1696.  
  1697. local SliderValue = Instance.new("TextBox")
  1698. SliderValue.Name = "Slider_value"
  1699. SliderValue.FontFace = Library.UIFont
  1700. SliderValue.Text = "100.00"
  1701. SliderValue.TextColor3 = Color3.fromRGB(226, 231, 255)
  1702. SliderValue.TextSize = 10
  1703. SliderValue.TextWrapped = true
  1704. SliderValue.TextXAlignment = Enum.TextXAlignment.Right
  1705. SliderValue.AnchorPoint = Vector2.new(0, 0.5)
  1706. SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1707. SliderValue.BackgroundTransparency = 1
  1708. SliderValue.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1709. SliderValue.BorderSizePixel = 0
  1710. SliderValue.Position = UDim2.new(0.45, -6, 0.5, 0)
  1711. SliderValue.Size = UDim2.new(0, 42, 0, 22)
  1712. SliderValue.PlaceholderText = ""
  1713. SliderValue.ClearTextOnFocus = false
  1714.  
  1715. local UIPadding1 = Instance.new("UIPadding")
  1716. UIPadding1.Name = "UIPadding"
  1717. UIPadding1.PaddingLeft = UDim.new(0, 5)
  1718. UIPadding1.Parent = SliderValue
  1719.  
  1720. SliderValue.Parent = RealSlider
  1721.  
  1722. RealSlider.Parent = Slider.Section.Elements.SectionContent
  1723.  
  1724. -- // Functions
  1725. local Sliding = false
  1726. local Val = Slider.State
  1727. local function Set(value)
  1728. value = math.clamp(Library:Round(value, Slider.Decimals), Slider.Min, Slider.Max)
  1729.  
  1730. local sizeX = ((value - Slider.Min) / (Slider.Max - Slider.Min))
  1731. TweenService:Create(SliderIndicator, TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(sizeX, 0, 1, 0)}):Play()
  1732. SliderValue.Text = TextValue:gsub("%[value%]", string.format("%.14g", value))
  1733. Val = value
  1734.  
  1735. Library.Flags[Slider.Flag] = value
  1736. Slider.Callback(value)
  1737. end
  1738. --
  1739. local function SlideInp(input)
  1740. local sizeX = (input.Position.X - SliderBar.AbsolutePosition.X) / SliderBar.AbsoluteSize.X
  1741. local value = ((Slider.Max - Slider.Min) * sizeX) + Slider.Min
  1742. Set(value)
  1743. end
  1744. --
  1745. Library:Connection(SliderIndicator.InputBegan, function(input)
  1746. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1747. Sliding = true
  1748. SlideInp(input)
  1749. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1750. end
  1751. end)
  1752. Library:Connection(SliderIndicator.InputEnded, function(input)
  1753. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1754. Sliding = false
  1755. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  1756. end
  1757. end)
  1758. Library:Connection(SliderBar.InputBegan, function(input)
  1759. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1760. Sliding = true
  1761. SlideInp(input)
  1762. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1763. end
  1764. end)
  1765. Library:Connection(SliderBar.InputEnded, function(input)
  1766. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1767. Sliding = false
  1768. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  1769. end
  1770. end)
  1771. Library:Connection(Indicator.InputBegan, function(input)
  1772. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1773. Sliding = true
  1774. SlideInp(input)
  1775. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1776. end
  1777. end)
  1778. Library:Connection(Indicator.InputEnded, function(input)
  1779. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1780. Sliding = false
  1781. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  1782. end
  1783. end)
  1784. Library:Connection(game:GetService("UserInputService").InputChanged, function(input)
  1785. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1786. if Sliding then
  1787. SlideInp(input)
  1788. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1789. end
  1790. end
  1791. end)
  1792. --
  1793. SliderValue.Focused:Connect(function()
  1794. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1795. end)
  1796. SliderValue.FocusLost:Connect(function(txt)
  1797. local NewV = tonumber(SliderValue.Text)
  1798. if NewV then
  1799. Set(NewV)
  1800. end
  1801. TweenService:Create(SliderText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  1802. end)
  1803. --
  1804. function Slider:Set(Value)
  1805. Set(Value)
  1806. end
  1807. --
  1808. Flags[Slider.Flag] = Set
  1809. Library.Flags[Slider.Flag] = Slider.State
  1810. Set(Slider.State)
  1811.  
  1812. -- // Returning
  1813. return Slider
  1814. end
  1815. --
  1816. function Sections:List(Properties)
  1817. local Properties = Properties or {};
  1818. local Dropdown = {
  1819. Window = self.Window,
  1820. Page = self.Page,
  1821. Section = self,
  1822. Open = false,
  1823. Name = Properties.Name or Properties.name or nil,
  1824. Options = (Properties.options or Properties.Options or Properties.values or Properties.Values or {
  1825. "1",
  1826. "2",
  1827. "3",
  1828. }),
  1829. Max = (Properties.Max or Properties.max or nil),
  1830. ScrollMax = (Properties.ScrollingMax or Properties.scrollingmax or nil),
  1831. State = (
  1832. Properties.state
  1833. or Properties.State
  1834. or Properties.def
  1835. or Properties.Def
  1836. or Properties.default
  1837. or Properties.Default
  1838. or nil
  1839. ),
  1840. Callback = (
  1841. Properties.callback
  1842. or Properties.Callback
  1843. or Properties.callBack
  1844. or Properties.CallBack
  1845. or function() end
  1846. ),
  1847. Flag = (
  1848. Properties.flag
  1849. or Properties.Flag
  1850. or Properties.pointer
  1851. or Properties.Pointer
  1852. or Library.NextFlag()
  1853. ),
  1854. OptionInsts = {},
  1855. }
  1856. --
  1857. local RealDropdown = Instance.new("Frame")
  1858. RealDropdown.Name = "Dropdown"
  1859. RealDropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1860. RealDropdown.BackgroundTransparency = 1
  1861. RealDropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1862. RealDropdown.BorderSizePixel = 0
  1863. RealDropdown.Position = UDim2.new(0, 0, 0.346, 0)
  1864. RealDropdown.Size = UDim2.new(1, 0, 0, 28)
  1865.  
  1866. local DropdownText = Instance.new("TextLabel")
  1867. DropdownText.Name = "Dropdown_text"
  1868. DropdownText.FontFace = Library.UIFont
  1869. DropdownText.Text = Dropdown.Name
  1870. DropdownText.TextColor3 = Color3.fromRGB(46, 47, 52)
  1871. DropdownText.TextSize = 12
  1872. DropdownText.TextWrapped = true
  1873. DropdownText.TextXAlignment = Enum.TextXAlignment.Left
  1874. DropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1875. DropdownText.BackgroundTransparency = 1
  1876. DropdownText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1877. DropdownText.BorderSizePixel = 0
  1878. DropdownText.Position = UDim2.new(0.0389, 0, 0.0606, 0)
  1879. DropdownText.Size = UDim2.new(0, 120, 0, 22)
  1880.  
  1881. local UIPadding = Instance.new("UIPadding")
  1882. UIPadding.Name = "UIPadding"
  1883. UIPadding.PaddingLeft = UDim.new(0, 5)
  1884. UIPadding.Parent = DropdownText
  1885.  
  1886. DropdownText.Parent = RealDropdown
  1887.  
  1888. local DropdownFrame = Instance.new("TextButton")
  1889. DropdownFrame.Name = "Dropdown_frame"
  1890. DropdownFrame.BackgroundColor3 = Color3.fromRGB(255, 110, 7)
  1891. DropdownFrame.BackgroundTransparency = 1
  1892. DropdownFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1893. DropdownFrame.BorderSizePixel = 0
  1894. DropdownFrame.Position = UDim2.new(1, -94, 0.118, 0)
  1895. DropdownFrame.Size = UDim2.new(0, 84, 0, 20)
  1896. DropdownFrame.Text = ""
  1897. DropdownFrame.AutoButtonColor = false
  1898.  
  1899. local UICorner = Instance.new("UICorner")
  1900. UICorner.Name = "UICorner"
  1901. UICorner.CornerRadius = UDim.new(0, 6)
  1902. UICorner.Parent = DropdownFrame
  1903.  
  1904. local Currentoption = Instance.new("TextLabel")
  1905. Currentoption.Name = "Currentoption"
  1906. Currentoption.FontFace = Library.UIFont
  1907. Currentoption.Text = "Select"
  1908. Currentoption.TextColor3 = Color3.fromRGB(255, 255, 255)
  1909. Currentoption.TextXAlignment = Enum.TextXAlignment.Right
  1910. Currentoption.TextSize = 11
  1911. Currentoption.TextWrapped = true
  1912. Currentoption.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1913. Currentoption.BackgroundTransparency = 1
  1914. Currentoption.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1915. Currentoption.BorderSizePixel = 0
  1916. Currentoption.Position = UDim2.new(0.00956, 0, 0, 0)
  1917. Currentoption.Size = UDim2.new(0, 61, 0, 20)
  1918. Currentoption.Parent = DropdownFrame
  1919.  
  1920. local DropdownArrowIcom = Library:NewInstance("ImageLabel", true)
  1921. DropdownArrowIcom.Name = "Dropdown_arrow_icom"
  1922. DropdownArrowIcom.Image = "rbxassetid://16995924859"
  1923. DropdownArrowIcom.ImageColor3 = Library.Accent
  1924. DropdownArrowIcom.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1925. DropdownArrowIcom.BackgroundTransparency = 1
  1926. DropdownArrowIcom.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1927. DropdownArrowIcom.BorderSizePixel = 0
  1928. DropdownArrowIcom.Position = UDim2.new(0.8, 0, 0.15, 0)
  1929. DropdownArrowIcom.Size = UDim2.new(0, 11, 0, 11)
  1930. DropdownArrowIcom.Parent = DropdownFrame
  1931.  
  1932. local DropdownOpenedFrame = Instance.new("ScrollingFrame")
  1933. DropdownOpenedFrame.Name = "DropdownOpenedFrame"
  1934. DropdownOpenedFrame.AutomaticSize = Enum.AutomaticSize.Y
  1935. DropdownOpenedFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1936. DropdownOpenedFrame.CanvasSize = UDim2.new()
  1937. DropdownOpenedFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  1938. DropdownOpenedFrame.ScrollBarImageTransparency = 1
  1939. DropdownOpenedFrame.ScrollBarThickness = 0
  1940. DropdownOpenedFrame.Active = true
  1941. DropdownOpenedFrame.BackgroundColor3 = Color3.fromRGB(13, 15, 16)
  1942. DropdownOpenedFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1943. DropdownOpenedFrame.BorderSizePixel = 0
  1944. DropdownOpenedFrame.Position = UDim2.new(-0.008, 0, -0.5, 0)
  1945. DropdownOpenedFrame.Size = UDim2.new(0, 94, 0, 0)
  1946. DropdownOpenedFrame.AnchorPoint = Vector2.new(0,0.5)
  1947. DropdownOpenedFrame.Visible = false
  1948. DropdownOpenedFrame.BackgroundTransparency = 1
  1949.  
  1950. local UIListLayout = Instance.new("UIListLayout")
  1951. UIListLayout.Name = "UIListLayout"
  1952. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1953. UIListLayout.Parent = DropdownOpenedFrame
  1954.  
  1955. local UIPadding3 = Instance.new("UIPadding")
  1956. UIPadding3.Name = "UIPadding"
  1957. UIPadding3.PaddingBottom = UDim.new(0, 5)
  1958. UIPadding3.PaddingTop = UDim.new(0, 5)
  1959. UIPadding3.Parent = DropdownOpenedFrame
  1960.  
  1961. DropdownOpenedFrame.Parent = DropdownFrame
  1962.  
  1963. DropdownFrame.Parent = RealDropdown
  1964.  
  1965. RealDropdown.Parent = Dropdown.Section.Elements.SectionContent
  1966.  
  1967. -- // Connections
  1968. Library:Connection(DropdownFrame.MouseButton1Down, function()
  1969. if DropdownOpenedFrame.Visible == false then
  1970. TweenService:Create(DropdownOpenedFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(-0.008, 0, 0.5, 0)}):Play()
  1971. end
  1972. DropdownOpenedFrame.Visible = true
  1973. Library.Cooldown = true
  1974. TweenService:Create(DropdownText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  1975. RealDropdown.ZIndex = 59
  1976. TweenService:Create(DropdownOpenedFrame, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  1977. for _,V in next, DropdownOpenedFrame:GetDescendants() do
  1978. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  1979. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = Library.VisValues[V]}):Play()
  1980. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  1981. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = Library.VisValues[V]}):Play()
  1982. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  1983. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = Library.VisValues[V]}):Play();
  1984. elseif V:IsA("UIStroke") and V.Transparency ~= 1 then
  1985. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = Library.VisValues[V]}):Play()
  1986. end
  1987. end
  1988. end)
  1989. Library:Connection(game:GetService("UserInputService").InputBegan, function(Input)
  1990. if DropdownOpenedFrame.Visible and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1991. if not Library:IsMouseOverFrame(DropdownOpenedFrame) and not Library:IsMouseOverFrame(RealDropdown) then
  1992. RealDropdown.ZIndex = 56
  1993. TweenService:Create(DropdownText, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  1994. TweenService:Create(DropdownOpenedFrame, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  1995. TweenService:Create(DropdownOpenedFrame, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Position = UDim2.new(-0.008, 0, -0.5, 0)}):Play()
  1996. task.spawn(function()
  1997. task.wait(0.1)
  1998. DropdownOpenedFrame.Visible = false
  1999. DropdownOpenedFrame.ZIndex = 1
  2000. end)
  2001. for _,V in next, DropdownOpenedFrame:GetDescendants() do
  2002. if V:IsA("Frame") or V:IsA("TextButton") or V:IsA("ScrollingFrame") then
  2003. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2004. Library.VisValues[V] = V.BackgroundTransparency
  2005. elseif V:IsA("TextLabel") or V:IsA("TextBox") then
  2006. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2007. Library.VisValues[V] = V.TextTransparency
  2008. elseif V:IsA("ImageLabel") or V:IsA("ImageButton") then
  2009. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play();
  2010. Library.VisValues[V] = V.ImageTransparency
  2011. elseif V:IsA("UIStroke") and V.Transparency ~= 1 then
  2012. TweenService:Create(V, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  2013. Library.VisValues[V] = V.Transparency
  2014. end
  2015. end
  2016. Library.Cooldown = false
  2017. end
  2018. end
  2019. end)
  2020. --
  2021. local chosen = Dropdown.Max and {} or nil
  2022. local Count = 0
  2023. --
  2024. local function handleoptionclick(option, button, text, accent, darktext)
  2025. button.MouseButton1Down:Connect(function()
  2026. if Dropdown.Max then
  2027. if table.find(chosen, option) then
  2028. table.remove(chosen, table.find(chosen, option))
  2029.  
  2030. local textchosen = {}
  2031. local cutobject = false
  2032.  
  2033. for _, opt in next, chosen do
  2034. table.insert(textchosen, opt)
  2035. end
  2036.  
  2037. Currentoption.Text = #chosen == 0 and "Select" or table.concat(textchosen, ",") .. (cutobject and ", ..." or "")
  2038.  
  2039. TweenService:Create(text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2040. TweenService:Create(darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2041. TweenService:Create(accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2042.  
  2043. Library.Flags[Dropdown.Flag] = chosen
  2044. Dropdown.Callback(chosen)
  2045. else
  2046. if #chosen == Dropdown.Max then
  2047. TweenService:Create(Dropdown.OptionInsts[chosen[1]].text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2048. TweenService:Create(Dropdown.OptionInsts[chosen[1]].darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2049. TweenService:Create(Dropdown.OptionInsts[chosen[1]].accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2050. table.remove(chosen, 1)
  2051. end
  2052.  
  2053. table.insert(chosen, option)
  2054.  
  2055. local textchosen = {}
  2056. local cutobject = false
  2057.  
  2058. for _, opt in next, chosen do
  2059. table.insert(textchosen, opt)
  2060. end
  2061.  
  2062. Currentoption.Text = #chosen == 0 and "Select" or table.concat(textchosen, ",") .. (cutobject and ", ..." or "")
  2063.  
  2064. TweenService:Create(text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2065. TweenService:Create(darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2066. TweenService:Create(accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  2067.  
  2068. Library.Flags[Dropdown.Flag] = chosen
  2069. Dropdown.Callback(chosen)
  2070. end
  2071. else
  2072. for opt, tbl in next, Dropdown.OptionInsts do
  2073. if opt ~= option then
  2074. TweenService:Create(tbl.text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2075. TweenService:Create(tbl.darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2076. TweenService:Create(tbl.accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2077. end
  2078. end
  2079. chosen = option
  2080. Currentoption.Text = chosen
  2081. TweenService:Create(text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2082. TweenService:Create(darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2083. TweenService:Create(accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  2084. Library.Flags[Dropdown.Flag] = option
  2085. Dropdown.Callback(option)
  2086. end
  2087. end)
  2088. end
  2089. --
  2090. local function createoptions(tbl)
  2091. for _, option in next, tbl do
  2092. Dropdown.OptionInsts[option] = {}
  2093. local Option1Choosed = Instance.new("TextButton")
  2094. Option1Choosed.Name = "option1_choosed"
  2095. Option1Choosed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2096. Option1Choosed.BackgroundTransparency = 1
  2097. Option1Choosed.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2098. Option1Choosed.BorderSizePixel = 0
  2099. Option1Choosed.Size = UDim2.new(1,0, 0, 22)
  2100. Option1Choosed.Text = ""
  2101. Option1Choosed.AutoButtonColor = false
  2102.  
  2103. local OptionName = Instance.new("TextLabel")
  2104. OptionName.Name = "Option_name"
  2105. OptionName.FontFace = Library.UIFont
  2106. OptionName.Text = option
  2107. OptionName.TextColor3 = Color3.fromRGB(255,255,255)
  2108. OptionName.AnchorPoint = Vector2.new(0.5,0.5)
  2109. OptionName.Position = UDim2.new(0.5, -8,0.5, -1)
  2110. OptionName.TextSize = 11
  2111. OptionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2112. OptionName.BackgroundTransparency = 1
  2113. OptionName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2114. OptionName.BorderSizePixel = 0
  2115. OptionName.Size = UDim2.new(0, 70, 0, 22)
  2116. OptionName.TextWrapped = true
  2117.  
  2118. local OptionNameAccent = Library:NewInstance("TextLabel", true)
  2119. OptionNameAccent.Name = "Option_name"
  2120. OptionNameAccent.FontFace = Library.UIFont
  2121. OptionNameAccent.Text = option
  2122. OptionNameAccent.TextColor3 = Library.Accent
  2123. OptionNameAccent.AnchorPoint = Vector2.new(0.5,0.5)
  2124. OptionNameAccent.Position = UDim2.new(0.5, -8,0.5, -1)
  2125. OptionNameAccent.TextSize = 11
  2126. OptionNameAccent.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2127. OptionNameAccent.BackgroundTransparency = 1
  2128. OptionNameAccent.TextTransparency = 1
  2129. OptionNameAccent.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2130. OptionNameAccent.BorderSizePixel = 0
  2131. OptionNameAccent.Size = UDim2.new(0, 70, 0, 22)
  2132. OptionNameAccent.TextWrapped = true
  2133.  
  2134. local UIPadding1 = Instance.new("UIPadding")
  2135. UIPadding1.Name = "UIPadding"
  2136. UIPadding1.PaddingTop = UDim.new(0, 2)
  2137. UIPadding1.Parent = OptionName
  2138.  
  2139. OptionName.Parent = Option1Choosed
  2140. OptionNameAccent.Parent = Option1Choosed
  2141.  
  2142. local OptionIndicator = Instance.new("Frame")
  2143. OptionIndicator.Name = "option_indicator"
  2144. OptionIndicator.BackgroundColor3 = Color3.fromRGB(41, 42, 47)
  2145. OptionIndicator.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2146. OptionIndicator.BorderSizePixel = 0
  2147. OptionIndicator.Position = UDim2.new(0.911, 0, 0.5, 0)
  2148. OptionIndicator.Size = UDim2.new(0, 4, 0, 14)
  2149. OptionIndicator.AnchorPoint = Vector2.new(0,0.5)
  2150.  
  2151. local AccentIndicator = Library:NewInstance("Frame", true)
  2152. AccentIndicator.Name = "option_indicator"
  2153. AccentIndicator.BackgroundColor3 = Library.Accent
  2154. AccentIndicator.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2155. AccentIndicator.BorderSizePixel = 0
  2156. AccentIndicator.Position = UDim2.new(0.911, 0, 0.5, 0)
  2157. AccentIndicator.Size = UDim2.new(0, 4, 0, 14)
  2158. AccentIndicator.AnchorPoint = Vector2.new(0,0.5)
  2159. AccentIndicator.BackgroundTransparency = 1
  2160.  
  2161. local UICorner1 = Instance.new("UICorner")
  2162. UICorner1.Name = "UICorner"
  2163. UICorner1.CornerRadius = UDim.new(0, 99)
  2164. UICorner1.Parent = OptionIndicator
  2165.  
  2166. local UICorner2 = Instance.new("UICorner")
  2167. UICorner2.Name = "UICorner"
  2168. UICorner2.CornerRadius = UDim.new(0, 99)
  2169. UICorner2.Parent = AccentIndicator
  2170.  
  2171. OptionIndicator.Parent = Option1Choosed
  2172. AccentIndicator.Parent = Option1Choosed
  2173.  
  2174. Option1Choosed.Parent = DropdownOpenedFrame
  2175. Dropdown.OptionInsts[option].button = Option1Choosed
  2176. Dropdown.OptionInsts[option].darktext = OptionName
  2177. Dropdown.OptionInsts[option].text = OptionNameAccent
  2178. Dropdown.OptionInsts[option].accent = AccentIndicator
  2179.  
  2180. Count = Count + 1
  2181.  
  2182. if Dropdown.ScrollMax then
  2183. DropdownOpenedFrame.AutomaticSize = Enum.AutomaticSize.None
  2184. if Count < Dropdown.ScrollMax then
  2185. else
  2186. DropdownOpenedFrame.Size = UDim2.new(0, 84, 0, 22*Dropdown.ScrollMax)
  2187. end
  2188. else
  2189. DropdownOpenedFrame.AutomaticSize = Enum.AutomaticSize.Y
  2190. end
  2191. handleoptionclick(option, Option1Choosed, OptionNameAccent, AccentIndicator, OptionName)
  2192. end
  2193. end
  2194. createoptions(Dropdown.Options)
  2195. --
  2196. local set = function(option)
  2197. if Dropdown.Max then
  2198. table.clear(chosen)
  2199. option = type(option) == "table" and option or {}
  2200.  
  2201. for opt, tbl in next, Dropdown.OptionInsts do
  2202. if not table.find(option, opt) then
  2203. TweenService:Create(tbl.text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2204. TweenService:Create(tbl.darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2205. TweenService:Create(tbl.accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2206. end
  2207. end
  2208.  
  2209. for i, opt in next, option do
  2210. if table.find(Dropdown.Options, opt) and #chosen < Dropdown.Max then
  2211. table.insert(chosen, opt)
  2212. TweenService:Create(Dropdown.OptionInsts[opt].text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2213. TweenService:Create(Dropdown.OptionInsts[opt].darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2214. TweenService:Create(Dropdown.OptionInsts[opt].accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2215. end
  2216. end
  2217.  
  2218. local textchosen = {}
  2219. local cutobject = false
  2220.  
  2221. for _, opt in next, chosen do
  2222. table.insert(textchosen, opt)
  2223. end
  2224.  
  2225. Currentoption.Text = #chosen == 0 and "Select" or table.concat(textchosen, ",") .. (cutobject and ", ..." or "")
  2226.  
  2227. Library.Flags[Dropdown.Flag] = chosen
  2228. Dropdown.Callback(chosen)
  2229. end
  2230. end
  2231. --
  2232. function Dropdown:Set(option)
  2233. if Dropdown.Max then
  2234. set(option)
  2235. else
  2236. for opt, tbl in next, Dropdown.OptionInsts do
  2237. if opt ~= option then
  2238. TweenService:Create(tbl.text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2239. TweenService:Create(tbl.darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2240. TweenService:Create(tbl.accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  2241. end
  2242. end
  2243. if table.find(Dropdown.Options, option) then
  2244. chosen = option
  2245. Currentoption.Text = chosen
  2246. TweenService:Create(Dropdown.OptionInsts[option].text, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  2247. TweenService:Create(Dropdown.OptionInsts[option].darktext, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  2248. TweenService:Create(Dropdown.OptionInsts[option].accent, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  2249. Library.Flags[Dropdown.Flag] = chosen
  2250. Dropdown.Callback(chosen)
  2251. else
  2252. Currentoption.Text = "Select"
  2253. chosen = nil
  2254. Library.Flags[Dropdown.Flag] = chosen
  2255. Dropdown.Callback(chosen)
  2256. end
  2257. end
  2258. end
  2259. --
  2260. function Dropdown:Refresh(tbl)
  2261. for _, opt in next, Dropdown.OptionInsts do
  2262. coroutine.wrap(function()
  2263. opt.text:Destroy()
  2264. opt.button:Destroy()
  2265. end)()
  2266. end
  2267. table.clear(Dropdown.OptionInsts)
  2268.  
  2269. createoptions(tbl)
  2270.  
  2271. if Dropdown.Max then
  2272. table.clear(chosen)
  2273. else
  2274. chosen = nil
  2275. end
  2276.  
  2277. Library.Flags[Dropdown.Flag] = chosen
  2278. Dropdown.Callback(chosen)
  2279. end
  2280.  
  2281. -- // Returning
  2282. if Dropdown.Max then
  2283. Flags[Dropdown.Flag] = set
  2284. else
  2285. Flags[Dropdown.Flag] = Dropdown
  2286. end
  2287. Dropdown:Set(Dropdown.State)
  2288. return Dropdown
  2289. end
  2290. --
  2291. function Sections:Keybind(Properties)
  2292. local Properties = Properties or {}
  2293. local Keybind = {
  2294. Section = self,
  2295. Name = Properties.name or Properties.Name or "Keybind",
  2296. State = (
  2297. Properties.state
  2298. or Properties.State
  2299. or Properties.def
  2300. or Properties.Def
  2301. or Properties.default
  2302. or Properties.Default
  2303. or Enum.KeyCode.E
  2304. ),
  2305. Mode = (Properties.mode or Properties.Mode or "Toggle"),
  2306. UseKey = (Properties.UseKey or false),
  2307. Callback = (
  2308. Properties.callback
  2309. or Properties.Callback
  2310. or Properties.callBack
  2311. or Properties.CallBack
  2312. or function() end
  2313. ),
  2314. Flag = (
  2315. Properties.flag
  2316. or Properties.Flag
  2317. or Properties.pointer
  2318. or Properties.Pointer
  2319. or Library.NextFlag()
  2320. ),
  2321. Binding = nil,
  2322. }
  2323. local Key
  2324. local State = false
  2325. --
  2326. local KeybindFrame = Instance.new("Frame")
  2327. KeybindFrame.Name = "Keybind_frame"
  2328. KeybindFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2329. KeybindFrame.BackgroundTransparency = 1
  2330. KeybindFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2331. KeybindFrame.BorderSizePixel = 0
  2332. KeybindFrame.Position = UDim2.new(0, 0, 0.846, 0)
  2333. KeybindFrame.Size = UDim2.new(1, 0, 0, 26)
  2334.  
  2335. local KeybindName = Instance.new("TextLabel")
  2336. KeybindName.Name = "Keybind_name"
  2337. KeybindName.FontFace = Library.UIFont
  2338. KeybindName.Text = Keybind.Name
  2339. KeybindName.TextColor3 = Color3.fromRGB(46, 47, 52)
  2340. KeybindName.TextSize = 13
  2341. KeybindName.TextXAlignment = Enum.TextXAlignment.Left
  2342. KeybindName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2343. KeybindName.BackgroundTransparency = 1
  2344. KeybindName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2345. KeybindName.BorderSizePixel = 0
  2346. KeybindName.Position = UDim2.new(0, 11, 0, 0)
  2347. KeybindName.Size = UDim2.new(0, 120, 0, 26)
  2348. KeybindName.Parent = KeybindFrame
  2349.  
  2350. local KeybindHolder = Instance.new("Frame")
  2351. KeybindHolder.Name = "Keybind_holder"
  2352. KeybindHolder.AnchorPoint = Vector2.new(0, 0.5)
  2353. KeybindHolder.BackgroundColor3 = Color3.fromRGB(13, 15, 16)
  2354. KeybindHolder.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2355. KeybindHolder.BorderSizePixel = 0
  2356. KeybindHolder.Position = UDim2.new(1, -53, 0.5, 0)
  2357. KeybindHolder.Size = UDim2.new(0, 43, 0, 20)
  2358.  
  2359. local UICorner = Instance.new("UICorner")
  2360. UICorner.Name = "UICorner"
  2361. UICorner.CornerRadius = UDim.new(0, 6)
  2362. UICorner.Parent = KeybindHolder
  2363.  
  2364. local KeybindDetector = Instance.new("TextButton")
  2365. KeybindDetector.Name = "Keybind_detector"
  2366. KeybindDetector.FontFace = Library.UIFont
  2367. KeybindDetector.Text = "None"
  2368. KeybindDetector.TextColor3 = Color3.fromRGB(255, 255, 255)
  2369. KeybindDetector.TextSize = 11
  2370. KeybindDetector.TextWrapped = true
  2371. KeybindDetector.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2372. KeybindDetector.BackgroundTransparency = 1
  2373. KeybindDetector.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2374. KeybindDetector.BorderSizePixel = 0
  2375. KeybindDetector.Size = UDim2.new(0, 43, 0, 20)
  2376. KeybindDetector.Parent = KeybindHolder
  2377.  
  2378. KeybindHolder.Parent = KeybindFrame
  2379.  
  2380. KeybindFrame.Parent = Keybind.Section.Elements.SectionContent
  2381.  
  2382. -- // Functions
  2383. local function set(newkey)
  2384. if string.find(tostring(newkey), "Enum") then
  2385. if c then
  2386. c:Disconnect()
  2387. if Keybind.Flag then
  2388. Library.Flags[Keybind.Flag] = false
  2389. end
  2390. Keybind.Callback(false)
  2391. end
  2392. if tostring(newkey):find("Enum.KeyCode.") then
  2393. newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  2394. elseif tostring(newkey):find("Enum.UserInputType.") then
  2395. newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  2396. end
  2397. if newkey == Enum.KeyCode.Backspace then
  2398. Key = nil
  2399. if Keybind.UseKey then
  2400. if Keybind.Flag then
  2401. Library.Flags[Keybind.Flag] = Key
  2402. end
  2403. Keybind.Callback(Key)
  2404. end
  2405. local text = "None"
  2406.  
  2407. KeybindDetector.Text = text
  2408. elseif newkey ~= nil then
  2409. Key = newkey
  2410. if Keybind.UseKey then
  2411. if Keybind.Flag then
  2412. Library.Flags[Keybind.Flag] = Key
  2413. end
  2414. Keybind.Callback(Key)
  2415. end
  2416. local text = (Library.Keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", ""))
  2417.  
  2418. KeybindDetector.Text = text
  2419. end
  2420.  
  2421. Library.Flags[Keybind.Flag .. "_KEY"] = newkey
  2422. elseif table.find({ "Always", "Toggle", "Hold" }, newkey) then
  2423. if not Keybind.UseKey then
  2424. Library.Flags[Keybind.Flag .. "_KEY STATE"] = newkey
  2425. Keybind.Mode = newkey
  2426. if Keybind.Mode == "Always" then
  2427. State = true
  2428. if Keybind.Flag then
  2429. Library.Flags[Keybind.Flag] = State
  2430. end
  2431. Keybind.Callback(true)
  2432. end
  2433. end
  2434. else
  2435. State = newkey
  2436. if Keybind.Flag then
  2437. Library.Flags[Keybind.Flag] = newkey
  2438. end
  2439. Keybind.Callback(newkey)
  2440. end
  2441. end
  2442. --
  2443. set(Keybind.State)
  2444. set(Keybind.Mode)
  2445. KeybindDetector.MouseButton1Click:Connect(function()
  2446. if not Keybind.Binding then
  2447.  
  2448. KeybindDetector.Text = "..."
  2449. TweenService:Create(KeybindName, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  2450.  
  2451.  
  2452. Keybind.Binding = Library:Connection(
  2453. game:GetService("UserInputService").InputBegan,
  2454. function(input, gpe)
  2455. set(
  2456. input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode
  2457. or input.UserInputType
  2458. )
  2459. Library:Disconnect(Keybind.Binding)
  2460. task.wait()
  2461. Keybind.Binding = nil
  2462. TweenService:Create(KeybindName, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(46, 47, 52)}):Play()
  2463. end
  2464. )
  2465. end
  2466. end)
  2467. --
  2468. Library:Connection(game:GetService("UserInputService").InputBegan, function(inp)
  2469. if (inp.KeyCode == Key or inp.UserInputType == Key) and not Keybind.Binding and not Keybind.UseKey then
  2470. if Keybind.Mode == "Hold" then
  2471. if Keybind.Flag then
  2472. Library.Flags[Keybind.Flag] = true
  2473. end
  2474. c = Library:Connection(game:GetService("RunService").RenderStepped, function()
  2475. if Keybind.Callback then
  2476. Keybind.Callback(true)
  2477. end
  2478. end)
  2479. elseif Keybind.Mode == "Toggle" then
  2480. State = not State
  2481. if Keybind.Flag then
  2482. Library.Flags[Keybind.Flag] = State
  2483. end
  2484. Keybind.Callback(State)
  2485. end
  2486. end
  2487. end)
  2488. --
  2489. Library:Connection(game:GetService("UserInputService").InputEnded, function(inp)
  2490. if Keybind.Mode == "Hold" and not Keybind.UseKey then
  2491. if Key ~= "" or Key ~= nil then
  2492. if inp.KeyCode == Key or inp.UserInputType == Key then
  2493. if c then
  2494. c:Disconnect()
  2495. if Keybind.Flag then
  2496. Library.Flags[Keybind.Flag] = false
  2497. end
  2498. if Keybind.Callback then
  2499. Keybind.Callback(false)
  2500. end
  2501. end
  2502. end
  2503. end
  2504. end
  2505. end)
  2506. --
  2507. Library.Flags[Keybind.Flag .. "_KEY"] = Keybind.State
  2508. Library.Flags[Keybind.Flag .. "_KEY STATE"] = Keybind.Mode
  2509. Flags[Keybind.Flag] = set
  2510. Flags[Keybind.Flag .. "_KEY"] = set
  2511. Flags[Keybind.Flag .. "_KEY STATE"] = set
  2512. --
  2513. function Keybind:Set(key)
  2514. set(key)
  2515. end
  2516.  
  2517. -- // Returning
  2518. return Keybind
  2519. end
  2520. --
  2521. function Sections:Colorpicker(Properties)
  2522. local Properties = Properties or {}
  2523. local Colorpicker = {
  2524. Window = self.Window,
  2525. Page = self.Page,
  2526. Section = self,
  2527. Name = (Properties.Name or "Colorpicker"),
  2528. State = (
  2529. Properties.state
  2530. or Properties.State
  2531. or Properties.def
  2532. or Properties.Def
  2533. or Properties.default
  2534. or Properties.Default
  2535. or Color3.fromRGB(255, 0, 0)
  2536. ),
  2537. Alpha = (
  2538. Properties.alpha
  2539. or Properties.Alpha
  2540. or Properties.transparency
  2541. or Properties.Transparency
  2542. or 1
  2543. ),
  2544. Callback = (
  2545. Properties.callback
  2546. or Properties.Callback
  2547. or Properties.callBack
  2548. or Properties.CallBack
  2549. or function() end
  2550. ),
  2551. Flag = (
  2552. Properties.flag
  2553. or Properties.Flag
  2554. or Properties.pointer
  2555. or Properties.Pointer
  2556. or Library.NextFlag()
  2557. ),
  2558. Colorpickers = 0,
  2559. }
  2560. --
  2561. local RealColorpicker = Instance.new("Frame")
  2562. RealColorpicker.Name = "Colorpicker"
  2563. RealColorpicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2564. RealColorpicker.BackgroundTransparency = 1
  2565. RealColorpicker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2566. RealColorpicker.BorderSizePixel = 0
  2567. RealColorpicker.Position = UDim2.new(0, 0, 0.346, 0)
  2568. RealColorpicker.Size = UDim2.new(1, 0, 0, 28)
  2569.  
  2570. local ColorpickerText = Instance.new("TextLabel")
  2571. ColorpickerText.Name = "Colorpicker_text"
  2572. ColorpickerText.FontFace = Library.UIFont
  2573. ColorpickerText.Text = Colorpicker.Name
  2574. ColorpickerText.TextColor3 = Color3.fromRGB(46, 47, 52)
  2575. ColorpickerText.TextSize = 12
  2576. ColorpickerText.TextWrapped = true
  2577. ColorpickerText.TextXAlignment = Enum.TextXAlignment.Left
  2578. ColorpickerText.AnchorPoint = Vector2.new(0, 0.5)
  2579. ColorpickerText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2580. ColorpickerText.BackgroundTransparency = 1
  2581. ColorpickerText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2582. ColorpickerText.BorderSizePixel = 0
  2583. ColorpickerText.Position = UDim2.new(0.039, 0, 0.5, 0)
  2584. ColorpickerText.Size = UDim2.new(0, 197, 0, 22)
  2585.  
  2586. local UIPadding = Instance.new("UIPadding")
  2587. UIPadding.Name = "UIPadding"
  2588. UIPadding.PaddingLeft = UDim.new(0, 5)
  2589. UIPadding.Parent = ColorpickerText
  2590.  
  2591. ColorpickerText.Parent = RealColorpicker
  2592.  
  2593. RealColorpicker.Parent = Colorpicker.Section.Elements.SectionContent
  2594.  
  2595. -- // Functions
  2596. Colorpicker.Colorpickers = Colorpicker.Colorpickers + 1
  2597. local colorpickertypes = Library:NewPicker(
  2598. Colorpicker.Name,
  2599. Colorpicker.State,
  2600. Colorpicker.Alpha,
  2601. RealColorpicker,
  2602. Colorpicker.Colorpickers,
  2603. Colorpicker.Flag,
  2604. Colorpicker.Callback
  2605. )
  2606.  
  2607. function Colorpicker:Set(color)
  2608. colorpickertypes:Set(color, false, true)
  2609. end
  2610.  
  2611. function Colorpicker:Colorpicker(Properties)
  2612. local Properties = Properties or {}
  2613. local NewColorpicker = {
  2614. State = (
  2615. Properties.state
  2616. or Properties.State
  2617. or Properties.def
  2618. or Properties.Def
  2619. or Properties.default
  2620. or Properties.Default
  2621. or Color3.fromRGB(255, 0, 0)
  2622. ),
  2623. Alpha = (
  2624. Properties.alpha
  2625. or Properties.Alpha
  2626. or Properties.transparency
  2627. or Properties.Transparency
  2628. or 1
  2629. ),
  2630. Callback = (
  2631. Properties.callback
  2632. or Properties.Callback
  2633. or Properties.callBack
  2634. or Properties.CallBack
  2635. or function() end
  2636. ),
  2637. Flag = (
  2638. Properties.flag
  2639. or Properties.Flag
  2640. or Properties.pointer
  2641. or Properties.Pointer
  2642. or Library.NextFlag()
  2643. ),
  2644. }
  2645. -- // Functions
  2646. Colorpicker.Colorpickers = Colorpicker.Colorpickers + 1
  2647. local Newcolorpickertypes = Library:NewPicker(
  2648. "",
  2649. NewColorpicker.State,
  2650. NewColorpicker.Alpha,
  2651. RealColorpicker,
  2652. Colorpicker.Colorpickers,
  2653. NewColorpicker.Flag,
  2654. NewColorpicker.Callback
  2655. )
  2656.  
  2657. function NewColorpicker:Set(color)
  2658. Newcolorpickertypes:Set(color)
  2659. end
  2660.  
  2661. -- // Returning
  2662. return NewColorpicker
  2663. end
  2664.  
  2665. -- // Returning
  2666. return Colorpicker
  2667. end
  2668. --
  2669. function Sections:Textbox(Properties)
  2670. local Properties = Properties or {}
  2671. local Textbox = {
  2672. Window = self.Window,
  2673. Page = self.Page,
  2674. Section = self,
  2675. Name = (Properties.Name or Properties.name or "textbox"),
  2676. Placeholder = (
  2677. Properties.placeholder
  2678. or Properties.Placeholder
  2679. or Properties.holder
  2680. or Properties.Holder
  2681. or "Enter your text here"
  2682. ),
  2683. State = (
  2684. Properties.state
  2685. or Properties.State
  2686. or Properties.def
  2687. or Properties.Def
  2688. or Properties.default
  2689. or Properties.Default
  2690. or ""
  2691. ),
  2692. Callback = (
  2693. Properties.callback
  2694. or Properties.Callback
  2695. or Properties.callBack
  2696. or Properties.CallBack
  2697. or function() end
  2698. ),
  2699. Flag = (
  2700. Properties.flag
  2701. or Properties.Flag
  2702. or Properties.pointer
  2703. or Properties.Pointer
  2704. or Library.NextFlag()
  2705. ),
  2706. }
  2707. --
  2708. local RealTextbox = Instance.new("Frame")
  2709. RealTextbox.Name = "Textbox"
  2710. RealTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2711. RealTextbox.BackgroundTransparency = 1
  2712. RealTextbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2713. RealTextbox.BorderSizePixel = 0
  2714. RealTextbox.Position = UDim2.new(0, 0, 0.881, 0)
  2715. RealTextbox.Size = UDim2.new(0, 210, 0, 28)
  2716.  
  2717. local TextBox = Instance.new("TextBox")
  2718. TextBox.Name = "TextBox"
  2719. TextBox.FontFace = Library.UIFont
  2720. TextBox.PlaceholderColor3 = Color3.fromRGB(99, 101, 112)
  2721. TextBox.PlaceholderText = Textbox.Placeholder
  2722. TextBox.Text = Textbox.State
  2723. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  2724. TextBox.TextSize = 11
  2725. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  2726. TextBox.BackgroundColor3 = Color3.fromRGB(16, 16, 18)
  2727. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2728. TextBox.BorderSizePixel = 0
  2729. TextBox.Position = UDim2.new(0.081, 0, -0.0714, 0)
  2730. TextBox.Size = UDim2.new(0, 210, 0, 28)
  2731. TextBox.ClearTextOnFocus = false
  2732.  
  2733. local UIPadding = Instance.new("UIPadding")
  2734. UIPadding.Name = "UIPadding"
  2735. UIPadding.PaddingLeft = UDim.new(0, 12)
  2736. UIPadding.Parent = TextBox
  2737.  
  2738. local UICorner = Instance.new("UICorner")
  2739. UICorner.Name = "UICorner"
  2740. UICorner.CornerRadius = UDim.new(0, 4)
  2741. UICorner.Parent = TextBox
  2742.  
  2743. local UIStroke = Instance.new("UIStroke")
  2744. UIStroke.Name = "UIStroke"
  2745. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  2746. UIStroke.Color = Color3.fromRGB(118, 111, 170)
  2747. UIStroke.Enabled = false
  2748. UIStroke.Parent = TextBox
  2749.  
  2750. TextBox.Parent = RealTextbox
  2751. RealTextbox.Parent = Textbox.Section.Elements.SectionContent
  2752. --
  2753. TextBox.FocusLost:Connect(function()
  2754. Textbox.Callback(TextBox.Text)
  2755. Library.Flags[Textbox.Flag] = TextBox.Text
  2756. end)
  2757. --
  2758. local function set(str)
  2759. TextBox.Text = str
  2760. Library.Flags[Textbox.Flag] = str
  2761. Textbox.Callback(str)
  2762. end
  2763.  
  2764. -- // Return
  2765. Flags[Textbox.Flag] = set
  2766. return Textbox
  2767. end
  2768. --
  2769. function Sections:Button(Properties)
  2770. local Properties = Properties or {}
  2771. local Button = {
  2772. Window = self.Window,
  2773. Page = self.Page,
  2774. Section = self,
  2775. Name = Properties.Name or "button",
  2776. Callback = (
  2777. Properties.callback
  2778. or Properties.Callback
  2779. or Properties.callBack
  2780. or Properties.CallBack
  2781. or function() end
  2782. ),
  2783. }
  2784. --
  2785. local RealButton = Instance.new("Frame")
  2786. RealButton.Name = "Button"
  2787. RealButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2788. RealButton.BackgroundTransparency = 1
  2789. RealButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2790. RealButton.BorderSizePixel = 0
  2791. RealButton.Position = UDim2.new(0, 0, 0.881, 0)
  2792. RealButton.Size = UDim2.new(1, 0, 0, 32)
  2793.  
  2794. local ButtonBasically = Instance.new("TextButton")
  2795. ButtonBasically.Name = "Button_basically"
  2796. ButtonBasically.FontFace = Library.UIFont
  2797. ButtonBasically.Text = Button.Name
  2798. ButtonBasically.TextColor3 = Color3.fromRGB(255, 255, 255)
  2799. ButtonBasically.TextSize = 11
  2800. ButtonBasically.AutoButtonColor = false
  2801. ButtonBasically.AnchorPoint = Vector2.new(0.5, 0.5)
  2802. ButtonBasically.BackgroundColor3 = Color3.fromRGB(15, 16, 19)
  2803. ButtonBasically.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2804. ButtonBasically.BorderSizePixel = 0
  2805. ButtonBasically.Position = UDim2.new(0.5, 0, 0.5, 0)
  2806. ButtonBasically.Size = UDim2.new(0, 224, 0, 28)
  2807.  
  2808. local UICorner = Instance.new("UICorner")
  2809. UICorner.Name = "UICorner"
  2810. UICorner.CornerRadius = UDim.new(0, 6)
  2811. UICorner.Parent = ButtonBasically
  2812.  
  2813. ButtonBasically.Parent = RealButton
  2814.  
  2815. RealButton.Parent = Button.Section.Elements.SectionContent
  2816. --
  2817. Library:Connection(ButtonBasically.MouseButton1Down, function()
  2818. Button.Callback()
  2819. TweenService:Create(ButtonBasically, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Library.Accent}):Play()
  2820. task.spawn(function()
  2821. task.wait(0.1)
  2822. TweenService:Create(ButtonBasically, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)}):Play()
  2823. end)
  2824. end)
  2825. end
  2826. --
  2827. end;
  2828. end;
  2829.  
  2830. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement