Advertisement
Swept_dev

Untitled

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