Advertisement
xxPH4NTOM

Untitled

Jul 6th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.68 KB | None | 0 0
  1. local ready = false
  2.  
  3. local function initLibrary()
  4. local library = {flags = {}, callbacks = {}, rainbowI = 0};
  5.  
  6. local GetService = game.GetService;
  7. local Players = GetService(game, "Players");
  8. local RunService = GetService(game, "RunService");
  9. local TweenService = GetService(game, "TweenService");
  10. local UserInputService = GetService(game, "UserInputService");
  11.  
  12. local LocalPlayer = Players.LocalPlayer;
  13.  
  14. do -- library funcs
  15. coroutine.wrap(function()
  16. while true do
  17. for i = 0, 359 do
  18. library.rainbowI = i / 359;
  19. library.rainbowVal = Color3.fromHSV(i / 359, 1, 1);
  20. wait();
  21. end;
  22. end;
  23. end)();
  24.  
  25. function library:Create(class, data)
  26. local obj = Instance.new(class);
  27. for i, v in next, data do
  28. if i ~= 'Parent' then
  29. if typeof(v) == "Instance" then
  30. v.Parent = obj;
  31. else
  32. obj[i] = v
  33. end
  34. end
  35. end
  36.  
  37. obj.Parent = data.Parent;
  38. return obj;
  39. end;
  40.  
  41. function library:Dragger(main, second)
  42. local dragging;
  43. local dragInput;
  44. local dragStart;
  45. local startPos;
  46.  
  47. local function update(input)
  48. local delta = input.Position - dragStart;
  49. second:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),'Out','Sine',0.01,true);
  50. end;
  51.  
  52. main.InputBegan:Connect(function(input)
  53. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  54. dragging = true;
  55. dragStart = input.Position;
  56. startPos = second.Position;
  57.  
  58. repeat wait() until input.UserInputState == Enum.UserInputState.End;
  59. dragging = false;
  60. end;
  61. end);
  62.  
  63. main.InputChanged:Connect(function(input)
  64. if input.UserInputType == Enum.UserInputType.MouseMovement then
  65. dragInput = input;
  66. end;
  67. end);
  68.  
  69. game:GetService("UserInputService").InputChanged:Connect(function(input)
  70. if input == dragInput and dragging then
  71. update(input);
  72. end;
  73. end);
  74. end;
  75.  
  76. function library:Tween(instance, properties, callback)
  77. local callback = callback or function() end;
  78. local time = properties.time;
  79. properties.time = nil;
  80. local anim = TweenService:Create(instance, TweenInfo.new(time), properties);
  81.  
  82. anim.Completed:Connect(callback);
  83. anim:Play();
  84. return anim;
  85. end;
  86.  
  87. local ui_Settings = {
  88. mainColor = Color3.fromRGB(36 + math.random(1,5), 36 + math.random(1,5), 36 + math.random(1,5));
  89. bottomColor = Color3.fromRGB(34 + math.random(1,5), 34 + math.random(1,5), 34 + math.random(1,5));
  90. borderColor = Color3.fromRGB(42 + math.random(1,5), 42 + math.random(1,5), 42 + math.random(1,5));
  91. scrollingBarColor = Color3.fromRGB(115 + math.random(1,5), 41 + math.random(1,5), 255 - math.random(1,5));
  92. toggleColor = Color3.fromRGB(34 + math.random(1,5), 34 + math.random(1,5), 34 + math.random(1,5));
  93. toggleBorderColor = Color3.fromRGB(102 + math.random(1,5), 41 + math.random(1,5), 255 - math.random(1,5));
  94. boxColor = Color3.fromRGB(32, 32, 32);
  95. boxBorderColor = Color3.fromRGB(102, 41, 255);
  96. gradientColorSection = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(102, 41, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(122, 41, 255))};
  97. gradientColor = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(102, 41, 255)), ColorSequenceKeypoint.new(0, Color3.fromRGB(142, 61, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(210, 74, 255))};
  98. shadowGradientColor = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)), ColorSequenceKeypoint.new(1, Color3.fromRGB(36, 36, 36))};
  99. };
  100.  
  101. UserInputService.InputBegan:Connect(function(input)
  102. for i, v in next, library.flags do
  103. if(v == input.KeyCode) then
  104. library.callbacks[i]();
  105. elseif(v == input.UserInputType) then
  106. library.callbacks[i]();
  107. end;
  108. end;
  109. end);
  110.  
  111. local chars = string.split('abcdefghijklmnopqrstuvwxyz1234567890_','')
  112. getgenv().randomString = function(len)
  113. local output = ''
  114. for i = 1,len do
  115. output = output .. chars[math.random(1,#chars)]
  116. end
  117. return output
  118. end
  119.  
  120. --[[ local visible_guis = {}
  121.  
  122. for i,v in pairs(game.CoreGui:GetChildren()) do
  123. if v:IsA('ScreenGui') then
  124. if v.Enabled then
  125. table.insert(visible_guis,v)
  126. end
  127. end
  128. end ]]
  129.  
  130. -- local gui = visible_guis[math.random(1,#visible_guis)] --Instance.new("ScreenGui", game.CoreGui);
  131. local gui = Instance.new('ScreenGui',nil)
  132. -- gui:ClearAllChildren()
  133. gui.Name = getgenv().randomString(math.random(5,20))
  134. gui.Enabled = false;
  135. gui.DisplayOrder = math.random(9999,999999);
  136. gui.ResetOnSpawn = true;
  137. library.gui = gui;
  138.  
  139. local main = library:Create("Frame", {
  140. Name = getgenv().randomString(math.random(5,20));
  141. Parent = gui;
  142. Position = UDim2.new(0.5, -201, 0.5, -135);
  143. BorderSizePixel = 0;
  144. BackgroundColor3 = ui_Settings.mainColor; -- main color
  145. --Size = UDim2.new(0, 401,0, 270);
  146. Size = UDim2.new(0, 401,0, 270);
  147. library:Create("ImageLabel", {
  148. Name = "Search";
  149. BackgroundTransparency = 1.000;
  150. Position = UDim2.new(0, 4, 0, 46);
  151. Size = UDim2.new(1, -8, 0, 26);
  152. Image = "http://roblox.com/asset/?id=4641155515";
  153. ImageColor3 = Color3.fromRGB(30, 30, 30);
  154. ScaleType = Enum.ScaleType.Slice;
  155. SliceCenter = Rect.new(4, 4, 296, 296);
  156. library:Create("TextBox", {
  157. Name = "textbox";
  158. BackgroundTransparency = 1.000;
  159. Position = UDim2.new(1, -362, 0, 0);
  160. Size = UDim2.new(1, -30, 1, 0);
  161. Font = Enum.Font.Gotham;
  162. PlaceholderText = "Search";
  163. Text = "";
  164. TextColor3 = Color3.fromRGB(255, 255, 255);
  165. TextSize = 14.000;
  166. TextXAlignment = Enum.TextXAlignment.Left;
  167. });
  168. library:Create("ImageLabel", {
  169. Name = "icon";
  170. BackgroundTransparency = 1.000;
  171. Position = UDim2.new(0, 2, 0, 1);
  172. Size = UDim2.new(0, 24, 0, 24);
  173. Image = "http://www.roblox.com/asset/?id=4645651350";
  174. library:Create("UIGradient", {
  175. Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(39, 133, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(210, 74, 255))};
  176. Rotation = 45;
  177. });
  178. });
  179. });
  180. library:Create("Frame", { -- New frame called "border"
  181. Name = "border";
  182. BackgroundColor3 = ui_Settings.bottomColor;
  183. BorderColor3 = ui_Settings.borderColor;
  184. BorderSizePixel = 1;
  185. Position = UDim2.new(0, 5, 0, 78);
  186. Size = UDim2.new(0, 391, 0, 186);
  187. library:Create("Frame", {
  188. Name = "shadow";
  189. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  190. BackgroundTransparency = 0.100;
  191. BorderSizePixel = 0;
  192. Position = UDim2.new(0, 0, 1, -8);
  193. Size = UDim2.new(1, 0, 0, 8);
  194. library:Create("UIGradient", {
  195. Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)), ColorSequenceKeypoint.new(1, Color3.fromRGB(36, 36, 36))};
  196. Rotation = 270;
  197. Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)};
  198. });
  199. });
  200. library:Create("Frame", {
  201. Name = "shadow";
  202. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  203. BackgroundTransparency = 0.100;
  204. BorderSizePixel = 0;
  205. Size = UDim2.new(1, 0, 0, 8);
  206. library:Create("UIGradient", {
  207. Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)), ColorSequenceKeypoint.new(1, Color3.fromRGB(36, 36, 36))};
  208. Rotation = 90;
  209. Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)};
  210. });
  211. });
  212. });
  213. library:Create("Frame", {
  214. Name = "bar";
  215. BorderSizePixel = 0;
  216. BackgroundColor3 = Color3.fromRGB(255, 255, 255); -- bar color
  217. Size = UDim2.new(1, 0,0, 4);
  218. Position = UDim2.new(0, 0, 0, 0);
  219. library:Create("UIGradient", {
  220. Color = ui_Settings.gradientColor;
  221. });
  222. library:Create("Frame", {
  223. Name = "bottom";
  224. BorderSizePixel = 0;
  225. BackgroundColor3 = ui_Settings.bottomColor;
  226. Position = UDim2.new(0, 0, 0, 4);
  227. Size = UDim2.new(1, 0, 0, 34);
  228. library:Create("Frame", {
  229. BackgroundTransparency = 0.1;
  230. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  231. BorderSizePixel = 0;
  232. Name = "shadow";
  233. Position = UDim2.new(0, 0, 1, 0);
  234. });
  235. library:Create("TextLabel", {
  236. Name = "Title";
  237. BackgroundTransparency = 1;
  238. Position = UDim2.new(0, 10, 0.5, -10);
  239. Size = UDim2.new(0, 71, 0, 24);
  240. TextColor3 = Color3.fromRGB(255, 255, 255);
  241. Text = "";
  242. Font = "GothamSemibold";
  243. TextSize = 15;
  244. library:Create("UIGradient", {
  245. Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(39, 133, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(210, 74, 255))}
  246. });
  247. });
  248. library:Create("ScrollingFrame", {
  249. Name = "topcontainer";
  250. BackgroundTransparency = 1;
  251. BorderSizePixel = 0;
  252. Position = UDim2.new(0, 88, 0, 9);
  253. Size = UDim2.new(1, -90, 0.73, 0);
  254. BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png";
  255. TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png";
  256. ScrollBarThickness = 4;
  257. ScrollingDirection = Enum.ScrollingDirection.X;
  258. CanvasSize = UDim2.new(1.1,0,0,0);
  259. HorizontalScrollBarInset = Enum.ScrollBarInset.ScrollBar;
  260. library:Create("UIListLayout", {
  261. Padding = UDim.new(0, 2);
  262. FillDirection = "Horizontal";
  263. HorizontalAlignment = "Left";
  264. SortOrder = "LayoutOrder";
  265. VerticalAlignment = "Top";
  266. });
  267. });
  268. });
  269. });
  270. });
  271.  
  272. game:GetService('UserInputService').InputBegan:Connect(function(k,gpe)
  273. if not gpe and k.KeyCode == Enum.KeyCode.RightControl then
  274. main.Visible = not main.Visible
  275. end
  276. end)
  277.  
  278. local modal = Instance.new("TextButton", main);
  279. modal.Modal = false;
  280. modal.BackgroundTransparency = 1;
  281. modal.Text = "";
  282.  
  283. main.Search.textbox.Changed:Connect(function()
  284. local Entry = main.Search.textbox.Text:lower();
  285.  
  286. if(Entry ~= "") then
  287. for i,v in next, library.currentSection:GetChildren() do
  288. if(not v:IsA("UIPadding") and not v:IsA("UIListLayout")) then
  289. local label = v:FindFirstChild("label");
  290. local button = v:FindFirstChild("button");
  291.  
  292. local find = false;
  293. if(label and label.Text:gsub("%s", ""):lower():sub(1, #Entry) == Entry) then
  294. v.Visible = true;
  295. find = true;
  296. end;
  297.  
  298. if(button and button:FindFirstChild("label") and button.label.Text:gsub("%s", ""):lower():sub(1, #Entry) == Entry) then
  299. v.Visible = true;
  300. find = true;
  301. end;
  302.  
  303. if(not find) then
  304. v.Visible = false;
  305. end;
  306. end;
  307. end;
  308. elseif library.currentSection then
  309. for i,v in next, library.currentSection:GetChildren() do
  310. if(not v:IsA("UIPadding") and not v:IsA("UIListLayout")) then
  311. v.Visible = true;
  312. end;
  313. end;
  314. end;
  315.  
  316. library.currentSectionObject:Update();
  317. end);
  318.  
  319. library:Dragger(main.bar.bottom, main);
  320. function library:Ready()
  321. local uitext = {}
  322. for i,v in pairs(library.gui:GetDescendants()) do
  323. if v:IsA('TextLabel') or v:IsA('TextBox') or v:IsA('TextButton') then
  324. table.insert(uitext,v.Text)
  325. v.Text = ''
  326. end
  327. end
  328. wait(0.1)
  329. library.gui.Parent = game.CoreGui
  330. wait(0.1)
  331. local i2 = 1
  332. for i,v in pairs(library.gui:GetDescendants()) do
  333. if v:IsA('TextLabel') or v:IsA('TextBox') or v:IsA('TextButton') then
  334. v.Text = uitext[i2]
  335. i2 = i2 + 1
  336. end
  337. end
  338. wait(0.1)
  339. library.gui.Enabled = true
  340. ready = true
  341. end;
  342.  
  343. function library:CreateSection(name)
  344. --local topContainer = gui.main.bar.bottom.topcontainer; <<< was causing errors due to the renaming of the "main" frame.
  345. local topContainer = main.bar.bottom.topcontainer
  346.  
  347. local sectionSelector = library:Create("ImageButton", {
  348. Parent = topContainer;
  349. BackgroundTransparency = 1;
  350. Size = UDim2.new(0, 60, 1, 0);
  351. Image = "http://roblox.com/asset/?id=4641155773";
  352. ImageColor3 = Color3.fromRGB(255, 255, 255);
  353. ScaleType = "Slice";
  354. SliceCenter = Rect.new(4, 4, 296, 296);
  355. SliceScale = 1;
  356. Name = "back";
  357. library:Create("UIGradient", {
  358. Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(102, 41, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(132, 41, 255))}
  359. });
  360. library:Create("TextLabel", {
  361. BackgroundTransparency = 1;
  362. Text = name;
  363. Size = UDim2.new(1, 0, 1, 0);
  364. TextColor3 = Color3.fromRGB(255, 255, 255);
  365. });
  366. });
  367.  
  368. spawn(function()
  369. repeat wait() until ready
  370. local addPadding = false
  371. while wait() do
  372. if not sectionSelector.TextLabel.TextFits then
  373. addPadding = true
  374. sectionSelector.Size = UDim2.new(0,sectionSelector.Size.X.Offset+1,1,0)
  375. else
  376. break
  377. end
  378. end
  379. if addPadding then
  380. sectionSelector.Size = UDim2.new(0,sectionSelector.Size.X.Offset+25,1,0)
  381. end
  382. end)
  383.  
  384. local boxContainer = library:Create("ScrollingFrame", {
  385. Name = "box";
  386. BorderSizePixel = 0;
  387. BackgroundColor3 = Color3.fromRGB(34, 34, 34);
  388. Parent = main.border;
  389. Position = UDim2.new(0, 1, 0, 1);
  390. Size = UDim2.new(1, -2, 1, -2);
  391. BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png";
  392. TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png";
  393. ScrollBarThickness = 4;
  394. CanvasSize = UDim2.new(0, 0, 0, 0);
  395. library:Create("UIPadding", {
  396. PaddingTop = UDim.new(0, 2);
  397. PaddingLeft = UDim.new(0, 2);
  398. });
  399. library:Create("UIListLayout", {
  400. Padding = UDim.new(0, 5);
  401. FillDirection = "Vertical";
  402. HorizontalAlignment = "Left";
  403. VerticalAlignment = "Top";
  404. });
  405. });
  406.  
  407. local section = {};
  408.  
  409. boxContainer.ChildAdded:Connect(function(Obj)
  410. section:Update();
  411. end);
  412.  
  413. if(not library.currentSection) then
  414. library.currentSectionSelector = sectionSelector;
  415. library.currentSection = boxContainer;
  416. library.currentSectionObject = section;
  417.  
  418. library.currentSectionSelector.ImageColor3 = Color3.fromRGB(150, 150, 150);
  419. boxContainer.Visible = true;
  420. else
  421. boxContainer.Visible = false;
  422. end;
  423.  
  424. sectionSelector.MouseButton1Click:Connect(function()
  425. if(library.currentSection) then
  426. library.currentSectionSelector.ImageColor3 = Color3.fromRGB(255, 255, 255);
  427. library.currentSection.Visible = false;
  428. end;
  429.  
  430. sectionSelector.ImageColor3 = Color3.fromRGB(150, 150, 150);
  431. boxContainer.Visible = true;
  432. library.currentSectionSelector = sectionSelector;
  433. library.currentSection = boxContainer;
  434. end);
  435.  
  436. function section:Update()
  437. local CanvasSize = UDim2.new(0, 0, 0, 85)
  438. for i,v in next, boxContainer:GetChildren() do
  439. if(not v:IsA("UIListLayout") and not v:IsA("UIPadding") and v.Visible) then
  440. CanvasSize = CanvasSize + UDim2.new(0, 0, 0, v.AbsoluteSize.Y + 5);
  441. end;
  442. end;
  443.  
  444. library:Tween(boxContainer, {time = 0.1, CanvasSize = CanvasSize});
  445. end;
  446.  
  447. function section:Label(labelName)
  448. local holder = library:Create("Frame", {
  449. Name = "holder";
  450. Parent = boxContainer;
  451. BackgroundColor3 = Color3.fromRGB(25, 25, 25);
  452. BorderSizePixel = 0;
  453. Position = UDim2.new(0, 0, 0, 350);
  454. Size = UDim2.new(1, 0, 0, 18);
  455. library:Create("TextLabel", {
  456. Name = "label";
  457. BackgroundTransparency = 1.000;
  458. Size = UDim2.new(1, 0, 1, 0);
  459. Font = "Gotham";
  460. Text = labelName;
  461. TextColor3 = Color3.fromRGB(255, 255, 255);
  462. TextSize = 12.000;
  463. });
  464. });
  465. spawn(function()
  466. repeat wait() until ready
  467. while wait() do
  468. if not holder.label.TextFits then
  469. holder.label.TextScaled = true
  470. end
  471. end
  472. end)
  473. end;
  474.  
  475. function section:Toggle(toggleName, callback)
  476. local callback = callback or function() end;
  477. local toggle = false;
  478.  
  479. library.flags[toggleName] = toggle;
  480.  
  481. local holder = library:Create("Frame", {
  482. BackgroundTransparency = 1;
  483. Parent = boxContainer;
  484. Size = UDim2.new(1, -20, 0, 18);
  485. Name = "holder";
  486. library:Create("TextLabel", {
  487. Name = "label";
  488. BackgroundTransparency = 1;
  489. TextColor3 = Color3.fromRGB(255, 255, 255);
  490. Position = UDim2.new(0, 22, 0, 0);
  491. Size = UDim2.new(1, -22, 1, 0);
  492. Font = "Gotham";
  493. TextXAlignment = "Left";
  494. TextSize = 12;
  495. Text = toggleName;
  496. });
  497. library:Create("TextButton", {
  498. Name = "toggle";
  499. AutoButtonColor = false;
  500. BackgroundColor3 = ui_Settings.toggleColor;
  501. BorderColor3 = ui_Settings.toggleBorderColor;
  502. BorderSizePixel = 1;
  503. Size = UDim2.new(0, 16, 0, 16);
  504. Text = "";
  505. library:Create("Frame", {
  506. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  507. Size = toggle and UDim2.new(1, 0, 1, 0) or UDim2.new(0, 0, 0, 0);
  508. Name = "fill";
  509. BorderSizePixel = 0;
  510. library:Create("UIGradient", {
  511. Color = ui_Settings.gradientColorSection;
  512. Rotation = 45;
  513. });
  514. });
  515. library:Create("UIListLayout", {
  516. FillDirection = "Vertical";
  517. HorizontalAlignment = "Center";
  518. VerticalAlignment = "Center";
  519. });
  520. library:Create("UIPadding", {
  521. PaddingBottom = UDim.new(0, 1);
  522. PaddingTop = UDim.new(0, 1);
  523. PaddingLeft = UDim.new(0, 1);
  524. PaddingRight = UDim.new(0, 1);
  525. });
  526. });
  527. });
  528.  
  529. local function onClick()
  530. toggle = not toggle;
  531. library:Tween(holder.toggle.fill, {time = 0.1, Size = toggle and UDim2.new(1, 0, 1, 0) or UDim2.new(0, 0, 0, 0)});
  532. library.flags[toggleName] = toggle;
  533. callback(toggle);
  534. end;
  535.  
  536. holder.toggle.MouseButton1Click:Connect(onClick);
  537. return holder;
  538. end;
  539.  
  540. function section:Box(boxName, callback)
  541. local holder = library:Create("Frame", {
  542. Size = UDim2.new(1, -20, 0, 18);
  543. BackgroundTransparency = 1;
  544. Name = "holder";
  545. Parent = boxContainer;
  546. library:Create("TextLabel", {
  547. BackgroundTransparency = 1;
  548. Name = "label";
  549. TextColor3 = Color3.fromRGB(255, 255, 255);
  550. Text = boxName;
  551. TextSize = 12;
  552. Font = "Gotham";
  553. Size = UDim2.new(1, 0, 1, 0);
  554. TextXAlignment = "Left";
  555. });
  556. library:Create("TextBox", {
  557. BackgroundColor3 = Color3.fromRGB(32, 32, 32);
  558. BorderColor3 = ui_Settings.boxBorderColor;
  559. BorderSizePixel = 1;
  560. Name = "textbox";
  561. TextSize = 14;
  562. Position = UDim2.new(1, -160, 0, 0);
  563. Size = UDim2.new(0, 160, 1, 0);
  564. PlaceholderColor3 = Color3.fromRGB(200, 200, 200);
  565. PlaceholderText = "Value";
  566. Text = "";
  567. TextColor3 = Color3.fromRGB(255, 255, 255);
  568. Font = "SourceSans";
  569. });
  570. });
  571.  
  572. holder.textbox.FocusLost:Connect(function(Enter)
  573. if(Enter) then
  574. library.flags[boxName] = holder.textbox.Text;
  575. callback(holder.textbox.Text);
  576. end;
  577. end);
  578. end;
  579.  
  580. function section:Slider(sliderName, properties, callback)
  581. local callback = callback or function() end;
  582. library.flags[sliderName] = properties.min;
  583.  
  584. local holder = library:Create("Frame", {
  585. Size = UDim2.new(1, -20, 0, 36);
  586. BackgroundTransparency = 1;
  587. Name = "holder";
  588. Parent = boxContainer;
  589. library:Create("TextLabel", {
  590. Name = "label";
  591. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  592. BackgroundTransparency = 1.000;
  593. Size = UDim2.new(1, 0, 0, 17);
  594. Font = "Gotham";
  595. Text = ' ' .. sliderName;
  596. TextColor3 = Color3.fromRGB(254, 254, 254);
  597. TextSize = 12.000;
  598. TextXAlignment = "Left";
  599. });
  600. library:Create("TextButton", {
  601. Name = "slider";
  602. BackgroundColor3 = Color3.fromRGB(34, 34, 34);
  603. BorderColor3 = Color3.fromRGB(102, 41, 255);
  604. Position = UDim2.new(0, 0, 1, -19);
  605. Size = UDim2.new(1, 0, 0, 15);
  606. AutoButtonColor = false;
  607. Font = "SourceSans";
  608. Text = "";
  609. TextColor3 = Color3.fromRGB(0, 0, 0);
  610. TextSize = 14.000;
  611. library:Create("TextLabel", {
  612. Name = "value";
  613. BackgroundTransparency = 1;
  614. Size = UDim2.new(1, 0, 1, 0);
  615. Font = "SourceSans";
  616. Text = properties.default and tostring(properties.default) or tostring(properties.min);
  617. TextColor3 = Color3.fromRGB(255, 255, 255);
  618. TextSize = 14.000;
  619. ZIndex = 2;
  620. });
  621. library:Create("Frame", {
  622. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  623. Position = UDim2.new(0, 1, 0, 1);
  624. Name = "fill";
  625. Size = UDim2.new(0, 0, 1, -2);
  626. BorderSizePixel = 0;
  627. library:Create("UIGradient", {
  628. Color = ui_Settings.gradientColorSection;
  629. Rotation = 90;
  630. });
  631. });
  632. });
  633. });
  634.  
  635. local Connection;
  636. UserInputService.InputEnded:Connect(function(input)
  637. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  638. if(Connection) then
  639. Connection:Disconnect();
  640. Connection = nil;
  641. end;
  642. end;
  643. end);
  644.  
  645. holder.slider.MouseButton1Down:Connect(function()
  646. if(Connection) then
  647. Connection:Disconnect();
  648. end;
  649.  
  650. Connection = RunService.Heartbeat:Connect(function()
  651. local mouse = UserInputService:GetMouseLocation();
  652. local percent = math.clamp((mouse.X - holder.slider.AbsolutePosition.X) / (holder.slider.AbsoluteSize.X), 0, 1);
  653. local Value = properties.min + (properties.max - properties.min) * percent;
  654.  
  655. if not properties.precise then
  656. Value = math.floor(Value);
  657. end;
  658.  
  659. Value = tonumber(string.format("%.2f", Value));
  660.  
  661. library:Tween(holder.slider.fill, {time = 0.1, Size = UDim2.new(percent, 0, 1, -2)})
  662. holder.slider.value.Text = tostring(Value);
  663. library.flags[sliderName] = Value;
  664.  
  665. callback(Value);
  666. end);
  667. end);
  668. end;
  669.  
  670. function section:Bind(bindName, defaultKey, callback)
  671. local callback = callback or function() end;
  672. local input = defaultKey and tostring(defaultKey):gsub("Enum.", ""):gsub("UserInputType.", ""):gsub("KeyCode.", "") or "None";
  673. library.callbacks[bindName] = callback;
  674. library.flags[bindName] = defaultKey;
  675.  
  676. local holder = library:Create("Frame", {
  677. Name = "holder";
  678. Parent = boxContainer;
  679. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  680. BackgroundTransparency = 1.000;
  681. LayoutOrder = 2;
  682. Position = UDim2.new(0, 10, 0, 76);
  683. Size = UDim2.new(1, -20, 0, 18);
  684. library:Create("TextLabel", {
  685. Name = "label";
  686. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  687. BackgroundTransparency = 1.000;
  688. Size = UDim2.new(1, 0, 1, 0);
  689. Font = "Gotham";
  690. Text = bindName;
  691. TextColor3 = Color3.fromRGB(255, 255, 255);
  692. TextSize = 12.000;
  693. TextXAlignment = "Left";
  694. });
  695. library:Create("TextButton", {
  696. Name = "keybind";
  697. BackgroundColor3 = Color3.fromRGB(34, 34, 34);
  698. BorderColor3 = Color3.fromRGB(102, 41, 255);
  699. ClipsDescendants = true;
  700. Position = UDim2.new(1, -80, 0, 0);
  701. Size = UDim2.new(0, 80, 1, 0);
  702. AutoButtonColor = false;
  703. Font = Enum.Font.SourceSans;
  704. Text = input;
  705. TextColor3 = Color3.fromRGB(255, 255, 255);
  706. TextSize = 14.000;
  707. });
  708. });
  709.  
  710. local whitelistedType = {
  711. [Enum.KeyCode.LeftShift] = "L-Shift",
  712. [Enum.KeyCode.RightShift] = "R-Shift",
  713. [Enum.KeyCode.LeftControl] = "L-Ctrl",
  714. [Enum.KeyCode.RightControl] = "R-Ctrl",
  715. [Enum.KeyCode.LeftAlt] = "L-Alt",
  716. [Enum.KeyCode.RightAlt] = "R-Alt",
  717. [Enum.KeyCode.CapsLock] = "CAPS",
  718. [Enum.KeyCode.One] = "1",
  719. [Enum.KeyCode.Two] = "2",
  720. [Enum.KeyCode.Three] = "3",
  721. [Enum.KeyCode.Four] = "4",
  722. [Enum.KeyCode.Five] = "5",
  723. [Enum.KeyCode.Six] = "6",
  724. [Enum.KeyCode.Seven] = "7",
  725. [Enum.KeyCode.Eight] = "8",
  726. [Enum.KeyCode.Nine] = "9",
  727. [Enum.KeyCode.Zero] = "0",
  728. [Enum.KeyCode.KeypadOne] = "Num-1",
  729. [Enum.KeyCode.KeypadTwo] = "Num-2",
  730. [Enum.KeyCode.KeypadThree] = "Num-3",
  731. [Enum.KeyCode.KeypadFour] = "Num-4",
  732. [Enum.KeyCode.KeypadFive] = "Num-5",
  733. [Enum.KeyCode.KeypadSix] = "Num-6",
  734. [Enum.KeyCode.KeypadSeven] = "Num-7",
  735. [Enum.KeyCode.KeypadEight] = "Num-8",
  736. [Enum.KeyCode.KeypadNine] = "Num-9",
  737. [Enum.KeyCode.KeypadZero] = "Num-0",
  738. [Enum.KeyCode.Minus] = "-",
  739. [Enum.KeyCode.Equals] = "=",
  740. [Enum.KeyCode.Tilde] = "~",
  741. [Enum.KeyCode.LeftBracket] = "[",
  742. [Enum.KeyCode.RightBracket] = "]",
  743. [Enum.KeyCode.RightParenthesis] = ")",
  744. [Enum.KeyCode.LeftParenthesis] = "(",
  745. [Enum.KeyCode.Semicolon] = ";",
  746. [Enum.KeyCode.Quote] = "'",
  747. [Enum.KeyCode.BackSlash] = "\\",
  748. [Enum.KeyCode.Comma] = ",",
  749. [Enum.KeyCode.Period] = ".",
  750. [Enum.KeyCode.Slash] = "/",
  751. [Enum.KeyCode.Asterisk] = "*",
  752. [Enum.KeyCode.Plus] = "+",
  753. [Enum.KeyCode.Period] = ".",
  754. [Enum.KeyCode.Backquote] = "`",
  755. [Enum.UserInputType.MouseButton1] = "Button-1",
  756. [Enum.UserInputType.MouseButton2] = "Button-2",
  757. [Enum.UserInputType.MouseButton3] = "Button-3",
  758. };
  759.  
  760. holder.keybind.MouseButton1Click:Connect(function()
  761. holder.keybind.Text = ". . .";
  762. local connection;
  763. connection = UserInputService.InputBegan:Connect(function(input)
  764. connection:Disconnect();
  765. wait();
  766.  
  767. local KeyCodeName = whitelistedType[input.KeyCode] or whitelistedType[input.UserInputType];
  768.  
  769. holder.keybind.Text = KeyCodeName or tostring(input.KeyCode):gsub("Enum.KeyCode.", "");
  770. if(input.UserInputType == Enum.UserInputType.Keyboard) then
  771. library.flags[bindName] = input.KeyCode;
  772. else
  773. library.flags[bindName] = input.UserInputType;
  774. end;
  775. end);
  776. end);
  777. end;
  778.  
  779. function section:Button(buttonName, callback)
  780. local callback = callback or function() end;
  781. local holder = library:Create("Frame", {
  782. Name = "holder";
  783. Parent = boxContainer;
  784. BackgroundTransparency = 1.000;
  785. Position = UDim2.new(0, 10, 0, 148);
  786. Size = UDim2.new(1, -20, 0, 18);
  787. library:Create("TextButton", {
  788. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  789. Size = UDim2.new(1, 0, 1, 0);
  790. BorderSizePixel = 0;
  791. TextColor3 = Color3.fromRGB(255, 255, 255);
  792. Text = "";
  793. Name = "button";
  794. AutoButtonColor = false;
  795. library:Create("TextLabel", {
  796. Name = "label";
  797. BackgroundTransparency = 1;
  798. Size = UDim2.new(1, 0, 1, 0);
  799. Font = "SourceSans";
  800. TextSize = 14;
  801. TextColor3 = Color3.fromRGB(255, 255, 255);
  802. Text = buttonName;
  803. });
  804. library:Create("UIGradient", {
  805. Rotation = 90;
  806. Color = ui_Settings.gradientColorSection;
  807. });
  808. });
  809. });
  810.  
  811. holder.button.MouseButton1Click:Connect(callback);
  812. end;
  813.  
  814. function section:Dropdown(name, list, callback)
  815. local callback = callback or function() end;
  816. local toggle = false;
  817.  
  818. local holder = library:Create("Frame", {
  819. Name = "holder";
  820. BackgroundTransparency = 1.000;
  821. LayoutOrder = 3;
  822. Position = UDim2.new(0, 10, 0, 98);
  823. Size = UDim2.new(1, -20, 0, 36);
  824. Parent = boxContainer;
  825. library:Create("TextLabel", {
  826. Name = "label";
  827. BackgroundTransparency = 1.000;
  828. Size = UDim2.new(1, 0, 0, 18);
  829. Font = Enum.Font.Gotham;
  830. Text = name;
  831. TextColor3 = Color3.fromRGB(255, 255, 255);
  832. TextSize = 12.000;
  833. TextXAlignment = Enum.TextXAlignment.Left;
  834. });
  835. library:Create("TextButton", {
  836. Name = "dropdown";
  837. BackgroundColor3 = Color3.fromRGB(102, 41, 255);
  838. BorderColor3 = Color3.fromRGB(102, 41, 255);
  839. Size = UDim2.new(1, 0, 0, 18);
  840. AutoButtonColor = false;
  841. Font = "SourceSans";
  842. Text = "";
  843. TextColor3 = Color3.fromRGB(0, 0, 0);
  844. TextSize = 14.000;
  845. Position = UDim2.new(0, 0, 0, 18);
  846. library:Create("ImageLabel", {
  847. Name = "icon";
  848. BackgroundTransparency = 1.000;
  849. Position = UDim2.new(1, -18, 0, 0);
  850. Size = UDim2.new(0, 18, 0, 16);
  851. Image = "http://www.roblox.com/asset/?id=4641587888";
  852. ZIndex = 2;
  853. });
  854. library:Create("TextLabel", {
  855. Name = "label";
  856. BackgroundTransparency = 1.000;
  857. Position = UDim2.new(0, 4, 0, 0);
  858. Size = UDim2.new(1, -4, 0, 18);
  859. Font = Enum.Font.Gotham;
  860. Text = "Drop value";
  861. TextColor3 = Color3.fromRGB(255, 255, 255);
  862. TextSize = 12.000;
  863. TextXAlignment = Enum.TextXAlignment.Left;
  864. ZIndex = 2;
  865. });
  866. library:Create("Frame", {
  867. Name = "dropframe";
  868. BackgroundColor3 = Color3.fromRGB(32, 32, 32);
  869. BorderColor3 = Color3.fromRGB(102, 41, 255);
  870. BorderSizePixel = 0;
  871. ClipsDescendants = true;
  872. Position = UDim2.new(0, -1, 1, 1);
  873. Size = UDim2.new(1, 2, 0, 0);
  874. library:Create("UIListLayout", {
  875. SortOrder = "LayoutOrder";
  876. Padding = UDim.new(0, 2);
  877. });
  878. });
  879. library:Create("Frame", {
  880. Name = "fill";
  881. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  882. BorderSizePixel = 0;
  883. Position = UDim2.new(0, 1, 0, 1);
  884. Size = UDim2.new(1, 0, 1, 0);
  885. library:Create("UIGradient", {
  886. Rotation = 90;
  887. Color = ui_Settings.gradientColorSection;
  888. });
  889. });
  890. });
  891. });
  892.  
  893. for i, v in next, list do
  894. local button = library:Create("TextButton", {
  895. Name = "button";
  896. Text = v;
  897. Parent = holder.dropdown.dropframe;
  898. BackgroundColor3 = Color3.fromRGB(32, 32, 32);
  899. BorderColor3 = Color3.fromRGB(255, 255, 255);
  900. BorderSizePixel = 0;
  901. Size = UDim2.new(1, 0, 0, 16);
  902. Font = "SourceSans";
  903. TextColor3 = Color3.fromRGB(255, 255, 255);
  904. TextSize = 14.000;
  905. ZIndex = 1;
  906. });
  907.  
  908. button.MouseButton1Click:Connect(function()
  909. toggle = false;
  910. holder.dropdown.label.Text = v;
  911. library:Tween(holder.dropdown.icon, {time = 0.1, Rotation = 180});
  912. library:Tween(holder, {time = 0.1, Size = UDim2.new(1, -20, 0, 35)});
  913. library:Tween(holder.dropdown.dropframe, {time = 0.1, Size = UDim2.new(1, 2, 0, 0)}, self.Update);
  914. callback(button.Text);
  915. end);
  916. end;
  917.  
  918. holder.dropdown.MouseButton1Click:Connect(function()
  919. toggle = not toggle;
  920. local TotalY = 0;
  921. for i, v in next, holder.dropdown.dropframe:GetChildren() do
  922. if(v:IsA("TextButton")) then
  923. TotalY = TotalY + v.AbsoluteSize.Y + 2;
  924. end;
  925. end;
  926.  
  927. if(toggle) then
  928. library:Tween(holder.dropdown.icon, {time = 0.1, Rotation = 0});
  929. library:Tween(holder, {time = 0.1, Size = UDim2.new(1, -20, 0, TotalY + 50)});
  930. library:Tween(holder.dropdown.dropframe, {time = 0.1, Size = UDim2.new(1, 2, 0, TotalY)}, self.Update);
  931. else
  932. library:Tween(holder.dropdown.icon, {time = 0.1, Rotation = 180});
  933. library:Tween(holder, {time = 0.1, Size = UDim2.new(1, -20, 0, 36)});
  934. library:Tween(holder.dropdown.dropframe, {time = 0.1, Size = UDim2.new(1, 2, 0, 0)}, self.Update);
  935. end;
  936. end);
  937. end;
  938.  
  939. function section:ColorPicker(pickerName, defaultColor, callback)
  940. local callback = callback or function() end;
  941. local defaultColor = defaultColor or Color3.fromRGB(102, 41, 255);
  942. local rainbowToggle = false;
  943. local Mouse = Players.LocalPlayer:GetMouse();
  944.  
  945. local holder = library:Create("Frame", {
  946. Name = "holder";
  947. Parent = boxContainer;
  948. BackgroundTransparency = 1.000;
  949. Position = UDim2.new(0, 10, 0, 172);
  950. Size = UDim2.new(1, -20, 0, 18);
  951. library:Create("TextLabel", {
  952. Name = "label";
  953. BackgroundTransparency = 1.000;
  954. Size = UDim2.new(1, 0, 1, 0);
  955. Font = "Gotham";
  956. Text = pickerName;
  957. TextColor3 = Color3.fromRGB(255, 255, 255);
  958. TextSize = 12.000;
  959. TextXAlignment = Enum.TextXAlignment.Left;
  960. });
  961. library:Create("TextButton", {
  962. Name = "colorpicker";
  963. BackgroundColor3 = Color3.fromRGB(34, 34, 34);
  964. BorderColor3 = Color3.fromRGB(102, 41, 255);
  965. Position = UDim2.new(1, -16, 0, 0);
  966. Size = UDim2.new(0, 16, 0, 16);
  967. AutoButtonColor = false;
  968. Font = Enum.Font.SourceSans;
  969. Text = "";
  970. TextColor3 = Color3.fromRGB(0, 0, 0);
  971. TextSize = 14.000;
  972. library:Create("Frame", {
  973. Name = "colorframe";
  974. BackgroundColor3 = Color3.fromRGB(32, 32, 32);
  975. BorderColor3 = Color3.fromRGB(102, 41, 255);
  976. Position = UDim2.new(0, -148, 1, 6);
  977. Size = UDim2.new(0, 144, 0, 139);
  978. Visible = false;
  979. ZIndex = 2;
  980. library:Create("ImageButton", {
  981. Name = "satval";
  982. Image = "http://www.roblox.com/asset/?id=4650897272";
  983. BorderSizePixel = 0;
  984. AutoButtonColor = false;
  985. BackgroundColor3 = defaultColor;
  986. Position = UDim2.new(0, 4, 0, 3);
  987. Size = UDim2.new(0, 110, 0, 102);
  988. ZIndex = 2;
  989. library:Create("TextButton", {
  990. Name = "picker";
  991. BackgroundColor3 = Color3.fromRGB(53, 53, 53);
  992. BackgroundTransparency = 0.500;
  993. BorderSizePixel = 0;
  994. Position = UDim2.new(0.5, 0, 0.5, 0);
  995. Size = UDim2.new(0, 5, 0, 5);
  996. ZIndex = 2;
  997. Text = "";
  998. });
  999. });
  1000. library:Create("TextButton", {
  1001. Name = "rainbow";
  1002. ZIndex = 2;
  1003. BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  1004. BorderColor3 = Color3.fromRGB(255, 255, 255);
  1005. ClipsDescendants = true;
  1006. Position = UDim2.new(0, 5, 1, -25);
  1007. Size = UDim2.new(0, 133, 0, 20);
  1008. AutoButtonColor = false;
  1009. Font = "SourceSans";
  1010. Text = "";
  1011. TextColor3 = Color3.fromRGB(255, 255, 255);
  1012. TextSize = 14.000;
  1013. library:Create("UIGradient", {
  1014. Color = ui_Settings.gradientColorSection;
  1015. Rotation = -90;
  1016. });
  1017. library:Create("TextLabel", {
  1018. Name = "label";
  1019. Parent = button;
  1020. BackgroundTransparency = 1.000;
  1021. Size = UDim2.new(1, 0, 1, 0);
  1022. Font = "SourceSans";
  1023. Text = "Rainbow: OFF";
  1024. TextColor3 = Color3.fromRGB(255, 255, 255);
  1025. TextSize = 14.000;
  1026. ZIndex = 2;
  1027. });
  1028. });
  1029. library:Create("ImageButton", {
  1030. Name = "hue";
  1031. AutoButtonColor = false;
  1032. ZIndex = 2;
  1033. Position = UDim2.new(0, 118, 0, 3);
  1034. Size = UDim2.new(0, 18, 0, 102);
  1035. Image = "http://www.roblox.com/asset/?id=4650897105";
  1036. library:Create("TextButton", {
  1037. Name = "selector";
  1038. BackgroundColor3 = Color3.fromRGB(53, 53, 53);
  1039. BorderSizePixel = 0;
  1040. Size = UDim2.new(1, 0, 0, 5);
  1041. Text = "";
  1042. ZIndex = 2;
  1043. });
  1044. });
  1045. });
  1046. library:Create("Frame", {
  1047. Name = "color";
  1048. BackgroundColor3 = defaultColor;
  1049. BorderSizePixel = 0;
  1050. Position = UDim2.new(0, 1, 0, 1);
  1051. Size = UDim2.new(0, 14, 0, 14);
  1052. });
  1053. });
  1054. });
  1055.  
  1056.  
  1057. local colorData = {
  1058. H = 1;
  1059. S = 1;
  1060. V = 1;
  1061. };
  1062.  
  1063. local Connection1;
  1064. local Connection2;
  1065.  
  1066. local function getXY(frame)
  1067. local x, y = Mouse.X - frame.AbsolutePosition.X, Mouse.Y - frame.AbsolutePosition.Y;
  1068. local maxX, maxY = frame.AbsoluteSize.X,frame.AbsoluteSize.Y;
  1069. x = math.clamp(x, 0, maxX);
  1070. y = math.clamp(y, 0, maxY);
  1071. return x / maxX, y / maxY;
  1072. end;
  1073.  
  1074. local function Update()
  1075. local Color = Color3.fromHSV(colorData.H, colorData.S, colorData.V);
  1076. holder.colorpicker.color.BackgroundColor3 = Color;
  1077. holder.colorpicker.colorframe.satval.BackgroundColor3 = Color3.fromHSV(colorData.H, 1, 1);
  1078. callback(Color);
  1079. end;
  1080.  
  1081. holder.colorpicker.MouseButton1Click:Connect(function()
  1082. toggle = not toggle;
  1083. holder.colorpicker.colorframe.Visible = toggle;
  1084. end);
  1085.  
  1086. UserInputService.InputEnded:Connect(function(i)
  1087. if i.UserInputType == Enum.UserInputType.MouseButton1 then
  1088. if(Connection1) then
  1089. Connection1:Disconnect();
  1090. Connection1 = nil;
  1091. end;
  1092. if(Connection2) then
  1093. Connection2:Disconnect();
  1094. Connection2 = nil;
  1095. end;
  1096. isFocused = false;
  1097. end;
  1098. end);
  1099.  
  1100. holder.colorpicker.colorframe.rainbow.MouseButton1Click:Connect(function()
  1101. rainbowToggle = not rainbowToggle;
  1102. holder.colorpicker.colorframe.rainbow.label.Text = rainbowToggle and "Rainbow: ON" or "Rainbow: OFF";
  1103.  
  1104. if(rainbowToggle) then
  1105. repeat
  1106. library:Tween(holder.colorpicker.colorframe.hue.selector, {time = 0.1, Position = UDim2.new(0, 0, library.rainbowI, 0)});
  1107. holder.colorpicker.colorframe.satval.BackgroundColor3 = Color3.fromHSV(1 - library.rainbowI, 1, 1);
  1108. holder.colorpicker.color.BackgroundColor3 = library.rainbowVal;
  1109. callback(library.rainbowVal);
  1110. RunService.Heartbeat:Wait();
  1111. until not rainbowToggle;
  1112. end;
  1113. end);
  1114.  
  1115. holder.colorpicker.colorframe.satval.InputBegan:Connect(function(i)
  1116. if i.UserInputType == Enum.UserInputType.MouseButton1 then
  1117. if(Connection1) then
  1118. Connection1:Disconnect();
  1119. end;
  1120. Connection1 = RunService.Heartbeat:Connect(function()
  1121. local X, Y = getXY(holder.colorpicker.colorframe.satval);
  1122.  
  1123. holder.colorpicker.colorframe.satval.picker.Position = UDim2.new(X, 0, Y, 0);
  1124. colorData.S = X;
  1125. colorData.V = 1 - Y;
  1126. Update();
  1127. end);
  1128. end;
  1129. end);
  1130.  
  1131. holder.colorpicker.colorframe.hue.InputBegan:Connect(function(i)
  1132. if i.UserInputType == Enum.UserInputType.MouseButton1 then
  1133. if(Connection2) then
  1134. Connection2:Disconnect();
  1135. end;
  1136.  
  1137. Connection2 = RunService.Heartbeat:Connect(function()
  1138. local X, Y = getXY(holder.colorpicker.colorframe.hue);
  1139.  
  1140. colorData.H = 1 - Y;
  1141. holder.colorpicker.colorframe.hue.selector.Position = UDim2.new(0, 0, Y, 0);
  1142. Update();
  1143. end);
  1144. end;
  1145. end);
  1146. end;
  1147. return section;
  1148. end;
  1149. end;
  1150.  
  1151. return library;
  1152. end;
  1153.  
  1154. return initLibrary();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement