Advertisement
Swept_dev

skibbidihook

Mar 25th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 128.03 KB | None | 0 0
  1. ---// Variables
  2. local CloneCore = cloneref(game.CoreGui)
  3. local CloneScreenGui = Instance.new("ScreenGui")
  4. local Camera = game:GetService("Workspace").Camera
  5. local RunService = game:GetService("RunService")
  6. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  7. local InputService = game:GetService("UserInputService")
  8. local TweenService = game:GetService("TweenService")
  9.  
  10. -- Menu/UI Creation
  11. if not isfile("hidden") then
  12. makefolder("hidden")
  13. end
  14.  
  15. local menu = game:GetObjects("rbxassetid://16857238229")[1] -- 16657455028
  16. local tabholder = menu.bg.bg.bg.bg.bg.bg.main.group;
  17. local tabviewer = menu.bg.bg.bg.bg.bg.bg.tabbuttons;
  18. for _, obj in pairs(menu:GetDescendants()) do
  19. if obj.Name:lower():find('userlabel') then
  20. obj.Text = 'active user: <font color="rgb(189, 172, 255)">' .. game.Players.LocalPlayer.Name .. '</font>'
  21. end
  22. if obj.Name:lower():find('buildlabel') then
  23. obj.Text = 'build: <font color="rgb(189, 172, 255)">Private</font>'
  24. end
  25. end
  26.  
  27. local function createKeybinds()
  28. local Keybindz = {}
  29.  
  30. local Keybinds = CloneScreenGui
  31. local Background = Instance.new("Frame")
  32. local Text = Instance.new("TextLabel")
  33. local Tab = Instance.new("Frame")
  34. local Tab_Name = Instance.new("TextLabel")
  35. local UIListLayout = Instance.new("UIListLayout")
  36. local Gradient = Instance.new("Frame")
  37. local UIGradient = Instance.new("UIGradient")
  38.  
  39. Keybinds.Name = "Keybinds"
  40. Keybinds.Parent = CloneCore
  41. Keybinds.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  42.  
  43. Background.Name = "Background"
  44. Background.Visible = false
  45. Background.Parent = Keybinds
  46. Background.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  47. Background.BorderColor3 = Color3.fromRGB(25, 25, 25)
  48. Background.Position = UDim2.new(0.02, 0, 0.45, 0)
  49. Background.Size = UDim2.new(0, 156, 0, 26)
  50.  
  51. Text.Name = "Text"
  52. Text.Parent = Background
  53. Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. Text.BackgroundTransparency = 1.000
  55. Text.BorderColor3 = Color3.fromRGB(0, 0, 0)
  56. Text.BorderSizePixel = 0
  57. Text.Position = UDim2.new(0, 0, 1.17375305e-06, 0)
  58. Text.Size = UDim2.new(0, 156, 0, 26)
  59. Text.Font = Enum.Font.RobotoMono
  60. Text.RichText = true
  61. Text.Text = "[<font color=\"rgb(189, 172, 255)\">Keybinds</font>]"
  62. Text.TextColor3 = Color3.fromRGB(255, 255, 255)
  63. Text.TextSize = 14.000
  64.  
  65. Tab.Name = "Tab"
  66. Tab.Parent = Background
  67. Tab.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  68. Tab.BorderColor3 = Color3.fromRGB(25, 25, 25)
  69. Tab.Position = UDim2.new(0, 0, 1.01786566, 0)
  70. Tab.Size = UDim2.new(0, 156, 0, 22)
  71.  
  72. Tab_Name.Name = "Tab_Name"
  73. Tab_Name.Parent = Tab
  74. Tab_Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  75. Tab_Name.BackgroundTransparency = 1.000
  76. Tab_Name.BorderColor3 = Color3.fromRGB(0, 0, 0)
  77. Tab_Name.BorderSizePixel = 0
  78. Tab_Name.Position = UDim2.new(0.5, 0, -0.0454545468, 0)
  79. Tab_Name.Size = UDim2.new(0, 0, 0, 16)
  80. Tab_Name.Font = Enum.Font.RobotoMono
  81. Tab_Name.RichText = true
  82. Tab_Name.Text = "[<font color=\"rgb(255, 255, 255)\">MB2</font>] Silent Aim"
  83. Tab_Name.TextColor3 = Color3.fromRGB(125, 125, 125)
  84. Tab_Name.TextSize = 12.000
  85.  
  86. UIListLayout.Parent = Tab
  87. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  88. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  89. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  90.  
  91. Gradient.Name = "Gradient"
  92. Gradient.Parent = Background
  93. Gradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Gradient.BackgroundTransparency = 0.250
  95. Gradient.BorderColor3 = Color3.fromRGB(0, 0, 0)
  96. Gradient.BorderSizePixel = 0
  97. Gradient.Position = UDim2.new(-0.00195703749, 0, -0.00496262778, 0)
  98. Gradient.Size = UDim2.new(0, 156, 0, 1)
  99.  
  100. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(11, 11, 11)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(189, 172, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(11, 11, 11))}
  101. UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.40), NumberSequenceKeypoint.new(0.50, 0.20), NumberSequenceKeypoint.new(1.00, 0.40)}
  102. UIGradient.Parent = Gradient
  103.  
  104. function Keybindz:SetVisible(Visible)
  105. Background.Visible = Visible
  106. end
  107.  
  108. function Keybindz:Color(Color)
  109. Gradient.BackgroundColor3 = Color
  110. end
  111.  
  112. local dragging
  113. local dragInput
  114. local dragStart
  115. local startPos
  116.  
  117. Background.InputBegan:Connect(function(input)
  118. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  119. dragging = true
  120. dragStart = input.Position
  121. startPos = Background.Position
  122.  
  123. input.Changed:Connect(function()
  124. if input.UserInputState == Enum.UserInputState.End then
  125. dragging = false
  126. end
  127. end)
  128. end
  129. end)
  130.  
  131. Background.InputChanged:Connect(function(input)
  132. if input.UserInputType == Enum.UserInputType.MouseMovement then
  133. dragInput = input
  134. end
  135. end)
  136.  
  137. game:GetService("UserInputService").InputChanged:Connect(function(input)
  138. if input == dragInput and dragging then
  139. local delta = input.Position - dragStart
  140. Background.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  141. end
  142. end)
  143.  
  144. return Keybindz
  145. end
  146.  
  147. local function createWatermark()
  148. local Watermark = {}
  149.  
  150. local WatermarkGui = CloneScreenGui
  151. local WatermarkFrame = Instance.new("Frame")
  152. local WaterMarkLabel = Instance.new("TextLabel")
  153. local WatermarkGradient = Instance.new("UIGradient")
  154. local WatermarkStroke = Instance.new("UIStroke")
  155.  
  156. WatermarkGui.Parent = CloneCore
  157. WatermarkGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  158.  
  159. WatermarkFrame.Parent = WatermarkGui
  160. WatermarkFrame.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  161. WatermarkFrame.BorderColor3 = Color3.fromRGB(189, 172, 255)
  162. WatermarkFrame.BorderSizePixel = 2
  163. WatermarkFrame.Position = UDim2.new(0.0452012382, 33, 0.0223325081, -48)
  164. WatermarkFrame.Size = UDim2.new(0, 200, 0, 20)
  165. WatermarkFrame.Visible = false
  166.  
  167. WaterMarkLabel.Parent = WatermarkFrame
  168. WaterMarkLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  169. WaterMarkLabel.BackgroundTransparency = 1.000
  170. WaterMarkLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  171. WaterMarkLabel.BorderSizePixel = 0
  172. WaterMarkLabel.Position = UDim2.new(0, 0, 0, 0)
  173. WaterMarkLabel.Font = Enum.Font.Code
  174. WaterMarkLabel.RichText = true
  175. WaterMarkLabel.Text = "Build: Private"
  176. WaterMarkLabel.TextColor3 = Color3.fromRGB(152, 152, 152)
  177. WaterMarkLabel.TextSize = 14.000
  178. WaterMarkLabel.TextWrapped = false
  179.  
  180. WaterMarkLabel:GetPropertyChangedSignal("TextBounds"):Connect(function()
  181. local textSize = WaterMarkLabel.TextBounds
  182. local width = textSize.X + 10
  183. WatermarkFrame.Size = UDim2.new(0, width, 0, 20)
  184. WaterMarkLabel.Size = UDim2.new(1, 0, 1, 0)
  185. end)
  186.  
  187. WatermarkStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Contextual
  188. WatermarkStroke.Color = Color3.fromRGB(71, 71, 71)
  189. WatermarkStroke.Thickness = 1
  190. WatermarkStroke.Parent = WatermarkFrame
  191.  
  192. WatermarkGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(11, 11, 11)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(230, 230, 230))}
  193. WatermarkGradient.Rotation = 180
  194. WatermarkGradient.Parent = WatermarkFrame
  195.  
  196. local function rotateGradient()
  197. local rotationAngle = WatermarkGradient.Rotation + 1
  198. WatermarkGradient.Rotation = rotationAngle
  199. end
  200.  
  201. function Watermark:Update(Text)
  202. local time = os.date("%X", os.time())
  203. local ping = string.format('%.0f', game.Stats.Network.ServerStatsItem["Data Ping"]:GetValue())
  204. local gameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  205. local fpsValue = string.split(game.Stats.Workspace.Heartbeat:GetValueString(), ".")[1]
  206. WaterMarkLabel.Text = 'hidden.<font color="rgb(189, 172, 255)">skidders</font> - game: <font color="rgb(166, 16, 30)">' .. gameName .. '</font> / fps: <font color="rgb(189, 172, 255)">' .. fpsValue .. '</font> / ping: <font color="rgb(189, 172, 255)">' .. ping .. '</font> / time: <font color="rgb(189, 172, 255)">' .. time .. '</font>'
  207. end
  208.  
  209. function Watermark:SetVisible(Visible)
  210. WatermarkFrame.Visible = Visible
  211. end
  212.  
  213. function Watermark:Color(Color)
  214. WatermarkGradient.Color = ColorSequence.new{
  215. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(11, 11, 11)),
  216. ColorSequenceKeypoint.new(1.00, Color)
  217. }
  218. end
  219.  
  220. local dragging
  221. local dragInput
  222. local dragStart
  223. local startPos
  224.  
  225. WatermarkFrame.InputBegan:Connect(function(input)
  226. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  227. dragging = true
  228. dragStart = input.Position
  229. startPos = WatermarkFrame.Position
  230.  
  231. input.Changed:Connect(function()
  232. if input.UserInputState == Enum.UserInputState.End then
  233. dragging = false
  234. end
  235. end)
  236. end
  237. end)
  238.  
  239. WatermarkFrame.InputChanged:Connect(function(input)
  240. if input.UserInputType == Enum.UserInputType.MouseMovement then
  241. dragInput = input
  242. end
  243. end)
  244.  
  245. game:GetService("UserInputService").InputChanged:Connect(function(input)
  246. if input == dragInput and dragging then
  247. local delta = input.Position - dragStart
  248. WatermarkFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  249. end
  250. end)
  251.  
  252. task.spawn(function()
  253. while task.wait(0.01) do
  254. rotateGradient()
  255. Watermark:Update()
  256. end
  257. end)
  258. return Watermark
  259. end
  260.  
  261. local library = {
  262. Title = 'hidden.<font color="rgb(189, 172, 255)">skidders</font> | fallen off my chair',
  263. keybind = Enum.KeyCode.RightBracket,
  264. Watermark = createWatermark(),
  265. Keybindz = createKeybinds(),
  266. Colors = {
  267. libColor = Color3.fromRGB(189, 172, 255),
  268. riskyColor = Color3.fromRGB(255, 0, 0),
  269. FontColor = Color3.fromRGB(255, 255, 255),
  270. MainColor = Color3.fromRGB(14, 14, 14),
  271. AccentColor = Color3.fromRGB(189, 172, 255),
  272. OutlineColor = Color3.fromRGB(15, 15, 15),
  273. },
  274. Enabled = true,
  275. colorpicking = false,
  276. scrolling = true,
  277. multiZindex = 200,
  278. blacklisted = {
  279. Enum.KeyCode.W,
  280. Enum.KeyCode.A,
  281. Enum.KeyCode.S,
  282. Enum.KeyCode.D,
  283. Enum.UserInputType.MouseMovement
  284. },
  285. tabbuttons = {},
  286. tabs = {},
  287. options = {},
  288. flags = {},
  289. toInvis = {},
  290. Registry = {},
  291. RegistryMap = {},
  292. HudRegistry = {}
  293. }
  294. local keynames = {
  295. [Enum.KeyCode.LeftAlt] = 'LALT',
  296. [Enum.KeyCode.RightAlt] = 'RALT',
  297. [Enum.KeyCode.LeftControl] = 'LCTRL',
  298. [Enum.KeyCode.RightControl] = 'RCTRL',
  299. [Enum.KeyCode.LeftShift] = 'LSHIFT',
  300. [Enum.KeyCode.RightShift] = 'RSHIFT',
  301. [Enum.KeyCode.Underscore] = '_',
  302. [Enum.KeyCode.Minus] = '-',
  303. [Enum.KeyCode.Plus] = '+',
  304. [Enum.KeyCode.Period] = '.',
  305. [Enum.KeyCode.Slash] = '/',
  306. [Enum.KeyCode.BackSlash] = '\\',
  307. [Enum.KeyCode.Question] = '?',
  308. [Enum.UserInputType.MouseButton1] = '[MB1]',
  309. [Enum.UserInputType.MouseButton2] = '[MB2]',
  310. [Enum.UserInputType.MouseButton3] = '[MB3]'
  311. }
  312. menu.bg.pre.Text = library.Title
  313. menu.bg.Position = UDim2.new(0.5,-menu.bg.Size.X.Offset/2,0.5,-menu.bg.Size.Y.Offset/2)
  314. menu.Parent = CloneCore
  315. menu.Name = "hidden_gui"
  316. CloneScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  317. CloneScreenGui.Parent = CloneCore
  318. CloneScreenGui.Name = "hidden_gui"
  319.  
  320. function library:create_playerviewer(Visible)
  321. menu.bg.Inventory_Viewer.Visible = Visible
  322. end
  323. for _, obj in pairs(menu:GetDescendants()) do
  324. if obj.Name:lower():find('name_esp') then
  325. obj.Text = '<font color="rgb(189, 172, 255)">' .. game.Players.LocalPlayer.Name .. '</font>'
  326. end
  327. end
  328.  
  329. function library:AddToRegistry(Instance, Properties, IsHud)
  330. local Idx = #library.Registry + 3
  331. local Data = {Instance = Instance;Properties = Properties;Idx = Idx}
  332. table.insert(library.Registry, Data);
  333. library.RegistryMap[Instance] = Data;
  334. if IsHud then table.insert(library.HudRegistry, Data) end;
  335. end;
  336. function library:CreateLabel(Properties, IsHud)
  337. local _Instance = library:Create('TextLabel', {BackgroundTransparency = 1;Font = Enum.Font.Code;TextColor3 = library.Colors.FontColor;TextSize = 16;TextStrokeTransparency = 0});
  338. library:AddToRegistry(_Instance, {TextColor3 = 'FontColor'}, IsHud);
  339. return library:Create(_Instance, Properties);
  340. end;
  341. function library:GetTextBounds(Text, Font, Size, Resolution)
  342. local Bounds = game:GetService('TextService'):GetTextSize(Text, Size, Font, Resolution or Vector2.new(1920, 1080))
  343. return Bounds.X, Bounds.Y
  344. end;
  345. function library:Create(Class, Properties)
  346. if library.Enabled == false then return end;
  347. local _Instance = Class;
  348. if type(Class) == 'string' then _Instance = Instance.new(Class); end;
  349. for Property, Value in next, Properties do _Instance[Property] = Value; end;
  350. return _Instance;
  351. end;
  352. library.NotificationArea = library:Create('Frame', {BackgroundTransparency = 1;Position = UDim2.new(0.003, 0, 0, 40);Size = UDim2.new(0, 300, 0, 200);ZIndex = 100;Parent = CloneScreenGui});
  353. library:Create('UIListLayout', {Padding = UDim.new(0, 4);FillDirection = Enum.FillDirection.Vertical;SortOrder = Enum.SortOrder.LayoutOrder;Parent = library.NotificationArea});
  354. function library:Notify(Text, Time)
  355. local XSize, YSize = library:GetTextBounds(Text, Enum.Font.Code, 14);YSize = YSize + 7
  356. local NotifyOuter = library:Create('Frame', {BorderColor3 = Color3.new(189, 172, 255);Position = UDim2.new(0, 100, 0, 10);Size = UDim2.new(0, 0, 0, YSize);ClipsDescendants = true;Transparency = 0,ZIndex = 100;Parent = library.NotificationArea});
  357. library:Create('UIGradient', {Color = ColorSequence.new{ColorSequenceKeypoint.new(0, library.Colors.MainColor), ColorSequenceKeypoint.new(0.1, library.Colors.MainColor), ColorSequenceKeypoint.new(0.6, library.Colors.MainColor), ColorSequenceKeypoint.new(1, library.Colors.MainColor)},Rotation = -120;Parent = NotifyOuter});
  358. local NotifyInner = library:Create('Frame', {BackgroundColor3 = library.Colors.MainColor;BorderColor3 = library.Colors.OutlineColor;BorderMode = Enum.BorderMode.Inset;Size = UDim2.new(1, 0, 1, 0);ZIndex = 101;Parent = NotifyOuter});
  359. local InnerFrame = library:Create('Frame', {BackgroundColor3 = Color3.new(1, 1, 1);BorderSizePixel = 0;Position = UDim2.new(0, 1, 0, 1);Size = UDim2.new(1, -2, 1, -2);ZIndex = 102;Parent = NotifyInner;});
  360. local Line = library:Create('Frame', {BackgroundColor3 = library.Colors.AccentColor;BorderSizePixel = 0;Position = UDim2.new(1, 0, 0.97, 0);Size = UDim2.new(-0.999, -0.5, 0, 1.9);ZIndex = 102;Parent = NotifyInner;});
  361. local LeftColor = library:Create('Frame', {BackgroundColor3 = library.Colors.AccentColor;BorderSizePixel = 0;Position = UDim2.new(0, -1, 0, 22);Size = UDim2.new(0, 2, -1.2, 0);ZIndex = 104;Parent = NotifyOuter;});
  362. local Gradient = library:Create('UIGradient', {Color = ColorSequence.new({ColorSequenceKeypoint.new(0, library.Colors.MainColor),ColorSequenceKeypoint.new(1, library.Colors.MainColor)});Rotation = -90;Parent = InnerFrame});
  363. library:AddToRegistry(NotifyInner, {BackgroundColor3 = 'MainColor';BorderColor3 = 'OutlineColor';}, true);
  364. library:AddToRegistry(Gradient, {Color = function() return ColorSequence.new({ColorSequenceKeypoint.new(0, library.Colors.MainColor),ColorSequenceKeypoint.new(1, library.Colors.MainColor)}); end});
  365. library:CreateLabel({Position = UDim2.new(0, 6, 0, 0);Size = UDim2.new(1, -4, 1, 0);Text = Text;TextXAlignment = Enum.TextXAlignment.Left;TextSize = 14;ZIndex = 103;Parent = InnerFrame});
  366. pcall(NotifyOuter.TweenSize, NotifyOuter, UDim2.new(0, XSize + 8 + 4, 0, YSize), 'Out', 'Quad', 0.6, true);
  367. pcall(LeftColor.TweenSize, LeftColor, UDim2.new(0, 2, 0, 0), 'Out', 'Linear', 1, true);
  368. wait(0.9)
  369. pcall(Line.TweenSize, Line, UDim2.new(0, 0, 0, 2), 'Out', 'Linear', Time, true);
  370. task.spawn(function()
  371. wait(Time or 5);
  372. pcall(NotifyOuter.TweenSize, NotifyOuter, UDim2.new(0, 0, 0, YSize), 'Out', 'Quad', 0.4, true);
  373. wait(0.4);
  374. NotifyOuter:Destroy();
  375. end)
  376. end
  377.  
  378. function draggable(frame)
  379. local userInputService = game:GetService("UserInputService")
  380. local isDragging = false
  381. local startPosition
  382. local startOffset
  383. local lastInput
  384. local tweenTime = 1
  385. local easingStyle = Enum.EasingStyle.Quad
  386. local easingDirection = Enum.EasingDirection.Out
  387.  
  388. local function onMouseInput(input)
  389. if not library.colorpicking then
  390. local delta = input.Position - startPosition
  391. local newPosition = UDim2.new(startOffset.X.Scale, startOffset.X.Offset + delta.X,
  392. startOffset.Y.Scale, startOffset.Y.Offset + delta.Y)
  393. frame.Position = newPosition
  394. end
  395. end
  396.  
  397. frame.InputBegan:Connect(function(input)
  398. if input.UserInputType == Enum.UserInputType.MouseButton1 or
  399. input.UserInputType == Enum.UserInputType.Touch then
  400. isDragging = true
  401. startPosition = input.Position
  402. startOffset = frame.Position
  403. lastInput = input
  404. input.Changed:Connect(function()
  405. if input.UserInputState == Enum.UserInputState.End then
  406. isDragging = false
  407. end
  408. end)
  409. end
  410. end)
  411.  
  412. frame.InputChanged:Connect(function(input)
  413. if input.UserInputType == Enum.UserInputType.MouseMovement or
  414. input.UserInputType == Enum.UserInputType.Touch then
  415. lastInput = input
  416. end
  417. end)
  418.  
  419. userInputService.InputChanged:Connect(function(input)
  420. if input == lastInput and isDragging then
  421. onMouseInput(input)
  422. end
  423. end)
  424. end
  425.  
  426. draggable(menu.bg)
  427. InputService.MouseIconEnabled = false
  428. local Cursor = Drawing.new('Triangle');Cursor.Thickness = 1;Cursor.Filled = true;Cursor.Visible = true;Cursor.ZIndex = math.huge;local CursorOutline = Drawing.new('Triangle');CursorOutline.Thickness = 1;CursorOutline.Filled = false;CursorOutline.Color = Color3.new(0, 0, 0);CursorOutline.Visible = true;CursorOutline.ZIndex = math.huge
  429. function cursorupdate()
  430. local mPos = InputService:GetMouseLocation();
  431. Cursor.Color = library.Colors.libColor;Cursor.PointA = Vector2.new(mPos.X, mPos.Y);Cursor.PointB = Vector2.new(mPos.X + 16, mPos.Y + 6);Cursor.PointC = Vector2.new(mPos.X + 6, mPos.Y + 16) CursorOutline.PointA = Cursor.PointA;CursorOutline.PointB = Cursor.PointB;CursorOutline.PointC = Cursor.PointC;RunService.RenderStepped:Wait() end task.spawn(function() while true do cursorupdate() end
  432. end)
  433. InputService.InputEnded:Connect(function(key)
  434. if key.KeyCode == library.keybind then
  435. menu.Enabled = not menu.Enabled;library.scrolling = false;
  436. library.colorpicking = false;
  437. Cursor.Visible = not Cursor.Visible;
  438. InputService.MouseIconEnabled = not InputService.MouseIconEnabled;
  439. CursorOutline.Visible = not CursorOutline.Visible;
  440. for i,v in next,
  441. library.toInvis
  442. do v.Visible = false
  443. end
  444. end
  445. end)
  446.  
  447. function library:Tween(...) TweenService:Create(...):Play() end
  448. function library:addTab(name,image)
  449. local newTab = tabholder.tab:Clone()
  450. local newButton = tabviewer.button:Clone()
  451.  
  452. table.insert(library.tabs,newTab)
  453. newTab.Parent = tabholder
  454. newTab.Visible = false
  455.  
  456. table.insert(library.tabbuttons,newButton)
  457. newButton.Parent = tabviewer
  458. newButton.Modal = true
  459. newButton.Visible = true
  460. newButton.Image = image
  461. newButton.text.Text = name
  462.  
  463. for i, v in next, library.tabbuttons do
  464. v.ImageColor3 = Color3.fromRGB(25, 25, 25)
  465. end
  466.  
  467. newButton.MouseButton1Click:Connect(function()
  468. for i,v in next, library.tabs do v.Visible = v == newTab end
  469. for i,v in next, library.toInvis do v.Visible = false end
  470. for i,v in next, library.tabbuttons do
  471. local state = v == newButton
  472. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
  473. local imageTweenStart = TweenService:Create(v, tweenInfo, {ImageColor3 = Color3.fromRGB(189, 172, 255)})
  474. local textTweenStart = TweenService:Create(v.text, tweenInfo, {TextColor3 = Color3.fromRGB(189, 172, 255)})
  475. local imageTweenEnd = TweenService:Create(v, tweenInfo, {ImageColor3 = Color3.fromRGB(25,25,25)})
  476. local textTweenEnd = TweenService:Create(v.text, tweenInfo, {TextColor3 = Color3.fromRGB(125, 125, 125)})
  477. if state then
  478. imageTweenStart:Play()
  479. textTweenStart:Play()
  480. else
  481. imageTweenEnd:Play()
  482. textTweenEnd:Play()
  483. end
  484. end
  485. end)
  486.  
  487. local tab = {}
  488. local groupCount = 0
  489. local jigCount = 0
  490. local topStuff = 2000
  491.  
  492. function tab:createGroup(pos,groupname)
  493. local groupbox = Instance.new("Frame")
  494. local grouper = Instance.new("Frame")
  495. local UIListLayout = Instance.new("UIListLayout")
  496. local UIPadding = Instance.new("UIPadding")
  497. local element = Instance.new("Frame")
  498. local title = Instance.new("TextLabel")
  499.  
  500. groupCount -= 1
  501. groupbox.Parent = newTab[pos]
  502. groupbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  503. groupbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  504. groupbox.BorderSizePixel = 0
  505. groupbox.Size = UDim2.new(0, 211, 0, 8)
  506. groupbox.ZIndex = groupCount
  507.  
  508. grouper.Parent = groupbox
  509. grouper.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  510. grouper.BorderColor3 = Color3.fromRGB(0, 0, 0)
  511. grouper.Size = UDim2.new(1, 0, 1, 0)
  512.  
  513. UIListLayout.Parent = grouper
  514. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  515. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  516.  
  517. UIPadding.Parent = grouper
  518. UIPadding.PaddingBottom = UDim.new(0, 4)
  519. UIPadding.PaddingTop = UDim.new(0, 7)
  520.  
  521. title.Parent = groupbox
  522. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  523. title.BackgroundTransparency = 1.000
  524. title.BorderSizePixel = 0
  525. title.Position = UDim2.new(0, 17, 0, 0)
  526. title.ZIndex = 2
  527. title.Font = Enum.Font.Code
  528. title.Text = groupname or ""
  529. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  530. title.TextSize = 13.000
  531. title.TextStrokeTransparency = 0.000
  532. title.TextXAlignment = Enum.TextXAlignment.Left
  533.  
  534. local group = {}
  535. function group:addToggle(args)
  536. if not args.flag and args.text then args.flag = args.text end
  537. if not args.flag then return warn("⚠️ incorrect arguments ⚠️ - missing args on recent toggle") end
  538. function riskyCfg(state)
  539. args.risky = state
  540. end
  541. groupbox.Size += UDim2.new(0, 0, 0, 20)
  542.  
  543. local toggleframe = Instance.new("Frame")
  544. local tobble = Instance.new("Frame")
  545. local mid = Instance.new("Frame")
  546. local front = Instance.new("Frame")
  547. local text = Instance.new("TextLabel")
  548. local button = Instance.new("TextButton")
  549.  
  550. jigCount -= 1
  551. library.multiZindex -= 1
  552.  
  553. toggleframe.Name = "toggleframe"
  554. toggleframe.Parent = grouper
  555. toggleframe.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  556. toggleframe.BackgroundTransparency = 1.000
  557. toggleframe.BorderSizePixel = 0
  558. toggleframe.Size = UDim2.new(1, 0, 0, 20)
  559. toggleframe.ZIndex = library.multiZindex
  560.  
  561. tobble.Name = "tobble"
  562. tobble.Parent = toggleframe
  563. tobble.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  564. tobble.BorderColor3 = Color3.fromRGB(0, 0, 0)
  565. tobble.BorderSizePixel = 3
  566. tobble.Position = UDim2.new(0.0209999000, 0, 0.242000015, 0)
  567. tobble.Size = UDim2.new(0, 11, 0, 11)
  568.  
  569. mid.Name = "mid"
  570. mid.Parent = tobble
  571. mid.BackgroundColor3 = Color3.fromRGB(69, 23, 255)
  572. mid.BorderColor3 = Color3.fromRGB(20,20,20)
  573. mid.BorderSizePixel = 2
  574. mid.Size = UDim2.new(0, 12, 0, 12)
  575.  
  576. front.Name = "front"
  577. front.Parent = mid
  578. front.BackgroundColor3 = Color3.fromRGB(21,21,21)
  579. front.BorderColor3 = Color3.fromRGB(0, 0, 0)
  580. front.Size = UDim2.new(0, 12, 0, 12)
  581.  
  582. local front2 = Instance.new("UIGradient", front)
  583. front2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(75, 75, 75)), ColorSequenceKeypoint.new(0.320, Color3.fromRGB(100, 100, 100)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))}
  584. front2.Rotation = 45
  585.  
  586. text.Name = "text"
  587. text.Parent = toggleframe
  588. text.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  589. text.BackgroundTransparency = 1.000
  590. text.Position = UDim2.new(0, 22, 0, 0)
  591. text.Size = UDim2.new(0, 0, 1, 2)
  592. text.Font = Enum.Font.Code
  593. text.Text = args.text or args.flag
  594. text.TextColor3 = Color3.fromRGB(155, 155, 155)
  595. text.TextSize = 13.000
  596. text.TextStrokeTransparency = 0.000
  597. text.TextXAlignment = Enum.TextXAlignment.Left
  598.  
  599. button.Name = "button"
  600. button.Parent = toggleframe
  601. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  602. button.BackgroundTransparency = 1.000
  603. button.BorderSizePixel = 0
  604. button.Size = UDim2.new(0, 101, 1, 0)
  605. button.Font = Enum.Font.SourceSans
  606. button.Text = ""
  607. button.TextColor3 = Color3.fromRGB(0, 0, 0)
  608. button.TextSize = 14.000
  609.  
  610. local state = args.default
  611. if args.risky then text.TextColor3 = state and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(139, 0, 0) end
  612. if state == true then
  613. front.Name = state and "accent" or "back"
  614. library.flags[args.flag] = state
  615. mid.BorderColor3 = Color3.fromRGB(20,20,20)
  616. front.BackgroundColor3 = state and library.Colors.libColor or Color3.fromRGB(25, 25, 25)
  617. if args.risky then text.TextColor3 = state and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(139, 0, 0) else text.TextColor3 = state and Color3.fromRGB(244, 244, 244) or Color3.fromRGB(144, 144, 144) end
  618. if args.callback then args.callback(state) end
  619. else
  620. if args.risky then text.TextColor3 = Color3.fromRGB(139, 0, 0) else text.TextColor3 = Color3.fromRGB(144, 144, 144) end
  621. end
  622.  
  623. function toggle(newState)
  624. state = newState
  625. library.flags[args.flag] = state
  626. front.BackgroundColor3 = state and library.Colors.libColor or Color3.fromRGB(25, 25, 25)
  627. if args.risky then text.TextColor3 = state and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(139, 0, 0) else text.TextColor3 = state and Color3.fromRGB(244, 244, 244) or Color3.fromRGB(144, 144, 144) end
  628. if args.callback then args.callback(state) end
  629. end
  630.  
  631. button.MouseButton1Click:Connect(function()
  632. state = not state
  633. front.Name = state and "accent" or "back"
  634. library.flags[args.flag] = state
  635. mid.BorderColor3 = Color3.fromRGB(20,20,20)
  636. front.BackgroundColor3 = state and library.Colors.libColor or Color3.fromRGB(25, 25, 25)
  637. if args.risky then text.TextColor3 = state and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(139, 0, 0) else text.TextColor3 = state and Color3.fromRGB(244, 244, 244) or Color3.fromRGB(144, 144, 144) end
  638. if args.callback then args.callback(state) end
  639. end)
  640.  
  641. button.MouseEnter:Connect(function()
  642. mid.BorderColor3 = library.Colors.libColor
  643. end)
  644.  
  645. button.MouseLeave:Connect(function()
  646. mid.BorderColor3 = Color3.fromRGB(20, 20, 20)
  647. end)
  648.  
  649. library.flags[args.flag] = false
  650. library.options[args.flag] = {type = "toggle",changeState = toggle,skipflag = args.skipflag,oldargs = args,toggle = state,risky = args.risky or false,riskcfg = riskyCfg}
  651. local toggle = {}
  652. function toggle:addKeybind(args)
  653. if not args.flag then return warn("⚠️ incorrect arguments ⚠️ - missing args on toggle:keybind") end
  654. local next = false
  655. local keybind = Instance.new("Frame")
  656. local button = Instance.new("TextButton")
  657.  
  658. keybind.Parent = toggleframe
  659. keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  660. keybind.BackgroundTransparency = 1.000
  661. keybind.BorderColor3 = Color3.fromRGB(0, 0, 0)
  662. keybind.BorderSizePixel = 0
  663. keybind.Position = UDim2.new(0.730000029, 4, 0.272000015, 0)
  664. keybind.Size = UDim2.new(0, 51, 0, 10)
  665.  
  666. button.Parent = keybind
  667. button.BackgroundColor3 = Color3.fromRGB(187, 131, 255)
  668. button.BackgroundTransparency = 1.000
  669. button.BorderSizePixel = 0
  670. button.Position = UDim2.new(-0.270902753, 0, 0, 0)
  671. button.Size = UDim2.new(1.27090275, 0, 1, 0)
  672. button.Font = Enum.Font.Code
  673. button.Text = ""
  674. button.TextColor3 = Color3.fromRGB(155, 155, 155)
  675. button.TextSize = 13.000
  676. button.TextStrokeTransparency = 0.000
  677. button.TextXAlignment = Enum.TextXAlignment.Right
  678.  
  679. local status = false
  680. function updateValue(val)
  681. if library.colorpicking then return end
  682. library.flags[args.flag] = val
  683. if val.Name == "Unknown" or val.Name == "[Unknown]" then
  684. button.Text = "[None]"
  685. else
  686. button.Text = keynames[val] or "["..val.Name.."]"
  687. end
  688. end
  689. InputService.InputBegan:Connect(function(key)
  690. local key = key.KeyCode == Enum.KeyCode.Unknown and key.UserInputType or key.KeyCode
  691. if next then
  692. if not table.find(library.blacklisted,key) then
  693. next = false
  694. library.flags[args.flag] = key
  695. if key.Name == "Unknown" or key.Name == "[Unknown]" then
  696. button.Text = "[None]"
  697. else
  698. button.Text = keynames[key] or "["..key.Name.."]"
  699. end
  700. button.TextColor3 = Color3.fromRGB(155, 155, 155)
  701. end
  702. end
  703. if not next and key == library.flags[args.flag] and args.callback then
  704. status = not status
  705. args.callback(key, status)
  706. end
  707. end)
  708.  
  709. button.MouseButton1Click:Connect(function()
  710. if library.colorpicking then return end
  711. library.flags[args.flag] = Enum.KeyCode.Unknown
  712. button.Text = "--"
  713. button.TextColor3 = library.Colors.libColor
  714. next = true
  715. end)
  716.  
  717. library.flags[args.flag] = Enum.KeyCode.Unknown
  718. library.options[args.flag] = {type = "keybind",changeState = updateValue,skipflag = args.skipflag,oldargs = args}
  719. updateValue(args.key or Enum.KeyCode.Unknown)
  720. end
  721. function toggle:addColorpicker(args)
  722. if not args.flag and args.text then args.flag = args.text end
  723. if not args.flag then return warn("⚠️ incorrect arguments ⚠️") end
  724. local colorpicker = Instance.new("Frame")
  725. local mid = Instance.new("Frame")
  726. local front = Instance.new("Frame")
  727. local button2 = Instance.new("TextButton")
  728. local colorFrame = Instance.new("Frame")
  729. local colorFrame_2 = Instance.new("Frame")
  730. local hueframe = Instance.new("Frame")
  731. local main = Instance.new("Frame")
  732. local hue = Instance.new("ImageLabel")
  733. local pickerframe = Instance.new("Frame")
  734. local main_2 = Instance.new("Frame")
  735. local picker = Instance.new("ImageLabel")
  736. local clr = Instance.new("Frame")
  737. local copy = Instance.new("TextButton")
  738. local CurrentColorFrame = Instance.new("Frame")
  739. local CurrentColorFrame_Text = Instance.new("TextLabel")
  740.  
  741. library.multiZindex -= 1
  742. jigCount -= 1
  743. topStuff -= 1
  744.  
  745. colorpicker.Parent = toggleframe
  746. colorpicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  747. colorpicker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  748. colorpicker.BorderSizePixel = 3
  749. colorpicker.Position = args.second and UDim2.new(0.720000029, 4, 0.272000015, 0) or UDim2.new(0.860000014, 4, 0.272000015, 0)
  750. colorpicker.Size = UDim2.new(0, 20, 0, 10)
  751.  
  752. mid.Name = "mid"
  753. mid.Parent = colorpicker
  754. mid.BackgroundColor3 = Color3.fromRGB(69, 23, 255)
  755. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  756. mid.BorderSizePixel = 2
  757. mid.Size = UDim2.new(1, 0, 1, 0)
  758.  
  759. front.Name = "front"
  760. front.Name = "dontchange"
  761. front.Parent = mid
  762. front.BackgroundColor3 = library.Colors.libColor
  763. front.BorderColor3 = Color3.fromRGB(0, 0, 0)
  764. front.Size = UDim2.new(1, 0, 1, 0)
  765.  
  766. local ColorPickerGradient = Instance.new("UIGradient", front)
  767. ColorPickerGradient.Name = "dontchange"
  768. ColorPickerGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(75, 75, 75)), ColorSequenceKeypoint.new(0.320, Color3.fromRGB(100, 100, 100)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))}
  769. ColorPickerGradient.Rotation = 270
  770.  
  771. button2.Name = "button2"
  772. button2.Parent = front
  773. button2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  774. button2.BackgroundTransparency = 1.000
  775. button2.Size = UDim2.new(1, 0, 1, 0)
  776. button2.Text = ""
  777. button2.Font = Enum.Font.SourceSans
  778. button2.TextColor3 = Color3.fromRGB(0, 0, 0)
  779. button2.TextSize = 14.000
  780.  
  781. colorFrame.Name = "colorFrame"
  782. colorFrame.Parent = toggleframe
  783. colorFrame.BackgroundColor3 = Color3.fromRGB(15,15,15)
  784. colorFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  785. colorFrame.BorderSizePixel = 2
  786. colorFrame.Position = UDim2.new(0.101092957, 0, 0.75, 0)
  787. colorFrame.Size = UDim2.new(0, 187, 0, 178)
  788.  
  789. colorFrame_2.Name = "colorFrame"
  790. colorFrame_2.Parent = colorFrame
  791. colorFrame_2.BackgroundColor3 = Color3.fromRGB(15,15,15)
  792. colorFrame_2.BorderColor3 = Color3.fromRGB(30, 30, 30)
  793. colorFrame_2.Size = UDim2.new(1, 0, 1, 0)
  794.  
  795. hueframe.Name = "hueframe"
  796. hueframe.Parent = colorFrame_2
  797. hueframe.BackgroundColor3 = Color3.fromRGB(15,15,15)
  798. hueframe.BorderColor3 = Color3.fromRGB(30, 30, 30)
  799. hueframe.BorderSizePixel = 2
  800. hueframe.Position = UDim2.new(-0.0830000022, 18, -0.0559999987, 13)
  801. hueframe.Size = UDim2.new(0.25, 110, 0.25, 110)
  802.  
  803. main.Name = "main"
  804. main.Parent = hueframe
  805. main.BackgroundColor3 = Color3.fromRGB(15,15,15)
  806. main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  807. main.Size = UDim2.new(1, 0, 1, 0)
  808. main.ZIndex = 6
  809.  
  810. picker.Name = "picker"
  811. picker.Parent = main
  812. picker.BackgroundColor3 = Color3.fromRGB(232, 0, 255)
  813. picker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  814. picker.BorderSizePixel = 0
  815. picker.Size = UDim2.new(1, 0, 1, 0)
  816. picker.ZIndex = 104
  817. picker.Image = "rbxassetid://2615689005"
  818.  
  819. pickerframe.Name = "pickerframe"
  820. pickerframe.Parent = colorFrame
  821. pickerframe.BackgroundColor3 = Color3.fromRGB(15,15,15)
  822. pickerframe.BorderColor3 = Color3.fromRGB(30, 30, 30)
  823. pickerframe.BorderSizePixel = 2
  824. pickerframe.Position = UDim2.new(0.801000025, 14, -0.0559999987, 13)
  825. pickerframe.Size = UDim2.new(0, 20, 0.25, 110)
  826.  
  827. CurrentColorFrame.Name = "CurrentColorFrame"
  828. CurrentColorFrame.Parent = colorFrame
  829. CurrentColorFrame.BackgroundColor3 = Color3.fromRGB(15,15,15)
  830. CurrentColorFrame.BorderColor3 = Color3.fromRGB(15,15,15)
  831. CurrentColorFrame.BorderSizePixel = 2
  832. CurrentColorFrame.Position = UDim2.new(0.98, 0, 0.915, 0)
  833. CurrentColorFrame.Size = UDim2.new(-0.965, 0, 0, 12)
  834.  
  835. CurrentColorFrame_Text.Name = "CurrentColorFrame_Text"
  836. CurrentColorFrame_Text.Parent = CurrentColorFrame
  837. CurrentColorFrame_Text.BackgroundColor3 = Color3.fromRGB(15,15,15)
  838. CurrentColorFrame_Text.BackgroundTransparency = 1.000
  839. CurrentColorFrame_Text.BorderSizePixel = 0
  840. CurrentColorFrame_Text.Size = UDim2.new(1, 0, 1, 0)
  841. CurrentColorFrame_Text.Font = Enum.Font.Code
  842. CurrentColorFrame_Text.Text = args.text or args.flag
  843. CurrentColorFrame_Text.TextColor3 = library.Colors.libColor
  844.  
  845. CurrentColorFrame_Text.TextSize = 13.000
  846. CurrentColorFrame_Text.TextStrokeTransparency = 0.000
  847.  
  848. main_2.Name = "main"
  849. main_2.Parent = pickerframe
  850. main_2.BackgroundColor3 = Color3.fromRGB(15,15,15)
  851. main_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  852. main_2.Size = UDim2.new(0, 20, 1, 0)
  853. main_2.ZIndex = 6
  854.  
  855. hue.Name = "hue"
  856. hue.Parent = main_2
  857. hue.BackgroundColor3 = Color3.fromRGB(255, 0, 178)
  858. hue.BorderColor3 = Color3.fromRGB(0, 0, 0)
  859. hue.BorderSizePixel = 0
  860. hue.Size = UDim2.new(0, 20, 1, 0)
  861. hue.ZIndex = 104
  862. hue.Image = "rbxassetid://2615692420"
  863.  
  864. clr.Name = "clr"
  865. clr.Parent = colorFrame
  866. clr.BackgroundColor3 = Color3.fromRGB(15,15,15)
  867. clr.BackgroundTransparency = 1.000
  868. clr.BorderColor3 = Color3.fromRGB(60, 60, 60)
  869. clr.BorderSizePixel = 2
  870. clr.Position = UDim2.new(0.0280000009, 0, 0, 2)
  871. clr.Size = UDim2.new(0, 0, 0, 14)
  872. clr.ZIndex = 5
  873.  
  874. copy.MouseButton1Click:Connect(function()
  875. colorFrame.Visible = false
  876. end)
  877.  
  878. button2.MouseButton1Click:Connect(function()
  879. colorFrame.Visible = not colorFrame.Visible
  880. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  881. end)
  882.  
  883. button2.MouseEnter:connect(function()
  884. mid.BorderColor3 = library.Colors.libColor
  885. end)
  886. button2.MouseLeave:connect(function()
  887. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  888. end)
  889.  
  890. local function updateValue(value,fakevalue)
  891. if typeof(value) == "table" then value = fakevalue end
  892. library.flags[args.flag] = value
  893. front.BackgroundColor3 = value
  894.  
  895. local r, g, b = value.r * 255, value.g * 255, value.b * 255
  896. CurrentColorFrame_Text.TextColor3 = value
  897. CurrentColorFrame_Text.Text = "RGB(" .. math.floor(r) .. ", " .. math.floor(g) .. ", " .. math.floor(b) .. ")"
  898.  
  899. if args.callback then
  900. args.callback(value)
  901. end
  902. end
  903.  
  904. local white, black = Color3.new(1,1,1), Color3.new(0,0,0)
  905. local colors = {Color3.new(1,0,0),Color3.new(1,1,0),Color3.new(0,1,0),Color3.new(0,1,1),Color3.new(0,0,1),Color3.new(1,0,1),Color3.new(1,0,0)}
  906. local heartbeat = RunService.Heartbeat
  907. local pickerX,pickerY,hueY = 0,0,0
  908. local oldpercentX,oldpercentY = 0,0
  909.  
  910. hue.MouseEnter:Connect(function()
  911. local input = hue.InputBegan:connect(function(key)
  912. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  913. while heartbeat:wait() and InputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  914. library.colorpicking = true
  915. local percent = (hueY-hue.AbsolutePosition.Y-36)/hue.AbsoluteSize.Y
  916. local num = math.max(1, math.min(7,math.floor(((percent*7+0.5)*100))/100))
  917. local startC = colors[math.floor(num)]
  918. local endC = colors[math.ceil(num)]
  919. local color = white:lerp(picker.BackgroundColor3, oldpercentX):lerp(black, oldpercentY)
  920. picker.BackgroundColor3 = startC:lerp(endC, num-math.floor(num)) or Color3.new(0, 0, 0)
  921. updateValue(color)
  922. end
  923. library.colorpicking = false
  924. end
  925. end)
  926. local leave
  927. leave = hue.MouseLeave:connect(function()
  928. input:disconnect()
  929. leave:disconnect()
  930. end)
  931. end)
  932.  
  933. picker.MouseEnter:Connect(function()
  934. local input = picker.InputBegan:connect(function(key)
  935. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  936. while heartbeat:wait() and InputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  937. library.colorpicking = true
  938. local xPercent = (pickerX-picker.AbsolutePosition.X)/picker.AbsoluteSize.X
  939. local yPercent = (pickerY-picker.AbsolutePosition.Y-36)/picker.AbsoluteSize.Y
  940. local color = white:lerp(picker.BackgroundColor3, xPercent):lerp(black, yPercent)
  941. updateValue(color)
  942. oldpercentX,oldpercentY = xPercent,yPercent
  943. end
  944. library.colorpicking = false
  945. end
  946. end)
  947. local leave
  948. leave = picker.MouseLeave:connect(function()
  949. input:disconnect()
  950. leave:disconnect()
  951. end)
  952. end)
  953.  
  954. hue.MouseMoved:connect(function(_, y)
  955. hueY = y
  956. end)
  957.  
  958. picker.MouseMoved:connect(function(x, y)
  959. pickerX,pickerY = x,y
  960. end)
  961.  
  962. table.insert(library.toInvis,colorFrame)
  963. library.flags[args.flag] = Color3.new(1,1,1)
  964. library.options[args.flag] = {type = "colorpicker",changeState = updateValue,skipflag = args.skipflag,oldargs = args}
  965. updateValue(args.color or Color3.new(1,1,1))
  966. end
  967. return toggle
  968. end
  969. function group:addButton(args)
  970. if not args.callback or not args.text then return warn("⚠️ incorrect arguments ⚠️") end
  971. groupbox.Size += UDim2.new(0, 0, 0, 20)
  972.  
  973. local buttonframe = Instance.new("Frame")
  974. local bg = Instance.new("Frame")
  975. local main = Instance.new("Frame")
  976. local button = Instance.new("TextButton")
  977. local gradient = Instance.new("UIGradient")
  978.  
  979. buttonframe.Name = "buttonframe"
  980. buttonframe.Parent = grouper
  981. buttonframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  982. buttonframe.BackgroundTransparency = 1.000
  983. buttonframe.BorderSizePixel = 0
  984. buttonframe.Size = UDim2.new(1, 0, 0, 21)
  985.  
  986. bg.Name = "bg"
  987. bg.Parent = buttonframe
  988. bg.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  989. bg.BorderColor3 = Color3.fromRGB(0, 0, 0)
  990. bg.BorderSizePixel = 2
  991. bg.Position = UDim2.new(0.02, -1, 0.15, 0)
  992. bg.Size = UDim2.new(0, 205, 0, 15)
  993.  
  994. main.Name = "main"
  995. main.Parent = bg
  996. main.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  997. main.BorderColor3 = Color3.fromRGB(39, 39, 39)
  998. main.Size = UDim2.new(1, 0, 1, 0)
  999.  
  1000. button.Name = "button"
  1001. button.Parent = main
  1002. button.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  1003. button.BackgroundTransparency = 1.000
  1004. button.BorderSizePixel = 0
  1005. button.Size = UDim2.new(1, 0, 1, 0)
  1006. button.Font = Enum.Font.Code
  1007. button.Text = args.text or args.flag
  1008. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  1009. button.TextSize = 13.000
  1010. button.TextStrokeTransparency = 0.000
  1011.  
  1012. gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(59, 59, 59)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 83, 83))}
  1013. gradient.Rotation = 90
  1014. gradient.Name = "gradient"
  1015. gradient.Parent = main
  1016.  
  1017. button.MouseButton1Click:Connect(function()
  1018. if not library.colorpicking then
  1019. args.callback()
  1020. end
  1021. end)
  1022. button.MouseEnter:connect(function()
  1023. main.BorderColor3 = library.Colors.libColor
  1024. end)
  1025. button.MouseLeave:connect(function()
  1026. main.BorderColor3 = Color3.fromRGB(39, 39, 39)
  1027. end)
  1028. end
  1029. function group:addSlider(args,sub)
  1030. if not args.flag or not args.max then return warn("⚠️ incorrect arguments ⚠️") end
  1031. groupbox.Size += UDim2.new(0, 0, 0, 31)
  1032. function riskyCfg(state)
  1033. args.risky = state
  1034. end
  1035.  
  1036. local slider = Instance.new("Frame")
  1037. local bg = Instance.new("Frame")
  1038. local main = Instance.new("Frame")
  1039. local fill = Instance.new("Frame")
  1040. local button = Instance.new("TextButton")
  1041. local valuetext = Instance.new("TextLabel")
  1042. local UIGradient = Instance.new("UIGradient")
  1043. local text = Instance.new("TextLabel")
  1044. local textAdd = Instance.new("TextLabel")
  1045. local textRemove = Instance.new("TextLabel")
  1046.  
  1047. slider.Name = "slider"
  1048. slider.Parent = grouper
  1049. slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1050. slider.BackgroundTransparency = 1.000
  1051. slider.BorderSizePixel = 0
  1052. slider.Size = UDim2.new(1, 0, 0, 30)
  1053.  
  1054. bg.Name = "bg"
  1055. bg.Parent = slider
  1056. bg.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1057. bg.BorderColor3 = Color3.fromRGB(1, 1, 1)
  1058. bg.BorderSizePixel = 2
  1059. bg.Position = UDim2.new(0.02, -1, 0, 15)
  1060. bg.Size = UDim2.new(0, 205, 0, 13)
  1061.  
  1062. main.Name = "main"
  1063. main.Parent = bg
  1064. main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1065. main.BorderColor3 = Color3.fromRGB(20, 20, 20)
  1066. main.Size = UDim2.new(1, 0, 1, 0)
  1067.  
  1068. fill.Name = "fill"
  1069. fill.Parent = main
  1070. fill.BackgroundColor3 = library.Colors.libColor
  1071. fill.BackgroundTransparency = 0.200
  1072. fill.BorderColor3 = Color3.fromRGB(60, 60, 60)
  1073. fill.BorderSizePixel = 0
  1074. fill.Size = UDim2.new(0.617238641, 13, 1, 0)
  1075. if args.min < 0 then
  1076. fill.Position = UDim2.new(0.5,0,0,0)
  1077. end
  1078.  
  1079. local Fill_UIGradient = Instance.new("UIGradient", fill)
  1080. Fill_UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,255)), ColorSequenceKeypoint.new(0.8, Color3.fromRGB(100, 100, 100)), ColorSequenceKeypoint.new(1, Color3.fromRGB(75, 75, 75))}
  1081. Fill_UIGradient.Rotation = 90
  1082.  
  1083. button.Name = "button"
  1084. button.Parent = main
  1085. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1086. button.BackgroundTransparency = 1.000
  1087. button.Size = UDim2.new(0, 191, 1, 0)
  1088. button.Font = Enum.Font.SourceSans
  1089. button.Text = ""
  1090. button.TextColor3 = Color3.fromRGB(0, 0, 0)
  1091. button.TextSize = 14.000
  1092.  
  1093. valuetext.Parent = main
  1094. valuetext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1095. valuetext.BackgroundTransparency = 1.000
  1096. valuetext.Position = UDim2.new(0.5, 0, 0.5, 0)
  1097. valuetext.Font = Enum.Font.Code
  1098. valuetext.Text = "1/10"
  1099. valuetext.TextColor3 = Color3.fromRGB(255, 255, 255)
  1100. valuetext.TextSize = 14.000
  1101. valuetext.TextStrokeTransparency = 0.000
  1102.  
  1103. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(105, 105, 105)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(121, 121, 121))}
  1104. UIGradient.Rotation = 90
  1105. UIGradient.Parent = main
  1106.  
  1107. text.Name = "text"
  1108. text.Parent = slider
  1109. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1110. text.BackgroundTransparency = 1.000
  1111. text.Position = UDim2.new(0.0299999993, -1, 0, 7)
  1112. text.ZIndex = 2
  1113. text.Font = Enum.Font.Code
  1114. text.Text = args.text or args.flag
  1115. text.TextColor3 = Color3.fromRGB(244, 244, 244)
  1116. text.TextSize = 13.000
  1117. text.TextStrokeTransparency = 0.000
  1118. text.TextXAlignment = Enum.TextXAlignment.Left
  1119.  
  1120. if args.risky then
  1121. text.TextColor3 = library.Colors.riskyColor
  1122. end
  1123.  
  1124. textAdd.Name = "Add"
  1125. textAdd.Parent = slider
  1126. textAdd.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1127. textAdd.BackgroundTransparency = 1.000
  1128. textAdd.Position = UDim2.new(0.9111111111, -1, 0, 7)
  1129. textAdd.ZIndex = 2
  1130. textAdd.Font = Enum.Font.Code
  1131. textAdd.Text = "+"
  1132. textAdd.TextColor3 = Color3.fromRGB(244, 244, 244)
  1133. textAdd.TextSize = 9.000
  1134. textAdd.TextStrokeTransparency = 0.000
  1135. textAdd.TextXAlignment = Enum.TextXAlignment.Left
  1136.  
  1137. textRemove.Name = "Add"
  1138. textRemove.Parent = slider
  1139. textRemove.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1140. textRemove.BackgroundTransparency = 1.000
  1141. textRemove.Position = UDim2.new(0.9599999999, -1, 0, 7)
  1142. textRemove.ZIndex = 2
  1143. textRemove.Font = Enum.Font.Code
  1144. textRemove.Text = "-"
  1145. textRemove.TextColor3 = Color3.fromRGB(244, 244, 244)
  1146. textRemove.TextSize = 9.000
  1147. textRemove.TextStrokeTransparency = 0.000
  1148. textRemove.TextXAlignment = Enum.TextXAlignment.Left
  1149.  
  1150. local entered = false
  1151. local scrolling = false
  1152. local function round(value, decimalPlaces)
  1153. local shift = 10 ^ decimalPlaces return math.floor(value * shift + 0.5) / shift
  1154. end
  1155.  
  1156. local function updateValue(value)
  1157. if library.colorpicking then return end
  1158. if args.min < 0 then
  1159. fill:TweenSize(UDim2.new(value / 2 / args.max, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.01)
  1160. end
  1161. if value ~= 0 then
  1162. if args.min < 0 then
  1163. fill:TweenSize(UDim2.new(value / 2 / args.max, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.01)
  1164. else
  1165. fill:TweenSize(UDim2.new(value / args.max, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.01)
  1166. end
  1167. else
  1168. fill:TweenSize(UDim2.new(0, 1, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.01)
  1169. end
  1170. valuetext.Text = value .. args.suffix .. "/" .. args.max .. args.suffix
  1171. library.flags[args.flag] = value
  1172. if args.callback then
  1173. args.callback(value)
  1174. end
  1175. end
  1176. local function updateScroll()
  1177. while InputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) and menu.Enabled do
  1178. RunService.RenderStepped:Wait()
  1179. library.scrolling = true
  1180. valuetext.TextColor3 = Color3.fromRGB(255, 255, 255)
  1181. scrolling = true
  1182. local floatStep = args.float or 0.1
  1183. local range = args.max - args.min
  1184. local normalizedMouseX = (Mouse.X - button.AbsolutePosition.X) / button.AbsoluteSize.X
  1185. local value = args.min + normalizedMouseX * range
  1186. local snappedValue = args.min + floatStep * math.floor((value - args.min) / floatStep + 0.5)
  1187. value = math.min(args.max, snappedValue)
  1188. value = math.max(args.min, value)
  1189. value = round(value, 2)
  1190. updateValue(value)
  1191. fill.BackgroundColor3 = library.Colors.libColor
  1192. end
  1193. if scrolling and not entered then
  1194. valuetext.TextColor3 = Color3.fromRGB(255, 255, 255)
  1195. end
  1196. if not menu.Enabled then
  1197. entered = false
  1198. end
  1199. scrolling = false
  1200. library.scrolling = false
  1201. end
  1202. button.MouseEnter:Connect(function()
  1203. if library.colorpicking then return end
  1204. if scrolling or entered then return end
  1205. entered = true
  1206. main.BorderColor3 = library.Colors.libColor
  1207. while entered do
  1208. wait() updateScroll()
  1209. end
  1210. end)
  1211. button.MouseLeave:Connect(function()
  1212. entered = false
  1213. main.BorderColor3 = Color3.fromRGB(20, 20, 20)
  1214. end)
  1215. library.flags[args.flag] = args.value or args.default
  1216. library.options[args.flag] = { type = "slider", changeState = updateValue, skipflag = args.skipflag, oldargs = args }
  1217. updateValue(args.value or args.default)
  1218. end
  1219. function group:addTextbox(args)
  1220. if not args.flag then return warn("⚠️ incorrect arguments ⚠️") end
  1221. groupbox.Size += UDim2.new(0, 0, 0, 35)
  1222.  
  1223. local textbox = Instance.new("Frame")
  1224. local bg = Instance.new("Frame")
  1225. local main = Instance.new("ScrollingFrame")
  1226. local box = Instance.new("TextBox")
  1227. local gradient = Instance.new("UIGradient")
  1228. local text = Instance.new("TextLabel")
  1229.  
  1230. box:GetPropertyChangedSignal('Text'):Connect(function(val)
  1231. if library.colorpicking then return end
  1232. library.flags[args.flag] = box.Text
  1233. args.value = box.Text
  1234. if args.callback then
  1235. args.callback()
  1236. end
  1237. end)
  1238. textbox.Name = "textbox"
  1239. textbox.Parent = grouper
  1240. textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1241. textbox.BackgroundTransparency = 1.000
  1242. textbox.BorderSizePixel = 0
  1243. textbox.Size = UDim2.new(1, 0, 0, 35)
  1244. textbox.ZIndex = 10
  1245.  
  1246. bg.Name = "bg"
  1247. bg.Parent = textbox
  1248. bg.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  1249. bg.BorderColor3 = Color3.fromRGB(2, 2, 2)
  1250. bg.BorderSizePixel = 2
  1251. bg.Position = UDim2.new(0.02, -1, 0, 16)
  1252. bg.Size = UDim2.new(0, 205, 0, 15)
  1253.  
  1254. main.Name = "main"
  1255. main.Parent = bg
  1256. main.Active = true
  1257. main.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  1258. main.BorderColor3 = Color3.fromRGB(12, 12, 12)
  1259. main.Size = UDim2.new(1, 0, 1, 0)
  1260. main.CanvasSize = UDim2.new(0, 0, 0, 0)
  1261. main.ScrollBarThickness = 0
  1262.  
  1263. box.Name = "box"
  1264. box.Parent = main
  1265. box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1266. box.BackgroundTransparency = 1.000
  1267. box.Selectable = false
  1268. box.Size = UDim2.new(1, 0, 1, 0)
  1269. box.Font = Enum.Font.Code
  1270. box.Text = args.value or ""
  1271. box.TextColor3 = Color3.fromRGB(255, 255, 255)
  1272. box.TextSize = 13.000
  1273. box.TextStrokeTransparency = 0.000
  1274. box.TextXAlignment = Enum.TextXAlignment.Left
  1275.  
  1276. gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(59, 59, 59)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(83, 83, 83))}
  1277. gradient.Rotation = 90
  1278. gradient.Name = "gradient"
  1279. gradient.Parent = main
  1280.  
  1281. text.Name = "text"
  1282. text.Parent = textbox
  1283. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1284. text.BackgroundTransparency = 1.000
  1285. text.Position = UDim2.new(0.0299999993, -1, 0, 7)
  1286. text.ZIndex = 2
  1287. text.Font = Enum.Font.Code
  1288. text.Text = args.text or args.flag
  1289. text.TextColor3 = Color3.fromRGB(244, 244, 244)
  1290. text.TextSize = 13.000
  1291. text.TextStrokeTransparency = 0.000
  1292. text.TextXAlignment = Enum.TextXAlignment.Left
  1293.  
  1294. library.flags[args.flag] = args.value or ""
  1295. library.options[args.flag] = {type = "textbox",changeState = function(text) box.Text = text end,skipflag = args.skipflag,oldargs = args}
  1296. end
  1297. function group:addDivider(args)
  1298. groupbox.Size += UDim2.new(0, 0, 0, 10)
  1299.  
  1300. local div = Instance.new("Frame")
  1301. local bg = Instance.new("Frame")
  1302. local main = Instance.new("Frame")
  1303.  
  1304. div.Name = "div"
  1305. div.Parent = grouper
  1306. div.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1307. div.BackgroundTransparency = 1.000
  1308. div.BorderSizePixel = 0
  1309. div.Position = UDim2.new(0, 0, 0.743662, 0)
  1310. div.Size = UDim2.new(0, 202, 0, 10)
  1311.  
  1312. bg.Name = "bg"
  1313. bg.Parent = div
  1314. bg.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1315. bg.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1316. bg.BorderSizePixel = 2
  1317. bg.Position = UDim2.new(0.02, 0, 0, 4)
  1318. bg.Size = UDim2.new(0, 191, 0, 1)
  1319.  
  1320. main.Name = "main"
  1321. main.Parent = bg
  1322. main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1323. main.BorderColor3 = Color3.fromRGB(40, 40, 40)
  1324. main.Size = UDim2.new(0, 191, 0, 1)
  1325. end
  1326. function group:addLabel(args)
  1327. groupbox.Size += UDim2.new(0, 0, 0, 20)
  1328. library.multiZindex -= 1
  1329.  
  1330. local div = Instance.new("Frame")
  1331. local Text = Instance.new("TextLabel")
  1332.  
  1333. div.Name = "div"
  1334. div.Parent = grouper
  1335. div.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1336. div.BackgroundTransparency = 1.000
  1337. div.BorderSizePixel = 0
  1338. div.Size = UDim2.new(1, 0, 0, 20)
  1339. div.ZIndex = topStuff
  1340.  
  1341. Text.Name = "Text"
  1342. Text.Parent = div
  1343. Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1344. Text.BackgroundTransparency = 1.000
  1345. Text.Position = UDim2.new(0.02, -1, 0, 10)
  1346. Text.Font = Enum.Font.Code
  1347. Text.Text = args.text
  1348. Text.TextColor3 = Color3.fromRGB(244, 244, 244)
  1349. Text.TextSize = 13.000
  1350. Text.TextStrokeTransparency = 0.000
  1351. Text.TextXAlignment = Enum.TextXAlignment.Left
  1352. end
  1353. function group:addList(args)
  1354. if not args.flag or not args.values then return warn("⚠️ incorrect arguments ⚠️") end
  1355. groupbox.Size += UDim2.new(0, 0, 0, 34)
  1356. library.multiZindex -= 1
  1357.  
  1358. local list = Instance.new("Frame")
  1359. local bg = Instance.new("Frame")
  1360. local main = Instance.new("ScrollingFrame")
  1361. local button = Instance.new("TextButton")
  1362. local dumbtriangle = Instance.new("ImageLabel")
  1363. local valuetext = Instance.new("TextLabel")
  1364. local gradient = Instance.new("UIGradient")
  1365. local text = Instance.new("TextLabel")
  1366. local frame = Instance.new("Frame")
  1367. local holder = Instance.new("ScrollingFrame")
  1368. local UIListLayout = Instance.new("UIListLayout")
  1369.  
  1370. list.Name = "list"
  1371. list.Parent = grouper
  1372. list.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1373. list.BackgroundTransparency = 1.000
  1374. list.BorderSizePixel = 0
  1375. list.Size = UDim2.new(1, 0, 0, 35)
  1376. list.ZIndex = library.multiZindex
  1377.  
  1378. bg.Name = "bg"
  1379. bg.Parent = list
  1380. bg.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  1381. bg.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1382. bg.BorderSizePixel = 0
  1383. bg.Position = UDim2.new(0.02, -1, 0, 16)
  1384. bg.Size = UDim2.new(0, 205, 0, 15)
  1385.  
  1386. main.Name = "main"
  1387. main.Parent = bg
  1388. main.Active = true
  1389. main.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  1390. main.BorderColor3 = Color3.fromRGB(1, 1, 1)
  1391. main.Size = UDim2.new(1, 0, 1, 0)
  1392. main.CanvasSize = UDim2.new(0, 0, 0, 0)
  1393. main.ScrollBarThickness = 0
  1394.  
  1395. button.Name = "button"
  1396. button.Parent = main
  1397. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1398. button.BackgroundTransparency = 1.000
  1399. button.Size = UDim2.new(0, 191, 1, 0)
  1400. button.Font = Enum.Font.Code
  1401. button.Text = ""
  1402. button.TextColor3 = Color3.fromRGB(0, 0, 0)
  1403. button.TextSize = 14.000
  1404.  
  1405. dumbtriangle.Name = "dumbtriangle"
  1406. dumbtriangle.Parent = main
  1407. dumbtriangle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1408. dumbtriangle.BackgroundTransparency = 1.000
  1409. dumbtriangle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1410. dumbtriangle.BorderSizePixel = 0
  1411. dumbtriangle.Position = UDim2.new(1, -11, 0.5, -3)
  1412. dumbtriangle.Size = UDim2.new(0, 7, 0, 6)
  1413. dumbtriangle.ZIndex = 3
  1414. dumbtriangle.Image = "rbxassetid://8532000591"
  1415. dumbtriangle.ImageColor3 = Color3.fromRGB(255, 255, 255)
  1416.  
  1417. valuetext.Name = "valuetext"
  1418. valuetext.Parent = main
  1419. valuetext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1420. valuetext.BackgroundTransparency = 1.000
  1421. valuetext.Position = UDim2.new(0.00200000009, 2, 0, 7)
  1422. valuetext.ZIndex = 2
  1423. valuetext.Font = Enum.Font.Code
  1424. valuetext.Text = ""
  1425. valuetext.TextColor3 = Color3.fromRGB(244, 244, 244)
  1426. valuetext.TextSize = 13.000
  1427. valuetext.TextStrokeTransparency = 0.000
  1428. valuetext.TextXAlignment = Enum.TextXAlignment.Left
  1429.  
  1430. gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(105, 105, 105)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(121, 121, 121))}
  1431. gradient.Rotation = 90
  1432. gradient.Name = "gradient"
  1433. gradient.Parent = main
  1434.  
  1435. text.Name = "text"
  1436. text.Parent = list
  1437. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1438. text.BackgroundTransparency = 1.000
  1439. text.Position = UDim2.new(0.0299999993, -1, 0, 7)
  1440. text.ZIndex = 2
  1441. text.Font = Enum.Font.Code
  1442. text.Text = args.text or args.flag
  1443. text.TextColor3 = Color3.fromRGB(244, 244, 244)
  1444. text.TextSize = 13.000
  1445. text.TextStrokeTransparency = 0.000
  1446. text.TextXAlignment = Enum.TextXAlignment.Left
  1447.  
  1448. frame.Name = "frame"
  1449. frame.Parent = list
  1450. frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  1451. frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1452. frame.BorderSizePixel = 0
  1453. frame.Position = UDim2.new(0.0299999993, -1, 0.605000019, 15)
  1454. frame.Size = UDim2.new(0, 203, 0, 0)
  1455. frame.Visible = false
  1456. frame.ZIndex = library.multiZindex
  1457.  
  1458. holder.Name = "holder"
  1459. holder.Parent = frame
  1460. holder.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  1461. holder.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1462. holder.Size = UDim2.new(1, 0, 1, 0)
  1463.  
  1464. UIListLayout.Parent = holder
  1465. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1466.  
  1467. local function updateValue(value)
  1468. if value == nil then valuetext.Text = "nil" return end
  1469. if args.multiselect then
  1470. if type(value) == "string" then
  1471. if not table.find(library.options[args.flag].values,value) then return end
  1472. if table.find(library.flags[args.flag],value) then
  1473. for i,v in pairs(library.flags[args.flag]) do
  1474. if v == value then
  1475. table.remove(library.flags[args.flag],i)
  1476. end
  1477. end
  1478. else
  1479. table.insert(library.flags[args.flag],value)
  1480. end
  1481. else
  1482. library.flags[args.flag] = value
  1483. end
  1484. local buttonText = ""
  1485. for i,v in pairs(library.flags[args.flag]) do
  1486. local jig = i ~= #library.flags[args.flag] and "," or ""
  1487. buttonText = buttonText..v..jig
  1488. end
  1489. if buttonText == "" then buttonText = "..." end
  1490. for i,v in next, holder:GetChildren() do
  1491. if v.ClassName ~= "Frame" then continue end
  1492. v.off.TextColor3 = Color3.fromRGB(155, 155, 155)
  1493. for _i,_v in next, library.flags[args.flag] do
  1494. if v.Name == _v then
  1495. v.off.TextColor3 = Color3.new(1,1,1)
  1496. end
  1497. end
  1498. end
  1499. valuetext.Text = buttonText
  1500. if args.callback then
  1501. args.callback(library.flags[args.flag])
  1502. end
  1503. else
  1504. if not table.find(library.options[args.flag].values,value) then value = library.options[args.flag].values[1] end
  1505. library.flags[args.flag] = value
  1506. for i,v in next, holder:GetChildren() do
  1507. if v.ClassName ~= "Frame" then continue end
  1508. v.off.TextColor3 = Color3.new(0.65,0.65,0.65)
  1509. if v.Name == library.flags[args.flag] then
  1510. v.off.TextColor3 = library.Colors.libColor
  1511. end
  1512. end
  1513. frame.Visible = false
  1514. if library.flags[args.flag] then
  1515. valuetext.Text = library.flags[args.flag]
  1516. if args.callback then
  1517. args.callback(library.flags[args.flag])
  1518. end
  1519. end
  1520. end
  1521. end
  1522. function refresh(tbl)
  1523. for i,v in next, holder:GetChildren() do
  1524. if v.ClassName == "Frame" then
  1525. v:Destroy()
  1526. end
  1527. frame.Size = UDim2.new(0, 203, 0, 0)
  1528. end
  1529. for i,v in pairs(tbl) do
  1530. frame.Size += UDim2.new(0, 0, 0, 20)
  1531. local option = Instance.new("Frame")
  1532. local button_2 = Instance.new("TextButton")
  1533. local text_2 = Instance.new("TextLabel")
  1534.  
  1535. option.Name = v
  1536. option.Parent = holder
  1537. option.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1538. option.BackgroundTransparency = 1.000
  1539. option.Size = UDim2.new(1, 0, 0, 20)
  1540.  
  1541. button_2.Name = "button"
  1542. button_2.Parent = option
  1543. button_2.BackgroundColor3 = Color3.fromRGB(10,10,10)
  1544. button_2.BackgroundTransparency = 0.850
  1545. button_2.BorderSizePixel = 0
  1546. button_2.Size = UDim2.new(1, 0, 1, 0)
  1547. button_2.Font = Enum.Font.SourceSans
  1548. button_2.BorderColor3 = Color3.fromRGB(10,10,10)
  1549. button_2.Text = ""
  1550. button_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  1551. button_2.TextSize = 14.000
  1552.  
  1553. text_2.Name = "off"
  1554. text_2.Parent = option
  1555. text_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1556. text_2.BackgroundTransparency = 1.000
  1557. text_2.Position = UDim2.new(0, 4, 0, 0)
  1558. text_2.Size = UDim2.new(0, 0, 1, 0)
  1559. text_2.Font = Enum.Font.Code
  1560. text_2.Text = v
  1561. text_2.TextColor3 = args.multiselect and Color3.fromRGB(155, 155, 155) or library.Colors.libColor
  1562. text_2.TextSize = 14.000
  1563. text_2.TextStrokeTransparency = 0.000
  1564. text_2.TextXAlignment = Enum.TextXAlignment.Left
  1565.  
  1566. button_2.MouseButton1Click:Connect(function()
  1567. updateValue(v)
  1568. end)
  1569. button_2.MouseEnter:connect(function()
  1570. button_2.BorderColor3 = library.Colors.libColor
  1571. button_2.BorderSizePixel = 2
  1572.  
  1573. button_2.MouseLeave:connect(function()
  1574. button_2.BorderColor3 = Color3.fromRGB(1,1,1)
  1575. button_2.BorderSizePixel = 0
  1576. end)
  1577. end)
  1578. end
  1579. library.options[args.flag].values = tbl
  1580. updateValue(table.find(library.options[args.flag].values,library.flags[args.flag]) and library.flags[args.flag] or library.options[args.flag].values[1])
  1581. end
  1582.  
  1583. button.MouseButton1Click:Connect(function()
  1584. if not library.colorpicking then
  1585. frame.Visible = not frame.Visible
  1586. end
  1587. end)
  1588. button.MouseEnter:connect(function()
  1589. main.BorderColor3 = library.Colors.libColor
  1590. end)
  1591. button.MouseLeave:connect(function()
  1592. main.BorderColor3 = Color3.fromRGB(1,1,1)
  1593. end)
  1594.  
  1595. table.insert(library.toInvis,frame)
  1596. library.flags[args.flag] = args.multiselect and {} or ""
  1597. library.options[args.flag] = {type = "list",changeState = updateValue,values = args.values,refresh = refresh,skipflag = args.skipflag,oldargs = args}
  1598. refresh(args.values)
  1599. updateValue(args.value or not args.multiselect and args.values[1] or "abcdefghijklmnopqrstuwvxyz")
  1600. end
  1601. function group:addConfigbox(args)
  1602. if not args.flag or not args.values then return warn("⚠️ incorrect arguments ⚠️") end
  1603. groupbox.Size += UDim2.new(0, 0, 0, 138)
  1604. library.multiZindex -= 1
  1605.  
  1606. local list2 = Instance.new("Frame")
  1607. local frame = Instance.new("Frame")
  1608. local main = Instance.new("Frame")
  1609. local holder = Instance.new("ScrollingFrame")
  1610. local UIListLayout = Instance.new("UIListLayout")
  1611. local dwn = Instance.new("ImageLabel")
  1612. local up = Instance.new("ImageLabel")
  1613.  
  1614. list2.Name = "list2"
  1615. list2.Parent = grouper
  1616. list2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1617. list2.BackgroundTransparency = 1.000
  1618. list2.BorderSizePixel = 0
  1619. list2.Position = UDim2.new(0, 0, 0.108108111, 0)
  1620. list2.Size = UDim2.new(1, 0, 0, 138)
  1621.  
  1622. frame.Name = "frame"
  1623. frame.Parent = list2
  1624. frame.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  1625. frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1626. frame.BorderSizePixel = 2
  1627. frame.Position = UDim2.new(0.02, -1, 0.0439999998, 0)
  1628. frame.Size = UDim2.new(0, 205, 0, 128)
  1629.  
  1630. main.Name = "main"
  1631. main.Parent = frame
  1632. main.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  1633. main.BorderColor3 = Color3.fromRGB(14, 14, 14)
  1634. main.Size = UDim2.new(1, 0, 1, 0)
  1635.  
  1636. holder.Name = "holder"
  1637. holder.Parent = main
  1638. holder.Active = true
  1639. holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1640. holder.BackgroundTransparency = 1.000
  1641. holder.BorderSizePixel = 0
  1642. holder.Position = UDim2.new(0, 0, 0.00571428565, 0)
  1643. holder.Size = UDim2.new(1, 0, 1, 0)
  1644. holder.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  1645. holder.CanvasSize = UDim2.new(0, 0, 0, 0)
  1646. holder.ScrollBarThickness = 0
  1647. holder.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  1648. holder.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1649. holder.ScrollingEnabled = true
  1650. holder.ScrollBarImageTransparency = 0
  1651.  
  1652. UIListLayout.Parent = holder
  1653.  
  1654. dwn.Name = "dwn"
  1655. dwn.Parent = frame
  1656. dwn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1657. dwn.BackgroundTransparency = 1.000
  1658. dwn.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1659. dwn.BorderSizePixel = 0
  1660. dwn.Position = UDim2.new(0.930000007, 4, 1, -9)
  1661. dwn.Size = UDim2.new(0, 7, 0, 6)
  1662. dwn.ZIndex = 3
  1663. dwn.Image = "rbxassetid://8548723563"
  1664. dwn.Visible = false
  1665.  
  1666. up.Name = "up"
  1667. up.Parent = frame
  1668. up.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1669. up.BackgroundTransparency = 1.000
  1670. up.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1671. up.BorderSizePixel = 0
  1672. up.Position = UDim2.new(0, 3, 0, 3)
  1673. up.Size = UDim2.new(0, 7, 0, 6)
  1674. up.ZIndex = 3
  1675. up.Image = "rbxassetid://8548757311"
  1676. up.Visible = false
  1677.  
  1678. local function updateValue(value)
  1679. if value == nil then return end
  1680. if not table.find(library.options[args.flag].values,value) then value = library.options[args.flag].values[1] end
  1681. library.flags[args.flag] = value
  1682. for i,v in next, holder:GetChildren() do
  1683. if v.ClassName ~= "Frame" then continue end
  1684. if v.text.Text == library.flags[args.flag] then
  1685. v.text.TextColor3 = library.Colors.libColor
  1686. else
  1687. v.text.TextColor3 = Color3.fromRGB(255,255,255)
  1688. end
  1689. end
  1690. if library.flags[args.flag] then
  1691. if args.callback then
  1692. args.callback(library.flags[args.flag])
  1693. end
  1694. end
  1695. holder.Visible = true
  1696. end
  1697. holder:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  1698. up.Visible = (holder.CanvasPosition.Y > 1)
  1699. dwn.Visible = (holder.CanvasPosition.Y + 1 < (holder.AbsoluteCanvasSize.Y - holder.AbsoluteSize.Y))
  1700. end)
  1701. function refresh(tbl)
  1702. for i,v in next, holder:GetChildren() do
  1703. if v.ClassName == "Frame" then
  1704. v:Destroy()
  1705. end
  1706. end
  1707. for i,v in pairs(tbl) do
  1708. local item = Instance.new("Frame")
  1709. local button = Instance.new("TextButton")
  1710. local text = Instance.new("TextLabel")
  1711.  
  1712. item.Name = v
  1713. item.Parent = holder
  1714. item.Active = true
  1715. item.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1716. item.BackgroundTransparency = 1.000
  1717. item.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1718. item.BorderSizePixel = 0
  1719. item.Size = UDim2.new(1, 0, 0, 18)
  1720.  
  1721. button.Parent = item
  1722. button.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  1723. button.BackgroundTransparency = 1
  1724. button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1725. button.BorderSizePixel = 0
  1726. button.Size = UDim2.new(1, 0, 1, 0)
  1727. button.Text = ""
  1728. button.TextTransparency = 1.000
  1729.  
  1730. text.Name = 'text'
  1731. text.Parent = item
  1732. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1733. text.BackgroundTransparency = 1.000
  1734. text.Size = UDim2.new(1, 0, 0, 18)
  1735. text.Font = Enum.Font.Code
  1736. text.Text = v
  1737. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  1738. text.TextSize = 14.000
  1739. text.TextStrokeTransparency = 0.000
  1740.  
  1741. button.MouseButton1Click:Connect(function()
  1742. updateValue(v)
  1743. end)
  1744. end
  1745.  
  1746. holder.Visible = true
  1747. library.options[args.flag].values = tbl
  1748. updateValue(table.find(library.options[args.flag].values,library.flags[args.flag]) and library.flags[args.flag] or library.options[args.flag].values[1])
  1749. end
  1750.  
  1751. library.flags[args.flag] = ""
  1752. library.options[args.flag] = {type = "cfg",changeState = updateValue,values = args.values,refresh = refresh,skipflag = args.skipflag,oldargs = args}
  1753. refresh(args.values)
  1754. updateValue(args.value or not args.multiselect and args.values[1] or "abcdefghijklmnopqrstuwvxyz")
  1755. end
  1756. function group:addColorpicker(args)
  1757. if not args.flag then return warn("⚠️ incorrect arguments ⚠️") end
  1758. groupbox.Size += UDim2.new(0, 0, 0, 20)
  1759. library.multiZindex -= 1
  1760. jigCount -= 1
  1761. topStuff -= 1
  1762.  
  1763. local colorpicker = Instance.new("Frame")
  1764. local back = Instance.new("Frame")
  1765. local mid = Instance.new("Frame")
  1766. local front = Instance.new("Frame")
  1767. local text = Instance.new("TextLabel")
  1768. local colorpicker_2 = Instance.new("Frame")
  1769. local button = Instance.new("TextButton")
  1770. local colorFrame = Instance.new("Frame")
  1771. local colorFrame_2 = Instance.new("Frame")
  1772. local hueframe = Instance.new("Frame")
  1773. local main = Instance.new("Frame")
  1774. local hue = Instance.new("ImageLabel")
  1775. local pickerframe = Instance.new("Frame")
  1776. local main_2 = Instance.new("Frame")
  1777. local picker = Instance.new("ImageLabel")
  1778. local clr = Instance.new("Frame")
  1779. local copy = Instance.new("TextButton")
  1780. local CurrentColorFrame = Instance.new("Frame")
  1781. local CurrentColorFrame_Text = Instance.new("TextLabel")
  1782.  
  1783. colorpicker.Name = "colorpicker"
  1784. colorpicker.Parent = grouper
  1785. colorpicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1786. colorpicker.BackgroundTransparency = 1.000
  1787. colorpicker.BorderSizePixel = 0
  1788. colorpicker.Size = UDim2.new(1, 0, 0, 20)
  1789. colorpicker.ZIndex = topStuff
  1790.  
  1791. text.Name = "text"
  1792. text.Parent = colorpicker
  1793. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1794. text.BackgroundTransparency = 1.000
  1795. text.Position = UDim2.new(0.02, -1, 0, 10)
  1796. text.Font = Enum.Font.Code
  1797. text.Text = args.text or args.flag
  1798. text.TextColor3 = Color3.fromRGB(244, 244, 244)
  1799. text.TextSize = 13.000
  1800. text.TextStrokeTransparency = 0.000
  1801. text.TextXAlignment = Enum.TextXAlignment.Left
  1802.  
  1803. button.Name = "button"
  1804. button.Parent = colorpicker
  1805. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1806. button.BackgroundTransparency = 1.000
  1807. button.BorderSizePixel = 0
  1808. button.Size = UDim2.new(1, 0, 1, 0)
  1809. button.Font = Enum.Font.SourceSans
  1810. button.Text = ""
  1811. button.TextColor3 = Color3.fromRGB(0, 0, 0)
  1812. button.TextSize = 14.000
  1813.  
  1814. colorpicker_2.Name = "colorpicker"
  1815. colorpicker_2.Parent = colorpicker
  1816. colorpicker_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1817. colorpicker_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1818. colorpicker_2.BorderSizePixel = 3
  1819. colorpicker_2.Position = UDim2.new(0.860000014, 4, 0.272000015, 0)
  1820. colorpicker_2.Size = UDim2.new(0, 20, 0, 10)
  1821.  
  1822. mid.Name = "mid"
  1823. mid.Parent = colorpicker_2
  1824. mid.BackgroundColor3 = Color3.fromRGB(69, 23, 255)
  1825. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  1826. mid.BorderSizePixel = 2
  1827. mid.Size = UDim2.new(1, 0, 1, 0)
  1828.  
  1829. front.Name = "front"
  1830. front.Parent = mid
  1831. front.BackgroundColor3 = library.Colors.libColor
  1832. front.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1833. front.Size = UDim2.new(1, 0, 1, 0)
  1834. front.Name = "dontchange"
  1835.  
  1836. local ColorPickerGradient2 = Instance.new("UIGradient", front)
  1837. ColorPickerGradient2.Name = "dontchange"
  1838. ColorPickerGradient2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(75, 75, 75)), ColorSequenceKeypoint.new(0.320, Color3.fromRGB(100, 100, 100)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))}
  1839. ColorPickerGradient2.Rotation = 270
  1840.  
  1841. button.Name = "button"
  1842. button.Parent = colorpicker
  1843. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1844. button.BackgroundTransparency = 1.000
  1845. button.Size = UDim2.new(0, 202, 0, 22)
  1846. button.Font = Enum.Font.SourceSans
  1847. button.Text = ""
  1848. button.ZIndex = args.ontop and topStuff or jigCount
  1849. button.TextColor3 = Color3.fromRGB(0, 0, 0)
  1850. button.TextSize = 14.000
  1851.  
  1852. colorFrame.Name = "colorFrame"
  1853. colorFrame.Parent = colorpicker
  1854. colorFrame.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1855. colorFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1856. colorFrame.BorderSizePixel = 2
  1857. colorFrame.Position = UDim2.new(0.101092957, 0, 0.75, 0)
  1858. colorFrame.Size = UDim2.new(0, 187, 0, 178)
  1859.  
  1860. colorFrame_2.Name = "colorFrame"
  1861. colorFrame_2.Parent = colorFrame
  1862. colorFrame_2.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1863. colorFrame_2.BorderColor3 = Color3.fromRGB(60, 60, 60)
  1864. colorFrame_2.Size = UDim2.new(1, 0, 1, 0)
  1865.  
  1866. hueframe.Name = "hueframe"
  1867. hueframe.Parent = colorFrame_2
  1868. hueframe.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1869. hueframe.BorderColor3 = Color3.fromRGB(60, 60, 60)
  1870. hueframe.BorderSizePixel = 2
  1871. hueframe.Position = UDim2.new(-0.0830000022, 18, -0.0559999987, 13)
  1872. hueframe.Size = UDim2.new(0.25, 110, 0.25, 110)
  1873.  
  1874. main.Name = "main"
  1875. main.Parent = hueframe
  1876. main.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1877. main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1878. main.Size = UDim2.new(1, 0, 1, 0)
  1879. main.ZIndex = 6
  1880.  
  1881. picker.Name = "picker"
  1882. picker.Parent = main
  1883. picker.BackgroundColor3 = Color3.fromRGB(232, 0, 255)
  1884. picker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1885. picker.BorderSizePixel = 0
  1886. picker.Size = UDim2.new(1, 0, 1, 0)
  1887. picker.ZIndex = 104
  1888. picker.Image = "rbxassetid://2615689005"
  1889.  
  1890. pickerframe.Name = "pickerframe"
  1891. pickerframe.Parent = colorFrame
  1892. pickerframe.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1893. pickerframe.BorderColor3 = Color3.fromRGB(60, 60, 60)
  1894. pickerframe.BorderSizePixel = 2
  1895. pickerframe.Position = UDim2.new(0.801000025, 14, -0.0559999987, 13)
  1896. pickerframe.Size = UDim2.new(0, 20, 0.25, 110)
  1897.  
  1898. CurrentColorFrame.Name = "CurrentColorFrame"
  1899. CurrentColorFrame.Parent = colorFrame
  1900. CurrentColorFrame.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1901. CurrentColorFrame.BorderColor3 = Color3.fromRGB(15,15,15)
  1902. CurrentColorFrame.BorderSizePixel = 2
  1903. CurrentColorFrame.Position = UDim2.new(0.98, 0, 0.915, 0)
  1904. CurrentColorFrame.Size = UDim2.new(-0.965, 0, 0, 12)
  1905.  
  1906. CurrentColorFrame_Text.Name = "CurrentColorFrame_Text"
  1907. CurrentColorFrame_Text.Parent = CurrentColorFrame
  1908. CurrentColorFrame_Text.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1909. CurrentColorFrame_Text.BackgroundTransparency = 1.000
  1910. CurrentColorFrame_Text.BorderSizePixel = 0
  1911. CurrentColorFrame_Text.Size = UDim2.new(1, 0, 1, 0)
  1912. CurrentColorFrame_Text.Font = Enum.Font.Code
  1913. CurrentColorFrame_Text.Text = args.text or args.flag
  1914. CurrentColorFrame_Text.TextColor3 = library.Colors.libColor
  1915. CurrentColorFrame_Text.TextSize = 13.000
  1916. CurrentColorFrame_Text.TextStrokeTransparency = 0.000
  1917.  
  1918. main_2.Name = "main"
  1919. main_2.Parent = pickerframe
  1920. main_2.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1921. main_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1922. main_2.Size = UDim2.new(0, 20, 1, 0)
  1923. main_2.ZIndex = 6
  1924.  
  1925. hue.Name = "hue"
  1926. hue.Parent = main_2
  1927. hue.BackgroundColor3 = Color3.fromRGB(255, 0, 178)
  1928. hue.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1929. hue.BorderSizePixel = 0
  1930. hue.Size = UDim2.new(0, 20, 1, 0)
  1931. hue.ZIndex = 104
  1932. hue.Image = "rbxassetid://2615692420"
  1933.  
  1934. clr.Name = "clr"
  1935. clr.Parent = colorFrame
  1936. clr.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1937. clr.BackgroundTransparency = 1.000
  1938. clr.BorderColor3 = Color3.fromRGB(30, 30, 30)
  1939. clr.BorderSizePixel = 2
  1940. clr.Position = UDim2.new(0.0280000009, 0, 0, 2)
  1941. clr.Size = UDim2.new(0, 0, 0, 14)
  1942. clr.ZIndex = 5
  1943.  
  1944. copy.MouseButton1Click:Connect(function()
  1945. colorFrame.Visible = false
  1946. end)
  1947.  
  1948. button.MouseButton1Click:Connect(function()
  1949. colorFrame.Visible = not colorFrame.Visible
  1950. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  1951. end)
  1952.  
  1953. button.MouseEnter:connect(function()
  1954. mid.BorderColor3 = library.Colors.libColor
  1955. end)
  1956. button.MouseLeave:connect(function()
  1957. mid.BorderColor3 = Color3.fromRGB(25,25,25)
  1958. end)
  1959.  
  1960. local function updateValue(value,fakevalue)
  1961. if typeof(value) == "table" then value = fakevalue end
  1962. library.flags[args.flag] = value
  1963. front.BackgroundColor3 = value
  1964.  
  1965. local r, g, b = value.r * 255, value.g * 255, value.b * 255
  1966. CurrentColorFrame_Text.TextColor3 = value
  1967. CurrentColorFrame_Text.Text = "RGB(" .. math.floor(r) .. ", " .. math.floor(g) .. ", " .. math.floor(b) .. ")"
  1968.  
  1969. if args.callback then
  1970. args.callback(value)
  1971. end
  1972. end
  1973.  
  1974. local white, black = Color3.new(1,1,1), Color3.new(0,0,0)
  1975. local colors = {Color3.new(1,0,0),Color3.new(1,1,0),Color3.new(0,1,0),Color3.new(0,1,1),Color3.new(0,0,1),Color3.new(1,0,1),Color3.new(1,0,0)}
  1976. local heartbeat = RunService.Heartbeat
  1977. local pickerX,pickerY,hueY = 0,0,0
  1978. local oldpercentX,oldpercentY = 0,0
  1979.  
  1980. hue.MouseEnter:Connect(function()
  1981. local input = hue.InputBegan:connect(function(key)
  1982. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  1983. while heartbeat:wait() and InputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  1984. library.colorpicking = true
  1985. local percent = (hueY-hue.AbsolutePosition.Y-36)/hue.AbsoluteSize.Y
  1986. local num = math.max(1, math.min(7,math.floor(((percent*7+0.5)*100))/100))
  1987. local startC = colors[math.floor(num)]
  1988. local endC = colors[math.ceil(num)]
  1989. local color = white:lerp(picker.BackgroundColor3, oldpercentX):lerp(black, oldpercentY)
  1990. picker.BackgroundColor3 = startC:lerp(endC, num-math.floor(num)) or Color3.new(0, 0, 0)
  1991. updateValue(color)
  1992. end
  1993. library.colorpicking = false
  1994. end
  1995. end)
  1996. local leave
  1997. leave = hue.MouseLeave:connect(function()
  1998. input:disconnect()
  1999. leave:disconnect()
  2000. end)
  2001. end)
  2002.  
  2003. picker.MouseEnter:Connect(function()
  2004. local input = picker.InputBegan:connect(function(key)
  2005. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  2006. while heartbeat:wait() and InputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  2007. library.colorpicking = true
  2008. local xPercent = (pickerX-picker.AbsolutePosition.X)/picker.AbsoluteSize.X
  2009. local yPercent = (pickerY-picker.AbsolutePosition.Y-36)/picker.AbsoluteSize.Y
  2010. local color = white:lerp(picker.BackgroundColor3, xPercent):lerp(black, yPercent)
  2011. updateValue(color)
  2012. oldpercentX,oldpercentY = xPercent,yPercent
  2013. end
  2014. library.colorpicking = false
  2015. end
  2016. end)
  2017. local leave
  2018. leave = picker.MouseLeave:connect(function()
  2019. input:disconnect()
  2020. leave:disconnect()
  2021. end)
  2022. end)
  2023.  
  2024. hue.MouseMoved:connect(function(_, y)
  2025. hueY = y
  2026. end)
  2027.  
  2028. picker.MouseMoved:connect(function(x, y)
  2029. pickerX,pickerY = x,y
  2030. end)
  2031.  
  2032. table.insert(library.toInvis,colorFrame)
  2033. library.flags[args.flag] = Color3.new(1,1,1)
  2034. library.options[args.flag] = {type = "colorpicker",changeState = updateValue,skipflag = args.skipflag,oldargs = args}
  2035. updateValue(args.color or Color3.new(1,1,1))
  2036. end
  2037. function group:addKeybind(args)
  2038. if not args.flag then return warn("⚠️ incorrect arguments ⚠️ - missing args on toggle:keybind") end
  2039. groupbox.Size += UDim2.new(0, 0, 0, 20)
  2040. local next = false
  2041. local keybind = Instance.new("Frame")
  2042. local text = Instance.new("TextLabel")
  2043. local button = Instance.new("TextButton")
  2044.  
  2045. keybind.Parent = grouper
  2046. keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2047. keybind.BackgroundTransparency = 1.000
  2048. keybind.BorderSizePixel = 0
  2049. keybind.Size = UDim2.new(1, 0, 0, 20)
  2050.  
  2051. text.Parent = keybind
  2052. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2053. text.BackgroundTransparency = 1.000
  2054. text.Position = UDim2.new(0.02, -1, 0, 10)
  2055. text.Font = Enum.Font.Code
  2056. text.Text = args.text or args.flag
  2057. text.TextColor3 = Color3.fromRGB(244, 244, 244)
  2058. text.TextSize = 13.000
  2059. text.TextStrokeTransparency = 0.000
  2060. text.TextXAlignment = Enum.TextXAlignment.Left
  2061.  
  2062. button.Parent = keybind
  2063. button.BackgroundColor3 = Color3.fromRGB(187, 131, 255)
  2064. button.BackgroundTransparency = 1.000
  2065. button.BorderSizePixel = 0
  2066. button.Position = UDim2.new(7.09711117e-08, 0, 0, 0)
  2067. button.Size = UDim2.new(0.02, 0, 1, 0)
  2068. button.Font = Enum.Font.Code
  2069. button.Text = "--"
  2070. button.TextColor3 = Color3.fromRGB(155, 155, 155)
  2071. button.TextSize = 13.000
  2072. button.TextStrokeTransparency = 0.000
  2073. button.TextXAlignment = Enum.TextXAlignment.Right
  2074.  
  2075. function updateValue(val)
  2076. if library.colorpicking then return end
  2077. library.flags[args.flag] = val
  2078. button.Text = keynames[val] or "["..val.Name.."]"
  2079. end
  2080. InputService.InputBegan:Connect(function(key)
  2081. local key = key.KeyCode == Enum.KeyCode.Unknown and key.UserInputType or key.KeyCode
  2082. if next then
  2083. if not table.find(library.blacklisted,key) then
  2084. next = false
  2085. library.flags[args.flag] = key
  2086. button.Text = keynames[key] or "["..key.Name.."]"
  2087. button.TextColor3 = Color3.fromRGB(155, 155, 155)
  2088. end
  2089. end
  2090. if not next and key == library.flags[args.flag] and args.callback then
  2091. args.callback(key)
  2092. end
  2093. end)
  2094.  
  2095. button.MouseButton1Click:Connect(function()
  2096. if library.colorpicking then return end
  2097. library.flags[args.flag] = Enum.KeyCode.Unknown
  2098. button.Text = "..."
  2099. button.TextColor3 = Color3.new(0.2,0.2,0.2)
  2100. next = true
  2101. end)
  2102.  
  2103. library.flags[args.flag] = Enum.KeyCode.Unknown
  2104. library.options[args.flag] = {type = "keybind",changeState = updateValue,skipflag = args.skipflag,oldargs = args}
  2105. updateValue(args.key or Enum.KeyCode.Unknown)
  2106. end
  2107. return group, groupbox
  2108. end
  2109. return tab
  2110. end
  2111.  
  2112. --// Configs
  2113. function contains(list, x)
  2114. for _, v in pairs(list) do
  2115. if v == x then return true end
  2116. end return false end
  2117. function library:createConfig()
  2118. makefolder("hidden")
  2119. local name = library.flags["config_name"]
  2120. if contains(library.options["config_box"].values, name) then return library:Notify(name..".cfg already exists!", 5) end
  2121. if name == "" then return library:Notify("You need to put a name in!", 5) end
  2122. local jig = {}
  2123. for i,v in next, library.flags do
  2124. if library.options[i].skipflag then continue end
  2125. if typeof(v) == "Color3" then jig[i] = {v.R,v.G,v.B}
  2126. elseif typeof(v) == "EnumItem" then jig[i] = {string.split(tostring(v),".")[2],string.split(tostring(v),".")[3]}
  2127. else jig[i] = v
  2128. end
  2129. end
  2130. writefile("hidden/"..name..".cfg",game:GetService("HttpService"):JSONEncode(jig))
  2131. library:Notify("Succesfully created config "..name..".cfg!", 5)
  2132. library:refreshConfigs()
  2133. end
  2134.  
  2135. function library:saveConfig()
  2136. makefolder("hidden")
  2137. local name = library.flags["config_box"]
  2138. local jig = {}
  2139. for i,v in next, library.flags do
  2140. if library.options[i].skipflag then continue end
  2141. if typeof(v) == "Color3" then jig[i] = {v.R,v.G,v.B}
  2142. elseif typeof(v) == "EnumItem" then jig[i] = {string.split(tostring(v),".")[2],string.split(tostring(v),".")[3]}
  2143. else jig[i] = v
  2144. end;end
  2145. writefile(name,game:GetService("HttpService"):JSONEncode(jig))
  2146. library:Notify("Succesfully updated config "..name..".cfg!", 5)
  2147. library:refreshConfigs()
  2148. end
  2149.  
  2150. function library:loadConfig()
  2151. local name = library.flags["config_box"]
  2152. if not isfile(name) then
  2153. library:Notify("Config file not found!")
  2154. return end
  2155. local config = game:GetService("HttpService"):JSONDecode(readfile(name))
  2156. for i,v in next, library.options do
  2157. spawn(function()pcall(function()
  2158. if config[i] then
  2159. if v.type == "colorpicker" then v.changeState(Color3.new(config[i][1],config[i][2],config[i][3]))
  2160. elseif v.type == "keybind" then v.changeState(Enum[config[i][1]][config[i][2]])
  2161. else
  2162. if config[i] ~= library.flags[i] then v.changeState(config[i]) end
  2163. end
  2164. else
  2165. if v.type == "toggle" then v.changeState(false) v.riskcfg(v.risky)
  2166. elseif v.type == "slider" then v.changeState(v.args.value or 0) v.riskcfg(v.risky)
  2167. elseif v.type == "textbox" or v.type == "list" or v.type == "cfg" then v.changeState(v.args.value or v.args.text or "")
  2168. elseif v.type == "colorpicker" then v.changeState(v.args.color or Color3.new(1,1,1))
  2169. elseif v.type == "list" then v.changeState("")
  2170. elseif v.type == "keybind" then v.changeState(v.args.key or Enum.KeyCode.Unknown)
  2171. end
  2172. end
  2173. end)
  2174. end)
  2175. end
  2176. library:Notify("Succesfully loaded config "..name..".cfg!", 5)
  2177. end
  2178.  
  2179. function library:deleteConfig()
  2180. if isfile(library.flags["config_box"]) then delfile(library.flags["config_box"])
  2181. library:refreshConfigs()
  2182. end
  2183. end
  2184.  
  2185. function library:refreshConfigs()
  2186. local tbl = {}
  2187. for i,v in next, listfiles("hidden") do table.insert(tbl,v) end
  2188. library.options["config_box"].refresh(tbl)
  2189. end
  2190. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement