ScriptsQP

AzureMobile

Jun 2nd, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 227.85 KB | None | 0 0
  1.  
  2. repeat wait() until game:IsLoaded()
  3.  
  4. game:GetService("CorePackages").Packages:Destroy()
  5.  
  6. assert(getrawmetatable)
  7. grm = getrawmetatable(game)
  8. setreadonly(grm, false)
  9. old = grm.__namecall
  10. grm.__namecall = newcclosure(function(self, ...)
  11. local args = {...}
  12. if tostring(args[1]) == "TeleportDetect" then
  13. return
  14. elseif tostring(args[1]) == "CHECKER_1" then
  15. return
  16. elseif tostring(args[1]) == "CHECKER" then
  17. return
  18. elseif tostring(args[1]) == "GUI_CHECK" then
  19. return
  20. elseif tostring(args[1]) == "OneMoreTime" then
  21. return
  22. elseif tostring(args[1]) == "checkingSPEED" then
  23. return
  24. elseif tostring(args[1]) == "BANREMOTE" then
  25. return
  26. elseif tostring(args[1]) == "PERMAIDBAN" then
  27. return
  28. elseif tostring(args[1]) == "KICKREMOTE" then
  29. return
  30. elseif tostring(args[1]) == "BR_KICKPC" then
  31. return
  32. elseif tostring(args[1]) == "BR_KICKMOBILE" then
  33. return
  34. end
  35. return old(self, ...)
  36. end)
  37.  
  38. local library = {
  39. flags = { },
  40. items = { }
  41. }
  42.  
  43. local players = game:GetService("Players")
  44. local uis = game:GetService("UserInputService")
  45. local runservice = game:GetService("RunService")
  46. local tweenservice = game:GetService("TweenService")
  47. local marketplaceservice = game:GetService("MarketplaceService")
  48. local textservice = game:GetService("TextService")
  49. local coregui = game:GetService("CoreGui")
  50. local httpservice = game:GetService("HttpService")
  51.  
  52. local player = players.LocalPlayer
  53. local mouse = player:GetMouse()
  54. local camera = game.Workspace.CurrentCamera
  55.  
  56. library.theme = {
  57. fontsize = 17,
  58. titlesize = 18,
  59. font = Enum.Font.Code,
  60. background = "rbxassetid://0",
  61. tilesize = 90,
  62. cursor = false,
  63. cursorimg = "https://t0.rbxcdn.com/42f66da98c40252ee151326a82aab51f",
  64. backgroundcolor = Color3.fromRGB(20, 20, 20),
  65. tabstextcolor = Color3.fromRGB(168,122,207),
  66. bordercolor = Color3.fromRGB(75, 207, 255),
  67. accentcolor = Color3.fromRGB(168,122,207),
  68. accentcolor2 = Color3.fromRGB(88,65,108),
  69. outlinecolor = Color3.fromRGB(20,20,20),
  70. outlinecolor2 = Color3.fromRGB(30,30,30),--119, 64, 167
  71. sectorcolor = Color3.fromRGB(30, 30, 30),
  72. toptextcolor = Color3.fromRGB(255, 255, 255),
  73. topheight = 48,
  74. topcolor = Color3.fromRGB(30, 30, 30),
  75. topcolor2 = Color3.fromRGB(12,12,12), -- Color3.fromRGB(12, 12, 12),
  76. buttoncolor = Color3.fromRGB(49, 49, 49),
  77. buttoncolor2 = Color3.fromRGB(29,29,29),
  78. itemscolor = Color3.fromRGB(170, 170, 170),
  79. itemscolor2 = Color3.fromRGB(255,255,255)
  80. }
  81.  
  82. if library.theme.cursor and Drawing then
  83. local success = pcall(function()
  84. library.cursor = Drawing.new("Image")
  85. library.cursor.Data = game:HttpGet(library.theme.cursorimg)
  86. library.cursor.Size = Vector2.new(64, 64)
  87. library.cursor.Visible = uis.MouseEnabled
  88. library.cursor.Rounding = 0
  89. library.cursor.Position = Vector2.new(mouse.X - 32, mouse.Y + 6)
  90. end)
  91. if success and library.cursor then
  92. uis.InputChanged:Connect(function(input)
  93. if uis.MouseEnabled then
  94. if input.UserInputType == Enum.UserInputType.MouseMovement then
  95. library.cursor.Position = Vector2.new(input.Position.X - 32, input.Position.Y + 7)
  96. end
  97. end
  98. end)
  99.  
  100. game:GetService("RunService").RenderStepped:Connect(function()
  101. uis.OverrideMouseIconBehavior = Enum.OverrideMouseIconBehavior.ForceHide
  102. library.cursor.Visible = uis.MouseEnabled and (uis.MouseIconEnabled or game:GetService("GuiService").MenuIsOpen)
  103. end)
  104. elseif not success and library.cursor then
  105. library.cursor:Remove()
  106. end
  107. end
  108.  
  109. function library:CreateWatermark(name, position)
  110. local gamename = marketplaceservice:GetProductInfo(game.PlaceId).Name
  111. local watermark = { }
  112. watermark.Visible = true
  113. watermark.text = " " .. name:gsub("{game}", gamename):gsub("{fps}", "0 FPS") .. " "
  114.  
  115. watermark.main = Instance.new("ScreenGui", coregui)
  116. watermark.main.Name = "Watermark"
  117. if syn then
  118. syn.protect_gui(watermark.main)
  119. end
  120.  
  121. if getgenv().watermark then
  122. getgenv().watermark:Remove()
  123. end
  124. getgenv().watermark = watermark.main
  125.  
  126. watermark.mainbar = Instance.new("Frame", watermark.main)
  127. watermark.mainbar.Name = "Main"
  128. watermark.mainbar.BorderColor3 = Color3.fromRGB(80, 80, 80)
  129. watermark.mainbar.Visible = watermark.Visible
  130. watermark.mainbar.BorderSizePixel = 0
  131. watermark.mainbar.ZIndex = 5
  132. watermark.mainbar.Position = UDim2.new(0, position and position.X or 10, 0, position and position.Y or 10)
  133. watermark.mainbar.Size = UDim2.new(0, 0, 0, 25)
  134.  
  135. watermark.Gradient = Instance.new("UIGradient", watermark.mainbar)
  136. watermark.Gradient.Rotation = 90
  137. watermark.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(40, 40, 40)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(10, 10, 10)) })
  138.  
  139. watermark.Outline = Instance.new("Frame", watermark.mainbar)
  140. watermark.Outline.Name = "outline"
  141. watermark.Outline.ZIndex = 4
  142. watermark.Outline.BorderSizePixel = 0
  143. watermark.Outline.Visible = watermark.Visible
  144. watermark.Outline.BackgroundColor3 = library.theme.outlinecolor
  145. watermark.Outline.Position = UDim2.fromOffset(-1, -1)
  146.  
  147. watermark.BlackOutline = Instance.new("Frame", watermark.mainbar)
  148. watermark.BlackOutline.Name = "blackline"
  149. watermark.BlackOutline.ZIndex = 3
  150. watermark.BlackOutline.BorderSizePixel = 0
  151. watermark.BlackOutline.BackgroundColor3 = library.theme.outlinecolor2
  152. watermark.BlackOutline.Visible = watermark.Visible
  153. watermark.BlackOutline.Position = UDim2.fromOffset(-2, -2)
  154.  
  155. watermark.label = Instance.new("TextLabel", watermark.mainbar)
  156. watermark.label.Name = "FPSLabel"
  157. watermark.label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  158. watermark.label.BackgroundTransparency = 1.000
  159. watermark.label.Position = UDim2.new(0, 0, 0, 0)
  160. watermark.label.Size = UDim2.new(0, 238, 0, 25)
  161. watermark.label.Font = library.theme.font
  162. watermark.label.ZIndex = 6
  163. watermark.label.Visible = watermark.Visible
  164. watermark.label.Text = watermark.text
  165. watermark.label.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. watermark.label.TextSize = 15
  167. watermark.label.TextStrokeTransparency = 0.000
  168. watermark.label.TextXAlignment = Enum.TextXAlignment.Left
  169. watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+10, 0, 25)
  170.  
  171. watermark.topbar = Instance.new("Frame", watermark.mainbar)
  172. watermark.topbar.Name = "TopBar"
  173. watermark.topbar.ZIndex = 6
  174. watermark.topbar.BackgroundColor3 = library.theme.accentcolor
  175. watermark.topbar.BorderSizePixel = 0
  176. watermark.topbar.Visible = watermark.Visible
  177. watermark.topbar.Size = UDim2.new(0, 0, 0, 1)
  178.  
  179. watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 25)
  180. watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X+6, 0, 1)
  181. watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2)
  182. watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4)
  183.  
  184. watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X+4, 0, 25)
  185. watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+4, 0, 25)
  186. watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X+6, 0, 1)
  187. watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2)
  188. watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4)
  189.  
  190. local startTime, counter, oldfps = os.clock(), 0, nil
  191. runservice.Heartbeat:Connect(function()
  192. watermark.label.Visible = watermark.Visible
  193. watermark.mainbar.Visible = watermark.Visible
  194. watermark.topbar.Visible = watermark.Visible
  195. watermark.Outline.Visible = watermark.Visible
  196. watermark.BlackOutline.Visible = watermark.Visible
  197.  
  198. if not name:find("{fps}") then
  199. watermark.label.Text = " " .. name:gsub("{game}", gamename):gsub("{fps}", "0 FPS") .. " "
  200. end
  201.  
  202. if name:find("{fps}") then
  203. local currentTime = os.clock()
  204. counter = counter + 1
  205. if currentTime - startTime >= 1 then
  206. local fps = math.floor(counter / (currentTime - startTime))
  207. counter = 0
  208. startTime = currentTime
  209.  
  210. if fps ~= oldfps then
  211. watermark.label.Text = " " .. name:gsub("{game}", gamename):gsub("{fps}", fps .. " FPS") .. " "
  212.  
  213. watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+10, 0, 25)
  214. watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 25)
  215. watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 1)
  216.  
  217. watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2)
  218. watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4)
  219. end
  220. oldfps = fps
  221. end
  222. end
  223. end)
  224.  
  225. watermark.mainbar.MouseEnter:Connect(function()
  226. tweenservice:Create(watermark.mainbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play()
  227. tweenservice:Create(watermark.topbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play()
  228. tweenservice:Create(watermark.label, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { TextTransparency = 1, Active = false }):Play()
  229. tweenservice:Create(watermark.Outline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play()
  230. tweenservice:Create(watermark.BlackOutline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play()
  231. end)
  232.  
  233. watermark.mainbar.MouseLeave:Connect(function()
  234. tweenservice:Create(watermark.mainbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play()
  235. tweenservice:Create(watermark.topbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play()
  236. tweenservice:Create(watermark.label, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { TextTransparency = 0, Active = true }):Play()
  237. tweenservice:Create(watermark.Outline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play()
  238. tweenservice:Create(watermark.BlackOutline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play()
  239. end)
  240.  
  241. function watermark:UpdateTheme(theme)
  242. theme = theme or library.theme
  243. watermark.Outline.BackgroundColor3 = theme.outlinecolor
  244. watermark.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  245. watermark.label.Font = theme.font
  246. watermark.topbar.BackgroundColor3 = theme.accentcolor
  247. end
  248.  
  249. return watermark
  250. end
  251.  
  252. function library:CreateWindow(name, size, hidebutton)
  253. local window = { }
  254.  
  255. window.name = name or ""
  256. window.size = UDim2.fromOffset(size.X, size.Y) or UDim2.fromOffset(492, 598)
  257. window.hidebutton = hidebutton or Enum.KeyCode.RightShift
  258. window.theme = library.theme
  259.  
  260. local updateevent = Instance.new("BindableEvent")
  261. function window:UpdateTheme(theme)
  262. updateevent:Fire(theme or library.theme)
  263. window.theme = (theme or library.theme)
  264. end
  265.  
  266. window.Main = Instance.new("ScreenGui", coregui)
  267. window.Main.Name = name
  268. window.Main.DisplayOrder = 15
  269. if syn then
  270. syn.protect_gui(window.Main)
  271. end
  272.  
  273. if getgenv().uilib then
  274. getgenv().uilib:Remove()
  275. end
  276. getgenv().uilib = window.Main
  277.  
  278. local dragging, dragInput, dragStart, startPos
  279. uis.InputChanged:Connect(function(input)
  280. if input == dragInput and dragging then
  281. local delta = input.Position - dragStart
  282. window.Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  283. end
  284. end)
  285.  
  286. local dragstart = function(input)
  287. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  288. dragging = true
  289. dragStart = input.Position
  290. startPos = window.Frame.Position
  291.  
  292. input.Changed:Connect(function()
  293. if input.UserInputState == Enum.UserInputState.End then
  294. dragging = false
  295. end
  296. end)
  297. end
  298. end
  299.  
  300. local dragend = function(input)
  301. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  302. dragInput = input
  303. end
  304. end
  305.  
  306. window.Frame = Instance.new("TextButton", window.Main)
  307. window.Frame.Name = "main"
  308. window.Frame.Position = UDim2.fromScale(0.5, 0.5)
  309. window.Frame.BorderSizePixel = 0
  310. window.Frame.Size = window.size
  311. window.Frame.AutoButtonColor = false
  312. window.Frame.Text = ""
  313. window.Frame.BackgroundColor3 = window.theme.backgroundcolor
  314. window.Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  315. updateevent.Event:Connect(function(theme)
  316. window.Frame.BackgroundColor3 = theme.backgroundcolor
  317. end)
  318.  
  319. uis.InputBegan:Connect(function(key)
  320. if key.KeyCode == window.hidebutton then
  321. window.Frame.Visible = not window.Frame.Visible
  322. end
  323. end)
  324.  
  325. local function checkIfGuiInFront(Pos)
  326. local objects = coregui:GetGuiObjectsAtPosition(Pos.X, Pos.Y)
  327. for i,v in pairs(objects) do
  328. if not string.find(v:GetFullName(), window.name) then
  329. table.remove(objects, i)
  330. end
  331. end
  332. return (#objects ~= 0 and objects[1].AbsolutePosition ~= Pos)
  333. end
  334.  
  335. window.BlackOutline = Instance.new("Frame", window.Frame)
  336. window.BlackOutline.Name = "outline"
  337. window.BlackOutline.ZIndex = 1
  338. window.BlackOutline.Size = window.size + UDim2.fromOffset(2, 2)
  339. window.BlackOutline.BorderSizePixel = 0
  340. window.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  341. window.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  342. updateevent.Event:Connect(function(theme)
  343. window.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  344. end)
  345.  
  346. window.Outline = Instance.new("Frame", window.Frame)
  347. window.Outline.Name = "outline"
  348. window.Outline.ZIndex = 0
  349. window.Outline.Size = window.size + UDim2.fromOffset(4, 4)
  350. window.Outline.BorderSizePixel = 0
  351. window.Outline.BackgroundColor3 = window.theme.outlinecolor
  352. window.Outline.Position = UDim2.fromOffset(-2, -2)
  353. updateevent.Event:Connect(function(theme)
  354. window.Outline.BackgroundColor3 = theme.outlinecolor
  355. end)
  356.  
  357. window.BlackOutline2 = Instance.new("Frame", window.Frame)
  358. window.BlackOutline2.Name = "outline"
  359. window.BlackOutline2.ZIndex = -1
  360. window.BlackOutline2.Size = window.size + UDim2.fromOffset(6, 6)
  361. window.BlackOutline2.BorderSizePixel = 0
  362. window.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  363. window.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  364. updateevent.Event:Connect(function(theme)
  365. window.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  366. end)
  367.  
  368. window.TopBar = Instance.new("Frame", window.Frame)
  369. window.TopBar.Name = "top"
  370. window.TopBar.Size = UDim2.fromOffset(window.size.X.Offset, window.theme.topheight)
  371. window.TopBar.BorderSizePixel = 0
  372. window.TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  373. window.TopBar.InputBegan:Connect(dragstart)
  374. window.TopBar.InputChanged:Connect(dragend)
  375. updateevent.Event:Connect(function(theme)
  376. window.TopBar.Size = UDim2.fromOffset(window.size.X.Offset, theme.topheight)
  377. end)
  378.  
  379. window.TopGradient = Instance.new("UIGradient", window.TopBar)
  380. window.TopGradient.Rotation = 90
  381. window.TopGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.topcolor), ColorSequenceKeypoint.new(1.00, window.theme.topcolor2) })
  382. updateevent.Event:Connect(function(theme)
  383. window.TopGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.topcolor), ColorSequenceKeypoint.new(1.00, theme.topcolor2) })
  384. end)
  385.  
  386. window.NameLabel = Instance.new("TextLabel", window.TopBar)
  387. window.NameLabel.TextColor3 = window.theme.toptextcolor
  388. window.NameLabel.Text = window.name
  389. window.NameLabel.TextXAlignment = Enum.TextXAlignment.Left
  390. window.NameLabel.Font = window.theme.font
  391. window.NameLabel.Name = "title"
  392. window.NameLabel.Position = UDim2.fromOffset(4, -2)
  393. window.NameLabel.BackgroundTransparency = 1
  394. window.NameLabel.Size = UDim2.fromOffset(190, window.TopBar.AbsoluteSize.Y / 2 - 2)
  395. window.NameLabel.TextSize = window.theme.titlesize
  396. updateevent.Event:Connect(function(theme)
  397. window.NameLabel.TextColor3 = theme.toptextcolor
  398. window.NameLabel.Font = theme.font
  399. window.NameLabel.TextSize = theme.titlesize
  400. end)
  401.  
  402. window.Line2 = Instance.new("Frame", window.TopBar)
  403. window.Line2.Name = "line"
  404. window.Line2.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y / 2.1)
  405. window.Line2.Size = UDim2.fromOffset(window.size.X.Offset, 1)
  406. window.Line2.BorderSizePixel = 0
  407. window.Line2.BackgroundColor3 = window.theme.accentcolor
  408. updateevent.Event:Connect(function(theme)
  409. window.Line2.BackgroundColor3 = theme.accentcolor
  410. end)
  411.  
  412. window.TabList = Instance.new("Frame", window.TopBar)
  413. window.TabList.Name = "tablist"
  414. window.TabList.BackgroundTransparency = 1
  415. window.TabList.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y / 2 + 1)
  416. window.TabList.Size = UDim2.fromOffset(window.size.X.Offset, window.TopBar.AbsoluteSize.Y / 2)
  417. window.TabList.BorderSizePixel = 0
  418. window.TabList.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  419.  
  420. window.TabList.InputBegan:Connect(dragstart)
  421. window.TabList.InputChanged:Connect(dragend)
  422.  
  423. window.BlackLine = Instance.new("Frame", window.Frame)
  424. window.BlackLine.Name = "blackline"
  425. window.BlackLine.Size = UDim2.fromOffset(window.size.X.Offset, 1)
  426. window.BlackLine.BorderSizePixel = 0
  427. window.BlackLine.ZIndex = 9
  428. window.BlackLine.BackgroundColor3 = window.theme.outlinecolor2
  429. window.BlackLine.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y)
  430. updateevent.Event:Connect(function(theme)
  431. window.BlackLine.BackgroundColor3 = theme.outlinecolor2
  432. end)
  433.  
  434. window.BackgroundImage = Instance.new("ImageLabel", window.Frame)
  435. window.BackgroundImage.Name = "background"
  436. window.BackgroundImage.BorderSizePixel = 0
  437. window.BackgroundImage.ScaleType = Enum.ScaleType.Tile
  438. window.BackgroundImage.Position = window.BlackLine.Position + UDim2.fromOffset(0, 1)
  439. window.BackgroundImage.Size = UDim2.fromOffset(window.size.X.Offset, window.size.Y.Offset - window.TopBar.AbsoluteSize.Y - 1)
  440. window.BackgroundImage.Image = window.theme.background or ""
  441. window.BackgroundImage.ImageTransparency = window.BackgroundImage.Image ~= "" and 0 or 1
  442. window.BackgroundImage.ImageColor3 = Color3.new()
  443. window.BackgroundImage.BackgroundColor3 = window.theme.backgroundcolor
  444. window.BackgroundImage.TileSize = UDim2.new(0, window.theme.tilesize, 0, window.theme.tilesize)
  445. updateevent.Event:Connect(function(theme)
  446. window.BackgroundImage.Image = theme.background or ""
  447. window.BackgroundImage.ImageTransparency = window.BackgroundImage.Image ~= "" and 0 or 1
  448. window.BackgroundImage.BackgroundColor3 = theme.backgroundcolor
  449. window.BackgroundImage.TileSize = UDim2.new(0, theme.tilesize, 0, theme.tilesize)
  450. end)
  451.  
  452. window.Line = Instance.new("Frame", window.Frame)
  453. window.Line.Name = "line"
  454. window.Line.Position = UDim2.fromOffset(0, 0)
  455. window.Line.Size = UDim2.fromOffset(60, 1)
  456. window.Line.BorderSizePixel = 0
  457. window.Line.BackgroundColor3 = window.theme.accentcolor
  458. updateevent.Event:Connect(function(theme)
  459. window.Line.BackgroundColor3 = theme.accentcolor
  460. end)
  461.  
  462. window.ListLayout = Instance.new("UIListLayout", window.TabList)
  463. window.ListLayout.FillDirection = Enum.FillDirection.Horizontal
  464. window.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  465.  
  466. window.OpenedColorPickers = { }
  467. window.Tabs = { }
  468.  
  469. function window:CreateTab(name)
  470. local tab = { }
  471. tab.name = name or ""
  472.  
  473. local textservice = game:GetService("TextService")
  474. local size = textservice:GetTextSize(tab.name, window.theme.fontsize, window.theme.font, Vector2.new(200,300))
  475.  
  476. tab.TabButton = Instance.new("TextButton", window.TabList)
  477. tab.TabButton.TextColor3 = window.theme.tabstextcolor
  478. tab.TabButton.Text = tab.name
  479. tab.TabButton.AutoButtonColor = false
  480. tab.TabButton.Font = window.theme.font
  481. tab.TabButton.TextYAlignment = Enum.TextYAlignment.Center
  482. tab.TabButton.BackgroundTransparency = 1
  483. tab.TabButton.BorderSizePixel = 0
  484. tab.TabButton.Size = UDim2.fromOffset(size.X + 15, window.TabList.AbsoluteSize.Y - 1)
  485. tab.TabButton.Name = tab.name
  486. tab.TabButton.TextSize = window.theme.fontsize
  487. updateevent.Event:Connect(function(theme)
  488. local size = textservice:GetTextSize(tab.name, theme.fontsize, theme.font, Vector2.new(200,300))
  489. tab.TabButton.TextColor3 = tab.TabButton.Name == "SelectedTab" and theme.accentcolor or theme.tabstextcolor
  490. tab.TabButton.Font = theme.font
  491. tab.TabButton.Size = UDim2.fromOffset(size.X + 15, window.TabList.AbsoluteSize.Y - 1)
  492. tab.TabButton.TextSize = theme.fontsize
  493. end)
  494.  
  495. tab.Left = Instance.new("ScrollingFrame", window.Frame)
  496. tab.Left.Name = "leftside"
  497. tab.Left.BorderSizePixel = 0
  498. tab.Left.Size = UDim2.fromOffset(window.size.X.Offset / 2, window.size.Y.Offset - (window.TopBar.AbsoluteSize.Y + 1))
  499. tab.Left.BackgroundTransparency = 1
  500. tab.Left.Visible = false
  501. tab.Left.ScrollBarThickness = 0
  502. tab.Left.ScrollingDirection = "Y"
  503. tab.Left.Position = window.BlackLine.Position + UDim2.fromOffset(0, 1)
  504.  
  505. tab.LeftListLayout = Instance.new("UIListLayout", tab.Left)
  506. tab.LeftListLayout.FillDirection = Enum.FillDirection.Vertical
  507. tab.LeftListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  508. tab.LeftListLayout.Padding = UDim.new(0, 12)
  509.  
  510. tab.LeftListPadding = Instance.new("UIPadding", tab.Left)
  511. tab.LeftListPadding.PaddingTop = UDim.new(0, 12)
  512. tab.LeftListPadding.PaddingLeft = UDim.new(0, 12)
  513. tab.LeftListPadding.PaddingRight = UDim.new(0, 12)
  514.  
  515. tab.Right = Instance.new("ScrollingFrame", window.Frame)
  516. tab.Right.Name = "rightside"
  517. tab.Right.ScrollBarThickness = 0
  518. tab.Right.ScrollingDirection = "Y"
  519. tab.Right.Visible = false
  520. tab.Right.BorderSizePixel = 0
  521. tab.Right.Size = UDim2.fromOffset(window.size.X.Offset / 2, window.size.Y.Offset - (window.TopBar.AbsoluteSize.Y + 1))
  522. tab.Right.BackgroundTransparency = 1
  523. tab.Right.Position = tab.Left.Position + UDim2.fromOffset(tab.Left.AbsoluteSize.X, 0)
  524.  
  525. tab.RightListLayout = Instance.new("UIListLayout", tab.Right)
  526. tab.RightListLayout.FillDirection = Enum.FillDirection.Vertical
  527. tab.RightListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  528. tab.RightListLayout.Padding = UDim.new(0, 12)
  529.  
  530. tab.RightListPadding = Instance.new("UIPadding", tab.Right)
  531. tab.RightListPadding.PaddingTop = UDim.new(0, 12)
  532. tab.RightListPadding.PaddingLeft = UDim.new(0, 6)
  533. tab.RightListPadding.PaddingRight = UDim.new(0, 12)
  534.  
  535. local block = false
  536. function tab:SelectTab()
  537. repeat
  538. wait()
  539. until block == false
  540.  
  541. block = true
  542. for i,v in pairs(window.Tabs) do
  543. if v ~= tab then
  544. v.TabButton.TextColor3 = Color3.fromRGB(230, 230, 230)
  545. v.TabButton.Name = "Tab"
  546. v.Left.Visible = false
  547. v.Right.Visible = false
  548. end
  549. end
  550.  
  551. tab.TabButton.TextColor3 = window.theme.accentcolor
  552. tab.TabButton.Name = "SelectedTab"
  553. tab.Right.Visible = true
  554. tab.Left.Visible = true
  555. window.Line:TweenSizeAndPosition(UDim2.fromOffset(size.X + 15, 1), UDim2.new(0, (tab.TabButton.AbsolutePosition.X - window.Frame.AbsolutePosition.X), 0, 0) + (window.BlackLine.Position - UDim2.fromOffset(0, 1)), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.15)
  556. wait(0.2)
  557. block = false
  558. end
  559.  
  560. if #window.Tabs == 0 then
  561. tab:SelectTab()
  562. end
  563.  
  564. tab.TabButton.MouseButton1Down:Connect(function()
  565. tab:SelectTab()
  566. end)
  567.  
  568. tab.SectorsLeft = { }
  569. tab.SectorsRight = { }
  570.  
  571. function tab:CreateSector(name,side)
  572. local sector = { }
  573. sector.name = name or ""
  574. sector.side = side:lower() or "left"
  575.  
  576. sector.Main = Instance.new("Frame", sector.side == "left" and tab.Left or tab.Right)
  577. sector.Main.Name = sector.name:gsub(" ", "") .. "Sector"
  578. sector.Main.BorderSizePixel = 0
  579. sector.Main.ZIndex = 4
  580. sector.Main.Size = UDim2.fromOffset(window.size.X.Offset / 2 - 17, 20)
  581. sector.Main.BackgroundColor3 = window.theme.sectorcolor
  582. --sector.Main.Position = sector.side == "left" and UDim2.new(0, 11, 0, 12) or UDim2.new(0, window.size.X.Offset - sector.Main.AbsoluteSize.X - 11, 0, 12)
  583. updateevent.Event:Connect(function(theme)
  584. sector.Main.BackgroundColor3 = theme.sectorcolor
  585. end)
  586.  
  587. sector.Line = Instance.new("Frame", sector.Main)
  588. sector.Line.Name = "line"
  589. sector.Line.ZIndex = 4
  590. sector.Line.Size = UDim2.fromOffset(sector.Main.Size.X.Offset + 4, 1)
  591. sector.Line.BorderSizePixel = 0
  592. sector.Line.Position = UDim2.fromOffset(-2, -2)
  593. sector.Line.BackgroundColor3 = window.theme.accentcolor
  594. updateevent.Event:Connect(function(theme)
  595. sector.Line.BackgroundColor3 = theme.accentcolor
  596. end)
  597.  
  598. sector.BlackOutline = Instance.new("Frame", sector.Main)
  599. sector.BlackOutline.Name = "outline"
  600. sector.BlackOutline.ZIndex = 3
  601. sector.BlackOutline.Size = sector.Main.Size + UDim2.fromOffset(2, 2)
  602. sector.BlackOutline.BorderSizePixel = 0
  603. sector.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  604. sector.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  605. sector.Main:GetPropertyChangedSignal("Size"):Connect(function()
  606. sector.BlackOutline.Size = sector.Main.Size + UDim2.fromOffset(2, 2)
  607. end)
  608. updateevent.Event:Connect(function(theme)
  609. sector.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  610. end)
  611.  
  612.  
  613. sector.Outline = Instance.new("Frame", sector.Main)
  614. sector.Outline.Name = "outline"
  615. sector.Outline.ZIndex = 2
  616. sector.Outline.Size = sector.Main.Size + UDim2.fromOffset(4, 4)
  617. sector.Outline.BorderSizePixel = 0
  618. sector.Outline.BackgroundColor3 = window.theme.outlinecolor
  619. sector.Outline.Position = UDim2.fromOffset(-2, -2)
  620. sector.Main:GetPropertyChangedSignal("Size"):Connect(function()
  621. sector.Outline.Size = sector.Main.Size + UDim2.fromOffset(4, 4)
  622. end)
  623. updateevent.Event:Connect(function(theme)
  624. sector.Outline.BackgroundColor3 = theme.outlinecolor
  625. end)
  626.  
  627. sector.BlackOutline2 = Instance.new("Frame", sector.Main)
  628. sector.BlackOutline2.Name = "outline"
  629. sector.BlackOutline2.ZIndex = 1
  630. sector.BlackOutline2.Size = sector.Main.Size + UDim2.fromOffset(6, 6)
  631. sector.BlackOutline2.BorderSizePixel = 0
  632. sector.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  633. sector.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  634. sector.Main:GetPropertyChangedSignal("Size"):Connect(function()
  635. sector.BlackOutline2.Size = sector.Main.Size + UDim2.fromOffset(6, 6)
  636. end)
  637. updateevent.Event:Connect(function(theme)
  638. sector.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  639. end)
  640.  
  641. local size = textservice:GetTextSize(sector.name, 15, window.theme.font, Vector2.new(2000, 2000))
  642. sector.Label = Instance.new("TextLabel", sector.Main)
  643. sector.Label.AnchorPoint = Vector2.new(0,0.5)
  644. sector.Label.Position = UDim2.fromOffset(12, -1)
  645. sector.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(sector.name, 15, window.theme.font, Vector2.new(200,300)).X + 13, 0, sector.Main.Size.X.Offset), size.Y)
  646. sector.Label.BackgroundTransparency = 1
  647. sector.Label.BorderSizePixel = 0
  648. sector.Label.ZIndex = 6
  649. sector.Label.Text = sector.name
  650. sector.Label.TextColor3 = Color3.new(1,1,2552/255)
  651. sector.Label.TextStrokeTransparency = 1
  652. sector.Label.Font = window.theme.font
  653. sector.Label.TextSize = 15
  654. updateevent.Event:Connect(function(theme)
  655. local size = textservice:GetTextSize(sector.name, 15, theme.font, Vector2.new(2000, 2000))
  656. sector.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(sector.name, 15, theme.font, Vector2.new(200,300)).X + 13, 0, sector.Main.Size.X.Offset), size.Y)
  657. sector.Label.Font = theme.font
  658. end)
  659.  
  660. sector.LabelBackFrame = Instance.new("Frame", sector.Main)
  661. sector.LabelBackFrame.Name = "labelframe"
  662. sector.LabelBackFrame.ZIndex = 5
  663. sector.LabelBackFrame.Size = UDim2.fromOffset(sector.Label.Size.X.Offset, 10)
  664. sector.LabelBackFrame.BorderSizePixel = 0
  665. sector.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  666. sector.LabelBackFrame.Position = UDim2.fromOffset(sector.Label.Position.X.Offset, sector.BlackOutline2.Position.Y.Offset)
  667.  
  668. sector.Items = Instance.new("Frame", sector.Main)
  669. sector.Items.Name = "items"
  670. sector.Items.ZIndex = 2
  671. sector.Items.BackgroundTransparency = 1
  672. sector.Items.Size = UDim2.fromOffset(170, 140)
  673. sector.Items.AutomaticSize = Enum.AutomaticSize.Y
  674. sector.Items.BorderSizePixel = 0
  675.  
  676. sector.ListLayout = Instance.new("UIListLayout", sector.Items)
  677. sector.ListLayout.FillDirection = Enum.FillDirection.Vertical
  678. sector.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  679. sector.ListLayout.Padding = UDim.new(0, 12)
  680.  
  681. sector.ListPadding = Instance.new("UIPadding", sector.Items)
  682. sector.ListPadding.PaddingTop = UDim.new(0, 15)
  683. sector.ListPadding.PaddingLeft = UDim.new(0, 6)
  684. sector.ListPadding.PaddingRight = UDim.new(0, 6)
  685.  
  686. table.insert(sector.side:lower() == "left" and tab.SectorsLeft or tab.SectorsRight, sector)
  687.  
  688. function sector:FixSize()
  689. sector.Main.Size = UDim2.fromOffset(window.size.X.Offset / 2 - 17, sector.ListLayout.AbsoluteContentSize.Y + 22)
  690. local sizeleft, sizeright = 0, 0
  691. for i,v in pairs(tab.SectorsLeft) do
  692. sizeleft = sizeleft + v.Main.AbsoluteSize.Y
  693. end
  694. for i,v in pairs(tab.SectorsRight) do
  695. sizeright = sizeright + v.Main.AbsoluteSize.Y
  696. end
  697.  
  698. tab.Left.CanvasSize = UDim2.fromOffset(tab.Left.AbsoluteSize.X, sizeleft + ((#tab.SectorsLeft - 1) * tab.LeftListPadding.PaddingTop.Offset) + 20)
  699. tab.Right.CanvasSize = UDim2.fromOffset(tab.Right.AbsoluteSize.X, sizeright + ((#tab.SectorsRight - 1) * tab.RightListPadding.PaddingTop.Offset) + 20)
  700. end
  701.  
  702. function sector:AddButton(text, callback)
  703. local button = { }
  704. button.text = text or ""
  705. button.callback = callback or function() end
  706.  
  707. button.Main = Instance.new("TextButton", sector.Items)
  708. button.Main.BorderSizePixel = 0
  709. button.Main.Text = ""
  710. button.Main.AutoButtonColor = false
  711. button.Main.Name = "button"
  712. button.Main.ZIndex = 5
  713. button.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14)
  714. button.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  715.  
  716. button.Gradient = Instance.new("UIGradient", button.Main)
  717. button.Gradient.Rotation = 90
  718. button.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.buttoncolor), ColorSequenceKeypoint.new(1.00, window.theme.buttoncolor2) })
  719. updateevent.Event:Connect(function(theme)
  720. button.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.buttoncolor), ColorSequenceKeypoint.new(1.00, theme.buttoncolor2) })
  721. end)
  722.  
  723. button.BlackOutline2 = Instance.new("Frame", button.Main)
  724. button.BlackOutline2.Name = "blackline"
  725. button.BlackOutline2.ZIndex = 4
  726. button.BlackOutline2.Size = button.Main.Size + UDim2.fromOffset(6, 6)
  727. button.BlackOutline2.BorderSizePixel = 0
  728. button.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  729. button.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  730. updateevent.Event:Connect(function(theme)
  731. button.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  732. end)
  733.  
  734. button.Outline = Instance.new("Frame", button.Main)
  735. button.Outline.Name = "blackline"
  736. button.Outline.ZIndex = 4
  737. button.Outline.Size = button.Main.Size + UDim2.fromOffset(4, 4)
  738. button.Outline.BorderSizePixel = 0
  739. button.Outline.BackgroundColor3 = window.theme.outlinecolor
  740. button.Outline.Position = UDim2.fromOffset(-2, -2)
  741. updateevent.Event:Connect(function(theme)
  742. button.Outline.BackgroundColor3 = theme.outlinecolor
  743. end)
  744.  
  745. button.BlackOutline = Instance.new("Frame", button.Main)
  746. button.BlackOutline.Name = "blackline"
  747. button.BlackOutline.ZIndex = 4
  748. button.BlackOutline.Size = button.Main.Size + UDim2.fromOffset(2, 2)
  749. button.BlackOutline.BorderSizePixel = 0
  750. button.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  751. button.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  752. updateevent.Event:Connect(function(theme)
  753. button.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  754. end)
  755.  
  756. button.Label = Instance.new("TextLabel", button.Main)
  757. button.Label.Name = "Label"
  758. button.Label.BackgroundTransparency = 1
  759. button.Label.Position = UDim2.new(0, -1, 0, 0)
  760. button.Label.ZIndex = 5
  761. button.Label.Size = button.Main.Size
  762. button.Label.Font = window.theme.font
  763. button.Label.Text = button.text
  764. button.Label.TextColor3 = window.theme.itemscolor2
  765. button.Label.TextSize = 15
  766. button.Label.TextStrokeTransparency = 1
  767. button.Label.TextXAlignment = Enum.TextXAlignment.Center
  768. button.Main.MouseButton1Down:Connect(button.callback)
  769. updateevent.Event:Connect(function(theme)
  770. button.Label.Font = theme.font
  771. button.Label.TextColor3 = theme.itemscolor
  772. end)
  773.  
  774. button.BlackOutline2.MouseEnter:Connect(function()
  775. button.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  776. end)
  777.  
  778. button.BlackOutline2.MouseLeave:Connect(function()
  779. button.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  780. end)
  781.  
  782. sector:FixSize()
  783. return button
  784. end
  785.  
  786. function sector:AddLabel(text)
  787. local label = { }
  788.  
  789. label.Main = Instance.new("TextLabel", sector.Items)
  790. label.Main.Name = "Label"
  791. label.Main.BackgroundTransparency = 1
  792. label.Main.Position = UDim2.new(0, -1, 0, 0)
  793. label.Main.ZIndex = 4
  794. label.Main.AutomaticSize = Enum.AutomaticSize.XY
  795. label.Main.Font = window.theme.font
  796. label.Main.Text = text
  797. label.Main.TextColor3 = window.theme.itemscolor
  798. label.Main.TextSize = 15
  799. label.Main.TextStrokeTransparency = 1
  800. label.Main.TextXAlignment = Enum.TextXAlignment.Left
  801. updateevent.Event:Connect(function(theme)
  802. label.Main.Font = theme.font
  803. label.Main.TextColor3 = theme.itemscolor
  804. end)
  805.  
  806. function label:Set(value)
  807. label.Main.Text = value
  808. end
  809.  
  810. sector:FixSize()
  811. return label
  812. end
  813.  
  814. function sector:AddToggle(text, default, callback, flag)
  815. local toggle = { }
  816. toggle.text = text or ""
  817. toggle.default = default or false
  818. toggle.callback = callback or function(value) end
  819. toggle.flag = flag or text or ""
  820.  
  821. toggle.value = toggle.default
  822.  
  823. toggle.Main = Instance.new("TextButton", sector.Items)
  824. toggle.Main.Name = "toggle"
  825. toggle.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  826. toggle.Main.BorderColor3 = window.theme.outlinecolor
  827. toggle.Main.BorderSizePixel = 0
  828. toggle.Main.Size = UDim2.fromOffset(8, 8)
  829. toggle.Main.AutoButtonColor = false
  830. toggle.Main.ZIndex = 5
  831. toggle.Main.Font = Enum.Font.SourceSans
  832. toggle.Main.Text = ""
  833. toggle.Main.TextColor3 = Color3.fromRGB(0, 0, 0)
  834. toggle.Main.TextSize = 15
  835. updateevent.Event:Connect(function(theme)
  836. toggle.Main.BorderColor3 = theme.outlinecolor
  837. end)
  838.  
  839. toggle.BlackOutline2 = Instance.new("Frame", toggle.Main)
  840. toggle.BlackOutline2.Name = "blackline"
  841. toggle.BlackOutline2.ZIndex = 4
  842. toggle.BlackOutline2.Size = toggle.Main.Size + UDim2.fromOffset(6, 6)
  843. toggle.BlackOutline2.BorderSizePixel = 0
  844. toggle.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  845. toggle.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  846. updateevent.Event:Connect(function(theme)
  847. toggle.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  848. end)
  849.  
  850. toggle.Outline = Instance.new("Frame", toggle.Main)
  851. toggle.Outline.Name = "blackline"
  852. toggle.Outline.ZIndex = 4
  853. toggle.Outline.Size = toggle.Main.Size + UDim2.fromOffset(4, 4)
  854. toggle.Outline.BorderSizePixel = 0
  855. toggle.Outline.BackgroundColor3 = window.theme.outlinecolor
  856. toggle.Outline.Position = UDim2.fromOffset(-2, -2)
  857. updateevent.Event:Connect(function(theme)
  858. toggle.Outline.BackgroundColor3 = theme.outlinecolor
  859. end)
  860.  
  861. toggle.BlackOutline = Instance.new("Frame", toggle.Main)
  862. toggle.BlackOutline.Name = "blackline"
  863. toggle.BlackOutline.ZIndex = 4
  864. toggle.BlackOutline.Size = toggle.Main.Size + UDim2.fromOffset(2, 2)
  865. toggle.BlackOutline.BorderSizePixel = 0
  866. toggle.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  867. toggle.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  868. updateevent.Event:Connect(function(theme)
  869. toggle.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  870. end)
  871.  
  872. toggle.Gradient = Instance.new("UIGradient", toggle.Main)
  873. toggle.Gradient.Rotation = (22.5 * 13)
  874. toggle.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 30, 30)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(45, 45, 45)) })
  875.  
  876. toggle.Label = Instance.new("TextButton", toggle.Main)
  877. toggle.Label.Name = "Label"
  878. toggle.Label.AutoButtonColor = false
  879. toggle.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  880. toggle.Label.BackgroundTransparency = 1
  881. toggle.Label.Position = UDim2.fromOffset(toggle.Main.AbsoluteSize.X + 10, -2)
  882. toggle.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 71, toggle.BlackOutline.Size.Y.Offset)
  883. toggle.Label.Font = window.theme.font
  884. toggle.Label.ZIndex = 5
  885. toggle.Label.Text = toggle.text
  886. toggle.Label.TextColor3 = window.theme.itemscolor
  887. toggle.Label.TextSize = 15
  888. toggle.Label.TextStrokeTransparency = 1
  889. toggle.Label.TextXAlignment = Enum.TextXAlignment.Left
  890. updateevent.Event:Connect(function(theme)
  891. toggle.Label.Font = theme.font
  892. toggle.Label.TextColor3 = toggle.value and window.theme.itemscolor2 or theme.itemscolor
  893. end)
  894.  
  895. toggle.CheckedFrame = Instance.new("Frame", toggle.Main)
  896. toggle.CheckedFrame.ZIndex = 5
  897. toggle.CheckedFrame.BorderSizePixel = 0
  898. toggle.CheckedFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- Color3.fromRGB(204, 0, 102)
  899. toggle.CheckedFrame.Size = toggle.Main.Size
  900.  
  901. toggle.Gradient2 = Instance.new("UIGradient", toggle.CheckedFrame)
  902. toggle.Gradient2.Rotation = (22.5 * 13)
  903. toggle.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor2), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor) })
  904. updateevent.Event:Connect(function(theme)
  905. toggle.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor2), ColorSequenceKeypoint.new(1.00, theme.accentcolor) })
  906. end)
  907.  
  908. toggle.Items = Instance.new("Frame", toggle.Main)
  909. toggle.Items.Name = "\n"
  910. toggle.Items.ZIndex = 4
  911. toggle.Items.Size = UDim2.fromOffset(60, toggle.BlackOutline.AbsoluteSize.Y)
  912. toggle.Items.BorderSizePixel = 0
  913. toggle.Items.BackgroundTransparency = 1
  914. toggle.Items.BackgroundColor3 = Color3.new(0, 0, 0)
  915. toggle.Items.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 71, 0)
  916.  
  917. toggle.ListLayout = Instance.new("UIListLayout", toggle.Items)
  918. toggle.ListLayout.FillDirection = Enum.FillDirection.Horizontal
  919. toggle.ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
  920. toggle.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  921. toggle.ListLayout.Padding = UDim.new(0.04, 6)
  922.  
  923. if toggle.flag and toggle.flag ~= "" then
  924. library.flags[toggle.flag] = toggle.default or false
  925. end
  926.  
  927. function toggle:Set(value)
  928. if value then
  929. toggle.Label.TextColor3 = window.theme.itemscolor2
  930. else
  931. toggle.Label.TextColor3 = window.theme.itemscolor
  932. end
  933.  
  934. toggle.value = value
  935. toggle.CheckedFrame.Visible = value
  936. if toggle.flag and toggle.flag ~= "" then
  937. library.flags[toggle.flag] = toggle.value
  938. end
  939. pcall(toggle.callback, value)
  940. end
  941. function toggle:Get()
  942. return toggle.value
  943. end
  944. toggle:Set(toggle.default)
  945.  
  946. function toggle:AddKeybind(default, flag)
  947. local keybind = { }
  948.  
  949. keybind.default = default or "None"
  950. keybind.value = keybind.default
  951. keybind.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren()))
  952.  
  953. local shorter_keycodes = {
  954. ["LeftShift"] = "LSHIFT",
  955. ["RightShift"] = "RSHIFT",
  956. ["LeftControl"] = "LCTRL",
  957. ["RightControl"] = "RCTRL",
  958. ["LeftAlt"] = "LALT",
  959. ["RightAlt"] = "RALT"
  960. }
  961.  
  962. local text = keybind.default == "None" and "[None]" or "[" .. (shorter_keycodes[keybind.default.Name] or keybind.default.Name) .. "]"
  963. local size = textservice:GetTextSize(text, 15, window.theme.font, Vector2.new(2000, 2000))
  964.  
  965. keybind.Main = Instance.new("TextButton", toggle.Items)
  966. keybind.Main.Name = "keybind"
  967. keybind.Main.BackgroundTransparency = 1
  968. keybind.Main.BorderSizePixel = 0
  969. keybind.Main.ZIndex = 5
  970. keybind.Main.Size = UDim2.fromOffset(size.X + 2, size.Y - 7)
  971. keybind.Main.Text = text
  972. keybind.Main.Font = window.theme.font
  973. keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136)
  974. keybind.Main.TextSize = 15
  975. keybind.Main.TextXAlignment = Enum.TextXAlignment.Right
  976. keybind.Main.MouseButton1Down:Connect(function()
  977. keybind.Main.Text = "[...]"
  978. keybind.Main.TextColor3 = window.theme.accentcolor
  979. end)
  980. updateevent.Event:Connect(function(theme)
  981. keybind.Main.Font = theme.font
  982. if keybind.Main.Text == "[...]" then
  983. keybind.Main.TextColor3 = theme.accentcolor
  984. else
  985. keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136)
  986. end
  987. end)
  988.  
  989. if keybind.flag and keybind.flag ~= "" then
  990. library.flags[keybind.flag] = keybind.default
  991. end
  992. function keybind:Set(key)
  993. if key == "None" then
  994. keybind.Main.Text = "[" .. key .. "]"
  995. keybind.value = key
  996. if keybind.flag and keybind.flag ~= "" then
  997. library.flags[keybind.flag] = key
  998. end
  999. end
  1000. keybind.Main.Text = "[" .. (shorter_keycodes[key.Name] or key.Name) .. "]"
  1001. keybind.value = key
  1002. if keybind.flag and keybind.flag ~= "" then
  1003. library.flags[keybind.flag] = keybind.value
  1004. end
  1005. end
  1006.  
  1007. function keybind:Get()
  1008. return keybind.value
  1009. end
  1010.  
  1011. uis.InputBegan:Connect(function(input, gameProcessed)
  1012. if not gameProcessed then
  1013. if keybind.Main.Text == "[...]" then
  1014. keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136)
  1015. if input.UserInputType == Enum.UserInputType.Keyboard then
  1016. keybind:Set(input.KeyCode)
  1017. else
  1018. keybind:Set("None")
  1019. end
  1020. else
  1021. if keybind.value ~= "None" and input.KeyCode == keybind.value then
  1022. toggle:Set(not toggle.CheckedFrame.Visible)
  1023. end
  1024. end
  1025. end
  1026. end)
  1027.  
  1028. table.insert(library.items, keybind)
  1029. return keybind
  1030. end
  1031.  
  1032. function toggle:AddDropdown(items, default, multichoice, callback, flag)
  1033. local dropdown = { }
  1034.  
  1035. dropdown.defaultitems = items or { }
  1036. dropdown.default = default
  1037. dropdown.callback = callback or function() end
  1038. dropdown.multichoice = multichoice or false
  1039. dropdown.values = { }
  1040. dropdown.flag = flag or ( (toggle.text or "") .. tostring(#(sector.Items:GetChildren())) .. "a")
  1041.  
  1042. dropdown.Main = Instance.new("TextButton", sector.Items)
  1043. dropdown.Main.Name = "dropdown"
  1044. dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1045. dropdown.Main.BorderSizePixel = 0
  1046. dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16)
  1047. dropdown.Main.Position = UDim2.fromOffset(0, 0)
  1048. dropdown.Main.ZIndex = 5
  1049. dropdown.Main.AutoButtonColor = false
  1050. dropdown.Main.Font = window.theme.font
  1051. dropdown.Main.Text = ""
  1052. dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  1053. dropdown.Main.TextSize = 15
  1054. dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left
  1055. updateevent.Event:Connect(function(theme)
  1056. dropdown.Main.Font = theme.font
  1057. end)
  1058.  
  1059. dropdown.Gradient = Instance.new("UIGradient", dropdown.Main)
  1060. dropdown.Gradient.Rotation = 90
  1061. dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))}
  1062.  
  1063. dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main)
  1064. dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1065. dropdown.SelectedLabel.BackgroundTransparency = 1
  1066. dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2)
  1067. dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13)
  1068. dropdown.SelectedLabel.Font = window.theme.font
  1069. dropdown.SelectedLabel.Text = toggle.text
  1070. dropdown.SelectedLabel.ZIndex = 5
  1071. dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1072. dropdown.SelectedLabel.TextSize = 15
  1073. dropdown.SelectedLabel.TextStrokeTransparency = 1
  1074. dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left
  1075. updateevent.Event:Connect(function(theme)
  1076. dropdown.SelectedLabel.Font = theme.font
  1077. end)
  1078.  
  1079. dropdown.Nav = Instance.new("ImageButton", dropdown.Main)
  1080. dropdown.Nav.Name = "navigation"
  1081. dropdown.Nav.BackgroundTransparency = 1
  1082. dropdown.Nav.LayoutOrder = 10
  1083. dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5)
  1084. dropdown.Nav.Rotation = 90
  1085. dropdown.Nav.ZIndex = 5
  1086. dropdown.Nav.Size = UDim2.fromOffset(8, 8)
  1087. dropdown.Nav.Image = "rbxassetid://4918373417"
  1088. dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210)
  1089.  
  1090. dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main)
  1091. dropdown.BlackOutline2.Name = "blackline"
  1092. dropdown.BlackOutline2.ZIndex = 4
  1093. dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6)
  1094. dropdown.BlackOutline2.BorderSizePixel = 0
  1095. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1096. dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  1097. updateevent.Event:Connect(function(theme)
  1098. dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  1099. end)
  1100.  
  1101. dropdown.Outline = Instance.new("Frame", dropdown.Main)
  1102. dropdown.Outline.Name = "blackline"
  1103. dropdown.Outline.ZIndex = 4
  1104. dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4)
  1105. dropdown.Outline.BorderSizePixel = 0
  1106. dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor
  1107. dropdown.Outline.Position = UDim2.fromOffset(-2, -2)
  1108. updateevent.Event:Connect(function(theme)
  1109. dropdown.Outline.BackgroundColor3 = theme.outlinecolor
  1110. end)
  1111.  
  1112. dropdown.BlackOutline = Instance.new("Frame", dropdown.Main)
  1113. dropdown.BlackOutline.Name = "blackline444"
  1114. dropdown.BlackOutline.ZIndex = 4
  1115. dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2)
  1116. dropdown.BlackOutline.BorderSizePixel = 0
  1117. dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  1118. dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  1119. updateevent.Event:Connect(function(theme)
  1120. dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  1121. end)
  1122.  
  1123. dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main)
  1124. dropdown.ItemsFrame.Name = "itemsframe"
  1125. dropdown.ItemsFrame.BorderSizePixel = 0
  1126. dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1127. dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  1128. dropdown.ItemsFrame.ScrollBarThickness = 2
  1129. dropdown.ItemsFrame.ZIndex = 8
  1130. dropdown.ItemsFrame.ScrollingDirection = "Y"
  1131. dropdown.ItemsFrame.Visible = false
  1132. dropdown.ItemsFrame.Size = UDim2.new(0, 0, 0, 0)
  1133. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0)
  1134.  
  1135. dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame)
  1136. dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical
  1137. dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1138.  
  1139. dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame)
  1140. dropdown.ListPadding.PaddingTop = UDim.new(0, 2)
  1141. dropdown.ListPadding.PaddingBottom = UDim.new(0, 2)
  1142. dropdown.ListPadding.PaddingLeft = UDim.new(0, 2)
  1143. dropdown.ListPadding.PaddingRight = UDim.new(0, 2)
  1144.  
  1145. dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main)
  1146. dropdown.BlackOutline2Items.Name = "blackline3"
  1147. dropdown.BlackOutline2Items.ZIndex = 7
  1148. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  1149. dropdown.BlackOutline2Items.BorderSizePixel = 0
  1150. dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2
  1151. dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3)
  1152. dropdown.BlackOutline2Items.Visible = false
  1153. updateevent.Event:Connect(function(theme)
  1154. dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2
  1155. end)
  1156.  
  1157. dropdown.OutlineItems = Instance.new("Frame", dropdown.Main)
  1158. dropdown.OutlineItems.Name = "blackline8"
  1159. dropdown.OutlineItems.ZIndex = 7
  1160. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  1161. dropdown.OutlineItems.BorderSizePixel = 0
  1162. dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor
  1163. dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2)
  1164. dropdown.OutlineItems.Visible = false
  1165. updateevent.Event:Connect(function(theme)
  1166. dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor
  1167. end)
  1168.  
  1169. dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main)
  1170. dropdown.BlackOutlineItems.Name = "blackline3"
  1171. dropdown.BlackOutlineItems.ZIndex = 7
  1172. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2)
  1173. dropdown.BlackOutlineItems.BorderSizePixel = 0
  1174. dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2
  1175. dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1)
  1176. dropdown.BlackOutlineItems.Visible = false
  1177. updateevent.Event:Connect(function(theme)
  1178. dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2
  1179. end)
  1180.  
  1181. dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main)
  1182. dropdown.IgnoreBackButtons.BackgroundTransparency = 1
  1183. dropdown.IgnoreBackButtons.BorderSizePixel = 0
  1184. dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  1185. dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0)
  1186. dropdown.IgnoreBackButtons.ZIndex = 7
  1187. dropdown.IgnoreBackButtons.Text = ""
  1188. dropdown.IgnoreBackButtons.Visible = false
  1189. dropdown.IgnoreBackButtons.AutoButtonColor = false
  1190.  
  1191. if dropdown.flag and dropdown.flag ~= "" then
  1192. library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "")
  1193. end
  1194.  
  1195. function dropdown:isSelected(item)
  1196. for i, v in pairs(dropdown.values) do
  1197. if v == item then
  1198. return true
  1199. end
  1200. end
  1201. return false
  1202. end
  1203.  
  1204. function dropdown:updateText(text)
  1205. if #text >= 27 then
  1206. text = text:sub(1, 25) .. ".."
  1207. end
  1208. dropdown.SelectedLabel.Text = text
  1209. end
  1210.  
  1211. dropdown.Changed = Instance.new("BindableEvent")
  1212. function dropdown:Set(value)
  1213. if type(value) == "table" then
  1214. dropdown.values = value
  1215. dropdown:updateText(table.concat(value, ", "))
  1216. pcall(dropdown.callback, value)
  1217. else
  1218. dropdown:updateText(value)
  1219. dropdown.values = { value }
  1220. pcall(dropdown.callback, value)
  1221. end
  1222.  
  1223. dropdown.Changed:Fire(value)
  1224. if dropdown.flag and dropdown.flag ~= "" then
  1225. library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1]
  1226. end
  1227. end
  1228.  
  1229. function dropdown:Get()
  1230. return dropdown.multichoice and dropdown.values or dropdown.values[1]
  1231. end
  1232.  
  1233. dropdown.items = { }
  1234. function dropdown:Add(v)
  1235. local Item = Instance.new("TextButton", dropdown.ItemsFrame)
  1236. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1237. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1238. Item.BorderSizePixel = 0
  1239. Item.Position = UDim2.fromOffset(0, 0)
  1240. Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20)
  1241. Item.ZIndex = 9
  1242. Item.Text = v
  1243. Item.Name = v
  1244. Item.AutoButtonColor = false
  1245. Item.Font = window.theme.font
  1246. Item.TextSize = 15
  1247. Item.TextXAlignment = Enum.TextXAlignment.Left
  1248. Item.TextStrokeTransparency = 1
  1249. dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y)
  1250.  
  1251. Item.MouseButton1Down:Connect(function()
  1252. if dropdown.multichoice then
  1253. if dropdown:isSelected(v) then
  1254. for i2, v2 in pairs(dropdown.values) do
  1255. if v2 == v then
  1256. table.remove(dropdown.values, i2)
  1257. end
  1258. end
  1259. dropdown:Set(dropdown.values)
  1260. else
  1261. table.insert(dropdown.values, v)
  1262. dropdown:Set(dropdown.values)
  1263. end
  1264.  
  1265. return
  1266. else
  1267. dropdown.Nav.Rotation = 90
  1268. dropdown.ItemsFrame.Visible = false
  1269. dropdown.ItemsFrame.Active = false
  1270. dropdown.OutlineItems.Visible = false
  1271. dropdown.BlackOutlineItems.Visible = false
  1272. dropdown.BlackOutline2Items.Visible = false
  1273. dropdown.IgnoreBackButtons.Visible = false
  1274. dropdown.IgnoreBackButtons.Active = false
  1275. end
  1276.  
  1277. dropdown:Set(v)
  1278. return
  1279. end)
  1280.  
  1281. runservice.RenderStepped:Connect(function()
  1282. if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then
  1283. Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64)
  1284. Item.TextColor3 = window.theme.accentcolor
  1285. Item.Text = " " .. v
  1286. else
  1287. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1288. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1289. Item.Text = v
  1290. end
  1291. end)
  1292.  
  1293. table.insert(dropdown.items, v)
  1294. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4)
  1295. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4)
  1296.  
  1297. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  1298. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  1299. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  1300. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  1301. end
  1302.  
  1303. function dropdown:Remove(value)
  1304. local item = dropdown.ItemsFrame:FindFirstChild(value)
  1305. if item then
  1306. for i,v in pairs(dropdown.items) do
  1307. if v == value then
  1308. table.remove(dropdown.items, i)
  1309. end
  1310. end
  1311.  
  1312. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4)
  1313. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4)
  1314.  
  1315. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  1316. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  1317. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  1318. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  1319.  
  1320. item:Remove()
  1321. end
  1322. end
  1323.  
  1324. for i,v in pairs(dropdown.defaultitems) do
  1325. dropdown:Add(v)
  1326. end
  1327.  
  1328. if dropdown.default then
  1329. dropdown:Set(dropdown.default)
  1330. end
  1331.  
  1332. local MouseButton1Down = function()
  1333. if dropdown.Nav.Rotation == 90 then
  1334. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play()
  1335. if dropdown.items and #dropdown.items ~= 0 then
  1336. dropdown.ItemsFrame.ScrollingEnabled = true
  1337. sector.Main.Parent.ScrollingEnabled = false
  1338. dropdown.ItemsFrame.Visible = true
  1339. dropdown.ItemsFrame.Active = true
  1340. dropdown.IgnoreBackButtons.Visible = true
  1341. dropdown.IgnoreBackButtons.Active = true
  1342. dropdown.OutlineItems.Visible = true
  1343. dropdown.BlackOutlineItems.Visible = true
  1344. dropdown.BlackOutline2Items.Visible = true
  1345. end
  1346. else
  1347. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play()
  1348. dropdown.ItemsFrame.ScrollingEnabled = false
  1349. sector.Main.Parent.ScrollingEnabled = true
  1350. dropdown.ItemsFrame.Visible = false
  1351. dropdown.ItemsFrame.Active = false
  1352. dropdown.IgnoreBackButtons.Visible = false
  1353. dropdown.IgnoreBackButtons.Active = false
  1354. dropdown.OutlineItems.Visible = false
  1355. dropdown.BlackOutlineItems.Visible = false
  1356. dropdown.BlackOutline2Items.Visible = false
  1357. end
  1358. end
  1359.  
  1360. dropdown.Main.MouseButton1Down:Connect(MouseButton1Down)
  1361. dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down)
  1362.  
  1363. dropdown.BlackOutline2.MouseEnter:Connect(function()
  1364. dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1365. end)
  1366. dropdown.BlackOutline2.MouseLeave:Connect(function()
  1367. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1368. end)
  1369.  
  1370. sector:FixSize()
  1371. table.insert(library.items, dropdown)
  1372. return dropdown
  1373. end
  1374.  
  1375. function toggle:AddTextbox(default, callback, flag)
  1376. local textbox = { }
  1377. textbox.callback = callback or function() end
  1378. textbox.default = default
  1379. textbox.value = ""
  1380. textbox.flag = flag or ( (toggle.text or "") .. tostring(#(sector.Items:GetChildren())) .. "a")
  1381.  
  1382. textbox.Holder = Instance.new("Frame", sector.Items)
  1383. textbox.Holder.Name = "holder"
  1384. textbox.Holder.ZIndex = 5
  1385. textbox.Holder.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14)
  1386. textbox.Holder.BorderSizePixel = 0
  1387. textbox.Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1388.  
  1389. textbox.Gradient = Instance.new("UIGradient", textbox.Holder)
  1390. textbox.Gradient.Rotation = 90
  1391. textbox.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39)) })
  1392.  
  1393. textbox.Main = Instance.new("TextBox", textbox.Holder)
  1394. textbox.Main.PlaceholderText = ""
  1395. textbox.Main.Text = ""
  1396. textbox.Main.BackgroundTransparency = 1
  1397. textbox.Main.Font = window.theme.font
  1398. textbox.Main.Name = "textbox"
  1399. textbox.Main.MultiLine = false
  1400. textbox.Main.ClearTextOnFocus = false
  1401. textbox.Main.ZIndex = 5
  1402. textbox.Main.TextScaled = true
  1403. textbox.Main.Size = textbox.Holder.Size
  1404. textbox.Main.TextSize = 15
  1405. textbox.Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  1406. textbox.Main.BorderSizePixel = 0
  1407. textbox.Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  1408. textbox.Main.TextXAlignment = Enum.TextXAlignment.Left
  1409.  
  1410. if textbox.flag and textbox.flag ~= "" then
  1411. library.flags[textbox.flag] = textbox.default or ""
  1412. end
  1413.  
  1414. function textbox:Set(text)
  1415. textbox.value = text
  1416. textbox.Main.Text = text
  1417. if textbox.flag and textbox.flag ~= "" then
  1418. library.flags[textbox.flag] = text
  1419. end
  1420. pcall(textbox.callback, text)
  1421. end
  1422. updateevent.Event:Connect(function(theme)
  1423. textbox.Main.Font = theme.font
  1424. end)
  1425.  
  1426. function textbox:Get()
  1427. return textbox.value
  1428. end
  1429.  
  1430. if textbox.default then
  1431. textbox:Set(textbox.default)
  1432. end
  1433.  
  1434. textbox.Main.FocusLost:Connect(function()
  1435. textbox:Set(textbox.Main.Text)
  1436. end)
  1437.  
  1438. textbox.BlackOutline2 = Instance.new("Frame", textbox.Main)
  1439. textbox.BlackOutline2.Name = "blackline"
  1440. textbox.BlackOutline2.ZIndex = 4
  1441. textbox.BlackOutline2.Size = textbox.Main.Size + UDim2.fromOffset(6, 6)
  1442. textbox.BlackOutline2.BorderSizePixel = 0
  1443. textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1444. textbox.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  1445. updateevent.Event:Connect(function(theme)
  1446. textbox.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  1447. end)
  1448.  
  1449. textbox.Outline = Instance.new("Frame", textbox.Main)
  1450. textbox.Outline.Name = "blackline"
  1451. textbox.Outline.ZIndex = 4
  1452. textbox.Outline.Size = textbox.Main.Size + UDim2.fromOffset(4, 4)
  1453. textbox.Outline.BorderSizePixel = 0
  1454. textbox.Outline.BackgroundColor3 = window.theme.outlinecolor
  1455. textbox.Outline.Position = UDim2.fromOffset(-2, -2)
  1456. updateevent.Event:Connect(function(theme)
  1457. textbox.Outline.BackgroundColor3 = theme.outlinecolor
  1458. end)
  1459.  
  1460. textbox.BlackOutline = Instance.new("Frame", textbox.Main)
  1461. textbox.BlackOutline.Name = "blackline"
  1462. textbox.BlackOutline.ZIndex = 4
  1463. textbox.BlackOutline.Size = textbox.Main.Size + UDim2.fromOffset(2, 2)
  1464. textbox.BlackOutline.BorderSizePixel = 0
  1465. textbox.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  1466. textbox.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  1467. updateevent.Event:Connect(function(theme)
  1468. textbox.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  1469. end)
  1470.  
  1471. textbox.BlackOutline2.MouseEnter:Connect(function()
  1472. textbox.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1473. end)
  1474. textbox.BlackOutline2.MouseLeave:Connect(function()
  1475. textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1476. end)
  1477.  
  1478. sector:FixSize()
  1479. table.insert(library.items, textbox)
  1480. return textbox
  1481. end
  1482.  
  1483. function toggle:AddColorpicker(default, callback, flag)
  1484. local colorpicker = { }
  1485.  
  1486. colorpicker.callback = callback or function() end
  1487. colorpicker.default = default or Color3.fromRGB(255, 255, 255)
  1488. colorpicker.value = colorpicker.default
  1489. colorpicker.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren()))
  1490.  
  1491. colorpicker.Main = Instance.new("Frame", toggle.Items)
  1492. colorpicker.Main.ZIndex = 6
  1493. colorpicker.Main.BorderSizePixel = 0
  1494. colorpicker.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1495. colorpicker.Main.Size = UDim2.fromOffset(16, 10)
  1496.  
  1497. colorpicker.Gradient = Instance.new("UIGradient", colorpicker.Main)
  1498. colorpicker.Gradient.Rotation = 90
  1499.  
  1500. local clr = Color3.new(math.clamp(colorpicker.value.R / 1.7, 0, 1), math.clamp(colorpicker.value.G / 1.7, 0, 1), math.clamp(colorpicker.value.B / 1.7, 0, 1))
  1501. colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, colorpicker.value), ColorSequenceKeypoint.new(1.00, clr) })
  1502.  
  1503. colorpicker.BlackOutline2 = Instance.new("Frame", colorpicker.Main)
  1504. colorpicker.BlackOutline2.Name = "blackline"
  1505. colorpicker.BlackOutline2.ZIndex = 4
  1506. colorpicker.BlackOutline2.Size = colorpicker.Main.Size + UDim2.fromOffset(6, 6)
  1507. colorpicker.BlackOutline2.BorderSizePixel = 0
  1508. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1509. colorpicker.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  1510. updateevent.Event:Connect(function(theme)
  1511. if window.OpenedColorPickers[colorpicker.MainPicker] then
  1512. colorpicker.BlackOutline2.BackgroundColor3 = theme.accentcolor
  1513. else
  1514. colorpicker.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  1515. end
  1516. end)
  1517.  
  1518. colorpicker.Outline = Instance.new("Frame", colorpicker.Main)
  1519. colorpicker.Outline.Name = "blackline"
  1520. colorpicker.Outline.ZIndex = 4
  1521. colorpicker.Outline.Size = colorpicker.Main.Size + UDim2.fromOffset(4, 4)
  1522. colorpicker.Outline.BorderSizePixel = 0
  1523. colorpicker.Outline.BackgroundColor3 = window.theme.outlinecolor
  1524. colorpicker.Outline.Position = UDim2.fromOffset(-2, -2)
  1525. updateevent.Event:Connect(function(theme)
  1526. colorpicker.Outline.BackgroundColor3 = theme.outlinecolor
  1527. end)
  1528.  
  1529. colorpicker.BlackOutline = Instance.new("Frame", colorpicker.Main)
  1530. colorpicker.BlackOutline.Name = "blackline"
  1531. colorpicker.BlackOutline.ZIndex = 4
  1532. colorpicker.BlackOutline.Size = colorpicker.Main.Size + UDim2.fromOffset(2, 2)
  1533. colorpicker.BlackOutline.BorderSizePixel = 0
  1534. colorpicker.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  1535. colorpicker.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  1536. updateevent.Event:Connect(function(theme)
  1537. colorpicker.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  1538. end)
  1539.  
  1540. colorpicker.BlackOutline2.MouseEnter:Connect(function()
  1541. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1542. end)
  1543.  
  1544. colorpicker.BlackOutline2.MouseLeave:Connect(function()
  1545. if not window.OpenedColorPickers[colorpicker.MainPicker] then
  1546. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1547. end
  1548. end)
  1549.  
  1550. colorpicker.MainPicker = Instance.new("TextButton", colorpicker.Main)
  1551. colorpicker.MainPicker.Name = "picker"
  1552. colorpicker.MainPicker.ZIndex = 100
  1553. colorpicker.MainPicker.Visible = false
  1554. colorpicker.MainPicker.AutoButtonColor = false
  1555. colorpicker.MainPicker.Text = ""
  1556. window.OpenedColorPickers[colorpicker.MainPicker] = false
  1557. colorpicker.MainPicker.Size = UDim2.fromOffset(180, 196)
  1558. colorpicker.MainPicker.BorderSizePixel = 0
  1559. colorpicker.MainPicker.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1560. colorpicker.MainPicker.Rotation = 0.000000000000001
  1561. colorpicker.MainPicker.Position = UDim2.fromOffset(-colorpicker.MainPicker.AbsoluteSize.X + colorpicker.Main.AbsoluteSize.X, 17)
  1562.  
  1563. colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker)
  1564. colorpicker.BlackOutline3.Name = "blackline"
  1565. colorpicker.BlackOutline3.ZIndex = 98
  1566. colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(6, 6)
  1567. colorpicker.BlackOutline3.BorderSizePixel = 0
  1568. colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2
  1569. colorpicker.BlackOutline3.Position = UDim2.fromOffset(-3, -3)
  1570. updateevent.Event:Connect(function(theme)
  1571. colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
  1572. end)
  1573.  
  1574. colorpicker.Outline2 = Instance.new("Frame", colorpicker.MainPicker)
  1575. colorpicker.Outline2.Name = "blackline"
  1576. colorpicker.Outline2.ZIndex = 98
  1577. colorpicker.Outline2.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(4, 4)
  1578. colorpicker.Outline2.BorderSizePixel = 0
  1579. colorpicker.Outline2.BackgroundColor3 = window.theme.outlinecolor
  1580. colorpicker.Outline2.Position = UDim2.fromOffset(-2, -2)
  1581. updateevent.Event:Connect(function(theme)
  1582. colorpicker.Outline2.BackgroundColor3 = theme.outlinecolor
  1583. end)
  1584.  
  1585. colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker)
  1586. colorpicker.BlackOutline3.Name = "blackline"
  1587. colorpicker.BlackOutline3.ZIndex = 98
  1588. colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(2, 2)
  1589. colorpicker.BlackOutline3.BorderSizePixel = 0
  1590. colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2
  1591. colorpicker.BlackOutline3.Position = UDim2.fromOffset(-1, -1)
  1592. updateevent.Event:Connect(function(theme)
  1593. colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
  1594. end)
  1595.  
  1596. colorpicker.hue = Instance.new("ImageLabel", colorpicker.MainPicker)
  1597. colorpicker.hue.ZIndex = 101
  1598. colorpicker.hue.Position = UDim2.new(0,3,0,3)
  1599. colorpicker.hue.Size = UDim2.new(0,172,0,172)
  1600. colorpicker.hue.Image = "rbxassetid://4155801252"
  1601. colorpicker.hue.ScaleType = Enum.ScaleType.Stretch
  1602. colorpicker.hue.BackgroundColor3 = Color3.new(1,0,0)
  1603. colorpicker.hue.BorderColor3 = window.theme.outlinecolor2
  1604. updateevent.Event:Connect(function(theme)
  1605. colorpicker.hue.BorderColor3 = theme.outlinecolor2
  1606. end)
  1607.  
  1608. colorpicker.hueselectorpointer = Instance.new("ImageLabel", colorpicker.MainPicker)
  1609. colorpicker.hueselectorpointer.ZIndex = 101
  1610. colorpicker.hueselectorpointer.BackgroundTransparency = 1
  1611. colorpicker.hueselectorpointer.BorderSizePixel = 0
  1612. colorpicker.hueselectorpointer.Position = UDim2.new(0, 0, 0, 0)
  1613. colorpicker.hueselectorpointer.Size = UDim2.new(0, 7, 0, 7)
  1614. colorpicker.hueselectorpointer.Image = "rbxassetid://6885856475"
  1615.  
  1616. colorpicker.selector = Instance.new("TextLabel", colorpicker.MainPicker)
  1617. colorpicker.selector.ZIndex = 100
  1618. colorpicker.selector.Position = UDim2.new(0,3,0,181)
  1619. colorpicker.selector.Size = UDim2.new(0,173,0,10)
  1620. colorpicker.selector.BackgroundColor3 = Color3.fromRGB(255,255,255)
  1621. colorpicker.selector.BorderColor3 = window.theme.outlinecolor2
  1622. colorpicker.selector.Text = ""
  1623. updateevent.Event:Connect(function(theme)
  1624. colorpicker.selector.BorderColor3 = theme.outlinecolor2
  1625. end)
  1626.  
  1627. colorpicker.gradient = Instance.new("UIGradient", colorpicker.selector)
  1628. colorpicker.gradient.Color = ColorSequence.new({
  1629. ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
  1630. ColorSequenceKeypoint.new(0.17, Color3.new(1,0,1)),
  1631. ColorSequenceKeypoint.new(0.33,Color3.new(0,0,1)),
  1632. ColorSequenceKeypoint.new(0.5,Color3.new(0,1,1)),
  1633. ColorSequenceKeypoint.new(0.67, Color3.new(0,1,0)),
  1634. ColorSequenceKeypoint.new(0.83, Color3.new(1,1,0)),
  1635. ColorSequenceKeypoint.new(1, Color3.new(1,0,0))
  1636. })
  1637.  
  1638. colorpicker.pointer = Instance.new("Frame", colorpicker.selector)
  1639. colorpicker.pointer.ZIndex = 101
  1640. colorpicker.pointer.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1641. colorpicker.pointer.Position = UDim2.new(0,0,0,0)
  1642. colorpicker.pointer.Size = UDim2.new(0,2,0,10)
  1643. colorpicker.pointer.BorderColor3 = Color3.fromRGB(255, 255, 255)
  1644.  
  1645. if colorpicker.flag and colorpicker.flag ~= "" then
  1646. library.flags[colorpicker.flag] = colorpicker.default
  1647. end
  1648.  
  1649. function colorpicker:RefreshHue()
  1650. local x = (mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X
  1651. local y = (mouse.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y
  1652. colorpicker.hueselectorpointer:TweenPosition(UDim2.new(math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 0.952 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 0, math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 0.885 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  1653. colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y)))
  1654. end
  1655.  
  1656. function colorpicker:RefreshSelector()
  1657. local pos = math.clamp((mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X, 0, 1)
  1658. colorpicker.color = 1 - pos
  1659. colorpicker.pointer:TweenPosition(UDim2.new(pos, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  1660. colorpicker.hue.BackgroundColor3 = Color3.fromHSV(1 - pos, 1, 1)
  1661.  
  1662. local x = (colorpicker.hueselectorpointer.AbsolutePosition.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X
  1663. local y = (colorpicker.hueselectorpointer.AbsolutePosition.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y
  1664. colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y)))
  1665. end
  1666.  
  1667. function colorpicker:Set(value)
  1668. local color = Color3.new(math.clamp(value.r, 0, 1), math.clamp(value.g, 0, 1), math.clamp(value.b, 0, 1))
  1669. colorpicker.value = color
  1670. if colorpicker.flag and colorpicker.flag ~= "" then
  1671. library.flags[colorpicker.flag] = color
  1672. end
  1673. local clr = Color3.new(math.clamp(color.R / 1.7, 0, 1), math.clamp(color.G / 1.7, 0, 1), math.clamp(color.B / 1.7, 0, 1))
  1674. colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, color), ColorSequenceKeypoint.new(1.00, clr) })
  1675. pcall(colorpicker.callback, color)
  1676. end
  1677.  
  1678. function colorpicker:Get(value)
  1679. return colorpicker.value
  1680. end
  1681. colorpicker:Set(colorpicker.default)
  1682.  
  1683. local dragging_selector = false
  1684. local dragging_hue = false
  1685.  
  1686. colorpicker.selector.InputBegan:Connect(function(input)
  1687. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1688. dragging_selector = true
  1689. colorpicker:RefreshSelector()
  1690. end
  1691. end)
  1692.  
  1693. colorpicker.selector.InputEnded:Connect(function(input)
  1694. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1695. dragging_selector = false
  1696. colorpicker:RefreshSelector()
  1697. end
  1698. end)
  1699.  
  1700. colorpicker.hue.InputBegan:Connect(function(input)
  1701. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1702. dragging_hue = true
  1703. colorpicker:RefreshHue()
  1704. end
  1705. end)
  1706.  
  1707. colorpicker.hue.InputEnded:Connect(function(input)
  1708. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1709. dragging_hue = false
  1710. colorpicker:RefreshHue()
  1711. end
  1712. end)
  1713.  
  1714. uis.InputChanged:Connect(function(input)
  1715. if dragging_selector and input.UserInputType == Enum.UserInputType.MouseMovement then
  1716. colorpicker:RefreshSelector()
  1717. end
  1718. if dragging_hue and input.UserInputType == Enum.UserInputType.MouseMovement then
  1719. colorpicker:RefreshHue()
  1720. end
  1721. end)
  1722.  
  1723. local inputBegan = function(input)
  1724. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1725. for i,v in pairs(window.OpenedColorPickers) do
  1726. if v and i ~= colorpicker.MainPicker then
  1727. i.Visible = false
  1728. window.OpenedColorPickers[i] = false
  1729. end
  1730. end
  1731.  
  1732. colorpicker.MainPicker.Visible = not colorpicker.MainPicker.Visible
  1733. window.OpenedColorPickers[colorpicker.MainPicker] = colorpicker.MainPicker.Visible
  1734. if window.OpenedColorPickers[colorpicker.MainPicker] then
  1735. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1736. else
  1737. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1738. end
  1739. end
  1740. end
  1741.  
  1742. colorpicker.Main.InputBegan:Connect(inputBegan)
  1743. colorpicker.Outline.InputBegan:Connect(inputBegan)
  1744. colorpicker.BlackOutline2.InputBegan:Connect(inputBegan)
  1745. table.insert(library.items, colorpicker)
  1746. return colorpicker
  1747. end
  1748.  
  1749. function toggle:AddSlider(min, default, max, decimals, callback, flag)
  1750. local slider = { }
  1751. slider.text = text or ""
  1752. slider.callback = callback or function(value) end
  1753. slider.min = min or 0
  1754. slider.max = max or 100
  1755. slider.decimals = decimals or 1
  1756. slider.default = default or slider.min
  1757. slider.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren()))
  1758.  
  1759. slider.value = slider.default
  1760. local dragging = false
  1761.  
  1762. slider.Main = Instance.new("TextButton", sector.Items)
  1763. slider.Main.Name = "slider"
  1764. slider.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1765. slider.Main.Position = UDim2.fromOffset(0, 0)
  1766. slider.Main.BorderSizePixel = 0
  1767. slider.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 12)
  1768. slider.Main.AutoButtonColor = false
  1769. slider.Main.Text = ""
  1770. slider.Main.ZIndex = 7
  1771.  
  1772. slider.InputLabel = Instance.new("TextLabel", slider.Main)
  1773. slider.InputLabel.BackgroundTransparency = 1
  1774. slider.InputLabel.Size = slider.Main.Size
  1775. slider.InputLabel.Font = window.theme.font
  1776. slider.InputLabel.Text = "0"
  1777. slider.InputLabel.TextColor3 = Color3.fromRGB(240, 240, 240)
  1778. slider.InputLabel.Position = slider.Main.Position
  1779. slider.InputLabel.Selectable = false
  1780. slider.InputLabel.TextSize = 15
  1781. slider.InputLabel.ZIndex = 9
  1782. slider.InputLabel.TextStrokeTransparency = 1
  1783. slider.InputLabel.TextXAlignment = Enum.TextXAlignment.Center
  1784. updateevent.Event:Connect(function(theme)
  1785. slider.InputLabel.Font = theme.font
  1786. slider.InputLabel.TextColor3 = theme.itemscolor
  1787. end)
  1788.  
  1789. slider.BlackOutline2 = Instance.new("Frame", slider.Main)
  1790. slider.BlackOutline2.Name = "blackline"
  1791. slider.BlackOutline2.ZIndex = 4
  1792. slider.BlackOutline2.Size = slider.Main.Size + UDim2.fromOffset(6, 6)
  1793. slider.BlackOutline2.BorderSizePixel = 0
  1794. slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1795. slider.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  1796. updateevent.Event:Connect(function(theme)
  1797. slider.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  1798. end)
  1799.  
  1800. slider.Outline = Instance.new("Frame", slider.Main)
  1801. slider.Outline.Name = "blackline"
  1802. slider.Outline.ZIndex = 4
  1803. slider.Outline.Size = slider.Main.Size + UDim2.fromOffset(4, 4)
  1804. slider.Outline.BorderSizePixel = 0
  1805. slider.Outline.BackgroundColor3 = window.theme.outlinecolor
  1806. slider.Outline.Position = UDim2.fromOffset(-2, -2)
  1807. updateevent.Event:Connect(function(theme)
  1808. slider.Outline.BackgroundColor3 = theme.outlinecolor
  1809. end)
  1810.  
  1811. slider.BlackOutline = Instance.new("Frame", slider.Main)
  1812. slider.BlackOutline.Name = "blackline"
  1813. slider.BlackOutline.ZIndex = 4
  1814. slider.BlackOutline.Size = slider.Main.Size + UDim2.fromOffset(2, 2)
  1815. slider.BlackOutline.BorderSizePixel = 0
  1816. slider.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  1817. slider.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  1818. updateevent.Event:Connect(function(theme)
  1819. slider.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  1820. end)
  1821.  
  1822. slider.Gradient = Instance.new("UIGradient", slider.Main)
  1823. slider.Gradient.Rotation = 90
  1824. slider.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(41, 41, 41)) })
  1825.  
  1826. slider.SlideBar = Instance.new("Frame", slider.Main)
  1827. slider.SlideBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) --Color3.fromRGB(204, 0, 102)
  1828. slider.SlideBar.ZIndex = 8
  1829. slider.SlideBar.BorderSizePixel = 0
  1830. slider.SlideBar.Size = UDim2.fromOffset(0, slider.Main.Size.Y.Offset)
  1831.  
  1832. slider.Gradient2 = Instance.new("UIGradient", slider.SlideBar)
  1833. slider.Gradient2.Rotation = 90
  1834. slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor2) })
  1835. updateevent.Event:Connect(function(theme)
  1836. slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor), ColorSequenceKeypoint.new(1.00, theme.accentcolor2) })
  1837. end)
  1838.  
  1839. slider.BlackOutline2.MouseEnter:Connect(function()
  1840. slider.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1841. end)
  1842. slider.BlackOutline2.MouseLeave:Connect(function()
  1843. slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1844. end)
  1845.  
  1846. if slider.flag and slider.flag ~= "" then
  1847. library.flags[slider.flag] = slider.default or slider.min or 0
  1848. end
  1849.  
  1850. function slider:Get()
  1851. return slider.value
  1852. end
  1853.  
  1854. function slider:Set(value)
  1855. slider.value = math.clamp(math.round(value * slider.decimals) / slider.decimals, slider.min, slider.max)
  1856. local percent = 1 - ((slider.max - slider.value) / (slider.max - slider.min))
  1857. if slider.flag and slider.flag ~= "" then
  1858. library.flags[slider.flag] = slider.value
  1859. end
  1860. slider.SlideBar:TweenSize(UDim2.fromOffset(percent * slider.Main.AbsoluteSize.X, slider.Main.AbsoluteSize.Y), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  1861. slider.InputLabel.Text = slider.value
  1862. pcall(slider.callback, slider.value)
  1863. end
  1864. slider:Set(slider.default)
  1865.  
  1866. function slider:Refresh()
  1867. local mousePos = camera:WorldToViewportPoint(mouse.Hit.p)
  1868. local percent = math.clamp(mousePos.X - slider.SlideBar.AbsolutePosition.X, 0, slider.Main.AbsoluteSize.X) / slider.Main.AbsoluteSize.X
  1869. local value = math.floor((slider.min + (slider.max - slider.min) * percent) * slider.decimals) / slider.decimals
  1870. value = math.clamp(value, slider.min, slider.max)
  1871. slider:Set(value)
  1872. end
  1873.  
  1874. slider.SlideBar.InputBegan:Connect(function(input)
  1875. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1876. dragging = true
  1877. slider:Refresh()
  1878. end
  1879. end)
  1880.  
  1881. slider.SlideBar.InputEnded:Connect(function(input)
  1882. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1883. dragging = false
  1884. end
  1885. end)
  1886.  
  1887. slider.Main.InputBegan:Connect(function(input)
  1888. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1889. dragging = true
  1890. slider:Refresh()
  1891. end
  1892. end)
  1893.  
  1894. slider.Main.InputEnded:Connect(function(input)
  1895. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1896. dragging = false
  1897. end
  1898. end)
  1899.  
  1900. uis.InputChanged:Connect(function(input)
  1901. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1902. slider:Refresh()
  1903. end
  1904. end)
  1905.  
  1906. sector:FixSize()
  1907. table.insert(library.items, slider)
  1908. return slider
  1909. end
  1910.  
  1911. toggle.Main.MouseButton1Down:Connect(function()
  1912. toggle:Set(not toggle.CheckedFrame.Visible)
  1913. end)
  1914. toggle.Label.InputBegan:Connect(function(input)
  1915. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1916. toggle:Set(not toggle.CheckedFrame.Visible)
  1917. end
  1918. end)
  1919.  
  1920. local MouseEnter = function()
  1921. toggle.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  1922. end
  1923. local MouseLeave = function()
  1924. toggle.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  1925. end
  1926.  
  1927. toggle.Label.MouseEnter:Connect(MouseEnter)
  1928. toggle.Label.MouseLeave:Connect(MouseLeave)
  1929. toggle.BlackOutline2.MouseEnter:Connect(MouseEnter)
  1930. toggle.BlackOutline2.MouseLeave:Connect(MouseLeave)
  1931.  
  1932. sector:FixSize()
  1933. table.insert(library.items, toggle)
  1934. return toggle
  1935. end
  1936.  
  1937. function sector:AddTextbox(text, default, callback, flag)
  1938. local textbox = { }
  1939. textbox.text = text or ""
  1940. textbox.callback = callback or function() end
  1941. textbox.default = default
  1942. textbox.value = ""
  1943. textbox.flag = flag or text or ""
  1944.  
  1945. textbox.Label = Instance.new("TextButton", sector.Items)
  1946. textbox.Label.Name = "Label"
  1947. textbox.Label.AutoButtonColor = false
  1948. textbox.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1949. textbox.Label.BackgroundTransparency = 1
  1950. textbox.Label.Position = UDim2.fromOffset(sector.Main.Size.X.Offset, 0)
  1951. textbox.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 0)
  1952. textbox.Label.Font = window.theme.font
  1953. textbox.Label.ZIndex = 5
  1954. textbox.Label.Text = textbox.text
  1955. textbox.Label.TextColor3 = window.theme.itemscolor
  1956. textbox.Label.TextSize = 15
  1957. textbox.Label.TextStrokeTransparency = 1
  1958. textbox.Label.TextXAlignment = Enum.TextXAlignment.Left
  1959. updateevent.Event:Connect(function(theme)
  1960. textbox.Label.Font = theme.font
  1961. end)
  1962.  
  1963. textbox.Holder = Instance.new("Frame", sector.Items)
  1964. textbox.Holder.Name = "holder"
  1965. textbox.Holder.ZIndex = 5
  1966. textbox.Holder.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14)
  1967. textbox.Holder.BorderSizePixel = 0
  1968. textbox.Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1969.  
  1970. textbox.Gradient = Instance.new("UIGradient", textbox.Holder)
  1971. textbox.Gradient.Rotation = 90
  1972. textbox.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39)) })
  1973.  
  1974. textbox.Main = Instance.new("TextBox", textbox.Holder)
  1975. textbox.Main.PlaceholderText = textbox.text
  1976. textbox.Main.PlaceholderColor3 = Color3.fromRGB(190, 190, 190)
  1977. textbox.Main.Text = ""
  1978. textbox.Main.BackgroundTransparency = 1
  1979. textbox.Main.Font = window.theme.font
  1980. textbox.Main.Name = "textbox"
  1981. textbox.Main.MultiLine = false
  1982. textbox.Main.ClearTextOnFocus = false
  1983. textbox.Main.ZIndex = 5
  1984. textbox.Main.TextScaled = true
  1985. textbox.Main.Size = textbox.Holder.Size
  1986. textbox.Main.TextSize = 15
  1987. textbox.Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  1988. textbox.Main.BorderSizePixel = 0
  1989. textbox.Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  1990. textbox.Main.TextXAlignment = Enum.TextXAlignment.Left
  1991.  
  1992. if textbox.flag and textbox.flag ~= "" then
  1993. library.flags[textbox.flag] = textbox.default or ""
  1994. end
  1995.  
  1996. function textbox:Set(text)
  1997. textbox.value = text
  1998. textbox.Main.Text = text
  1999. if textbox.flag and textbox.flag ~= "" then
  2000. library.flags[textbox.flag] = text
  2001. end
  2002. pcall(textbox.callback, text)
  2003. end
  2004. updateevent.Event:Connect(function(theme)
  2005. textbox.Main.Font = theme.font
  2006. end)
  2007.  
  2008. function textbox:Get()
  2009. return textbox.value
  2010. end
  2011.  
  2012. if textbox.default then
  2013. textbox:Set(textbox.default)
  2014. end
  2015.  
  2016. textbox.Main.FocusLost:Connect(function()
  2017. textbox:Set(textbox.Main.Text)
  2018. end)
  2019.  
  2020. textbox.BlackOutline2 = Instance.new("Frame", textbox.Main)
  2021. textbox.BlackOutline2.Name = "blackline"
  2022. textbox.BlackOutline2.ZIndex = 4
  2023. textbox.BlackOutline2.Size = textbox.Main.Size + UDim2.fromOffset(6, 6)
  2024. textbox.BlackOutline2.BorderSizePixel = 0
  2025. textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2026. textbox.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  2027. updateevent.Event:Connect(function(theme)
  2028. textbox.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  2029. end)
  2030.  
  2031. textbox.Outline = Instance.new("Frame", textbox.Main)
  2032. textbox.Outline.Name = "blackline"
  2033. textbox.Outline.ZIndex = 4
  2034. textbox.Outline.Size = textbox.Main.Size + UDim2.fromOffset(4, 4)
  2035. textbox.Outline.BorderSizePixel = 0
  2036. textbox.Outline.BackgroundColor3 = window.theme.outlinecolor
  2037. textbox.Outline.Position = UDim2.fromOffset(-2, -2)
  2038. updateevent.Event:Connect(function(theme)
  2039. textbox.Outline.BackgroundColor3 = theme.outlinecolor
  2040. end)
  2041.  
  2042. textbox.BlackOutline = Instance.new("Frame", textbox.Main)
  2043. textbox.BlackOutline.Name = "blackline"
  2044. textbox.BlackOutline.ZIndex = 4
  2045. textbox.BlackOutline.Size = textbox.Main.Size + UDim2.fromOffset(2, 2)
  2046. textbox.BlackOutline.BorderSizePixel = 0
  2047. textbox.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  2048. textbox.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  2049. updateevent.Event:Connect(function(theme)
  2050. textbox.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  2051. end)
  2052.  
  2053. textbox.BlackOutline2.MouseEnter:Connect(function()
  2054. textbox.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  2055. end)
  2056. textbox.BlackOutline2.MouseLeave:Connect(function()
  2057. textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2058. end)
  2059.  
  2060. sector:FixSize()
  2061. table.insert(library.items, textbox)
  2062. return textbox
  2063. end
  2064.  
  2065. function sector:AddSlider(text, min, default, max, decimals, callback, flag)
  2066. local slider = { }
  2067. slider.text = text or ""
  2068. slider.callback = callback or function(value) end
  2069. slider.min = min or 0
  2070. slider.max = max or 100
  2071. slider.decimals = decimals or 1
  2072. slider.default = default or slider.min
  2073. slider.flag = flag or text or ""
  2074.  
  2075. slider.value = slider.default
  2076. local dragging = false
  2077.  
  2078. slider.MainBack = Instance.new("Frame", sector.Items)
  2079. slider.MainBack.Name = "MainBack"
  2080. slider.MainBack.ZIndex = 7
  2081. slider.MainBack.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 25)
  2082. slider.MainBack.BorderSizePixel = 0
  2083. slider.MainBack.BackgroundTransparency = 1
  2084.  
  2085. slider.Label = Instance.new("TextLabel", slider.MainBack)
  2086. slider.Label.BackgroundTransparency = 1
  2087. slider.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 6)
  2088. slider.Label.Font = window.theme.font
  2089. slider.Label.Text = slider.text .. ":"
  2090. slider.Label.TextColor3 = window.theme.itemscolor
  2091. slider.Label.Position = UDim2.fromOffset(0, 0)
  2092. slider.Label.TextSize = 15
  2093. slider.Label.ZIndex = 4
  2094. slider.Label.TextStrokeTransparency = 1
  2095. slider.Label.TextXAlignment = Enum.TextXAlignment.Left
  2096. updateevent.Event:Connect(function(theme)
  2097. slider.Label.Font = theme.font
  2098. slider.Label.TextColor3 = theme.itemscolor
  2099. end)
  2100.  
  2101. local size = textservice:GetTextSize(slider.Label.Text, slider.Label.TextSize, slider.Label.Font, Vector2.new(200,300))
  2102. slider.InputLabel = Instance.new("TextBox", slider.MainBack)
  2103. slider.InputLabel.BackgroundTransparency = 1
  2104. slider.InputLabel.ClearTextOnFocus = false
  2105. slider.InputLabel.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - size.X - 15, 12)
  2106. slider.InputLabel.Font = window.theme.font
  2107. slider.InputLabel.Text = "0"
  2108. slider.InputLabel.TextColor3 = window.theme.itemscolor
  2109. slider.InputLabel.Position = UDim2.fromOffset(size.X + 3, -3)
  2110. slider.InputLabel.TextSize = 15
  2111. slider.InputLabel.ZIndex = 4
  2112. slider.InputLabel.TextStrokeTransparency = 1
  2113. slider.InputLabel.TextXAlignment = Enum.TextXAlignment.Left
  2114. updateevent.Event:Connect(function(theme)
  2115. slider.InputLabel.Font = theme.font
  2116. slider.InputLabel.TextColor3 = theme.itemscolor
  2117.  
  2118. local size = textservice:GetTextSize(slider.Label.Text, slider.Label.TextSize, slider.Label.Font, Vector2.new(200,300))
  2119. slider.InputLabel.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - size.X - 15, 12)
  2120. end)
  2121.  
  2122. slider.Main = Instance.new("TextButton", slider.MainBack)
  2123. slider.Main.Name = "slider"
  2124. slider.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2125. slider.Main.Position = UDim2.fromOffset(0, 15)
  2126. slider.Main.BorderSizePixel = 0
  2127. slider.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 12)
  2128. slider.Main.AutoButtonColor = false
  2129. slider.Main.Text = ""
  2130. slider.Main.ZIndex = 5
  2131.  
  2132. slider.BlackOutline2 = Instance.new("Frame", slider.Main)
  2133. slider.BlackOutline2.Name = "blackline"
  2134. slider.BlackOutline2.ZIndex = 4
  2135. slider.BlackOutline2.Size = slider.Main.Size + UDim2.fromOffset(6, 6)
  2136. slider.BlackOutline2.BorderSizePixel = 0
  2137. slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2138. slider.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  2139. updateevent.Event:Connect(function(theme)
  2140. slider.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  2141. end)
  2142.  
  2143. slider.Outline = Instance.new("Frame", slider.Main)
  2144. slider.Outline.Name = "blackline"
  2145. slider.Outline.ZIndex = 4
  2146. slider.Outline.Size = slider.Main.Size + UDim2.fromOffset(4, 4)
  2147. slider.Outline.BorderSizePixel = 0
  2148. slider.Outline.BackgroundColor3 = window.theme.outlinecolor
  2149. slider.Outline.Position = UDim2.fromOffset(-2, -2)
  2150. updateevent.Event:Connect(function(theme)
  2151. slider.Outline.BackgroundColor3 = theme.outlinecolor
  2152. end)
  2153.  
  2154. slider.BlackOutline = Instance.new("Frame", slider.Main)
  2155. slider.BlackOutline.Name = "blackline"
  2156. slider.BlackOutline.ZIndex = 4
  2157. slider.BlackOutline.Size = slider.Main.Size + UDim2.fromOffset(2, 2)
  2158. slider.BlackOutline.BorderSizePixel = 0
  2159. slider.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  2160. slider.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  2161. updateevent.Event:Connect(function(theme)
  2162. slider.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  2163. end)
  2164.  
  2165. slider.Gradient = Instance.new("UIGradient", slider.Main)
  2166. slider.Gradient.Rotation = 90
  2167. slider.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(41, 41, 41)) })
  2168.  
  2169. slider.SlideBar = Instance.new("Frame", slider.Main)
  2170. slider.SlideBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) --Color3.fromRGB(204, 0, 102)
  2171. slider.SlideBar.ZIndex = 5
  2172. slider.SlideBar.BorderSizePixel = 0
  2173. slider.SlideBar.Size = UDim2.fromOffset(0, slider.Main.Size.Y.Offset)
  2174.  
  2175. slider.Gradient2 = Instance.new("UIGradient", slider.SlideBar)
  2176. slider.Gradient2.Rotation = 90
  2177. slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor2) })
  2178. updateevent.Event:Connect(function(theme)
  2179. slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor), ColorSequenceKeypoint.new(1.00, theme.accentcolor2) })
  2180. end)
  2181.  
  2182. slider.BlackOutline2.MouseEnter:Connect(function()
  2183. slider.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  2184. end)
  2185. slider.BlackOutline2.MouseLeave:Connect(function()
  2186. slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2187. end)
  2188.  
  2189. if slider.flag and slider.flag ~= "" then
  2190. library.flags[slider.flag] = slider.default or slider.min or 0
  2191. end
  2192.  
  2193. function slider:Get()
  2194. return slider.value
  2195. end
  2196.  
  2197. function slider:Set(value)
  2198. slider.value = math.clamp(math.round(value * slider.decimals) / slider.decimals, slider.min, slider.max)
  2199. local percent = 1 - ((slider.max - slider.value) / (slider.max - slider.min))
  2200. if slider.flag and slider.flag ~= "" then
  2201. library.flags[slider.flag] = slider.value
  2202. end
  2203. slider.SlideBar:TweenSize(UDim2.fromOffset(percent * slider.Main.AbsoluteSize.X, slider.Main.AbsoluteSize.Y), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  2204. slider.InputLabel.Text = slider.value
  2205. pcall(slider.callback, slider.value)
  2206. end
  2207. slider:Set(slider.default)
  2208.  
  2209. slider.InputLabel.FocusLost:Connect(function(Return)
  2210. if not Return then
  2211. return
  2212. end
  2213. if (slider.InputLabel.Text:match("^%d+$")) then
  2214. slider:Set(tonumber(slider.InputLabel.Text))
  2215. else
  2216. slider.InputLabel.Text = tostring(slider.value)
  2217. end
  2218. end)
  2219.  
  2220. function slider:Refresh()
  2221. local mousePos = camera:WorldToViewportPoint(mouse.Hit.p)
  2222. local percent = math.clamp(mousePos.X - slider.SlideBar.AbsolutePosition.X, 0, slider.Main.AbsoluteSize.X) / slider.Main.AbsoluteSize.X
  2223. local value = math.floor((slider.min + (slider.max - slider.min) * percent) * slider.decimals) / slider.decimals
  2224. value = math.clamp(value, slider.min, slider.max)
  2225. slider:Set(value)
  2226. end
  2227.  
  2228. slider.SlideBar.InputBegan:Connect(function(input)
  2229. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2230. dragging = true
  2231. slider:Refresh()
  2232. end
  2233. end)
  2234.  
  2235. slider.SlideBar.InputEnded:Connect(function(input)
  2236. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2237. dragging = false
  2238. end
  2239. end)
  2240.  
  2241. slider.Main.InputBegan:Connect(function(input)
  2242. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2243. dragging = true
  2244. slider:Refresh()
  2245. end
  2246. end)
  2247.  
  2248. slider.Main.InputEnded:Connect(function(input)
  2249. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2250. dragging = false
  2251. end
  2252. end)
  2253.  
  2254. uis.InputChanged:Connect(function(input)
  2255. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  2256. slider:Refresh()
  2257. end
  2258. end)
  2259.  
  2260. sector:FixSize()
  2261. table.insert(library.items, slider)
  2262. return slider
  2263. end
  2264.  
  2265. function sector:AddColorpicker(text, default, callback, flag)
  2266. local colorpicker = { }
  2267.  
  2268. colorpicker.text = text or ""
  2269. colorpicker.callback = callback or function() end
  2270. colorpicker.default = default or Color3.fromRGB(255, 255, 255)
  2271. colorpicker.value = colorpicker.default
  2272. colorpicker.flag = flag or text or ""
  2273.  
  2274. colorpicker.Label = Instance.new("TextLabel", sector.Items)
  2275. colorpicker.Label.BackgroundTransparency = 1
  2276. colorpicker.Label.Size = UDim2.fromOffset(156, 10)
  2277. colorpicker.Label.ZIndex = 4
  2278. colorpicker.Label.Font = window.theme.font
  2279. colorpicker.Label.Text = colorpicker.text
  2280. colorpicker.Label.TextColor3 = window.theme.itemscolor
  2281. colorpicker.Label.TextSize = 15
  2282. colorpicker.Label.TextStrokeTransparency = 1
  2283. colorpicker.Label.TextXAlignment = Enum.TextXAlignment.Left
  2284. updateevent.Event:Connect(function(theme)
  2285. colorpicker.Label.Font = theme.font
  2286. colorpicker.Label.TextColor3 = theme.itemscolor
  2287. end)
  2288.  
  2289. colorpicker.Main = Instance.new("Frame", colorpicker.Label)
  2290. colorpicker.Main.ZIndex = 6
  2291. colorpicker.Main.BorderSizePixel = 0
  2292. colorpicker.Main.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 29, 0)
  2293. colorpicker.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2294. colorpicker.Main.Size = UDim2.fromOffset(16, 10)
  2295.  
  2296. colorpicker.Gradient = Instance.new("UIGradient", colorpicker.Main)
  2297. colorpicker.Gradient.Rotation = 90
  2298.  
  2299. local clr = Color3.new(math.clamp(colorpicker.value.R / 1.7, 0, 1), math.clamp(colorpicker.value.G / 1.7, 0, 1), math.clamp(colorpicker.value.B / 1.7, 0, 1))
  2300. colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, colorpicker.value), ColorSequenceKeypoint.new(1.00, clr) })
  2301.  
  2302. colorpicker.BlackOutline2 = Instance.new("Frame", colorpicker.Main)
  2303. colorpicker.BlackOutline2.Name = "blackline"
  2304. colorpicker.BlackOutline2.ZIndex = 4
  2305. colorpicker.BlackOutline2.Size = colorpicker.Main.Size + UDim2.fromOffset(6, 6)
  2306. colorpicker.BlackOutline2.BorderSizePixel = 0
  2307. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2308. colorpicker.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  2309. updateevent.Event:Connect(function(theme)
  2310. colorpicker.BlackOutline2.BackgroundColor3 = window.OpenedColorPickers[colorpicker.MainPicker] and theme.accentcolor or theme.outlinecolor2
  2311. end)
  2312.  
  2313. colorpicker.Outline = Instance.new("Frame", colorpicker.Main)
  2314. colorpicker.Outline.Name = "blackline"
  2315. colorpicker.Outline.ZIndex = 4
  2316. colorpicker.Outline.Size = colorpicker.Main.Size + UDim2.fromOffset(4, 4)
  2317. colorpicker.Outline.BorderSizePixel = 0
  2318. colorpicker.Outline.BackgroundColor3 = window.theme.outlinecolor
  2319. colorpicker.Outline.Position = UDim2.fromOffset(-2, -2)
  2320. updateevent.Event:Connect(function(theme)
  2321. colorpicker.Outline.BackgroundColor3 = theme.outlinecolor
  2322. end)
  2323.  
  2324. colorpicker.BlackOutline = Instance.new("Frame", colorpicker.Main)
  2325. colorpicker.BlackOutline.Name = "blackline"
  2326. colorpicker.BlackOutline.ZIndex = 4
  2327. colorpicker.BlackOutline.Size = colorpicker.Main.Size + UDim2.fromOffset(2, 2)
  2328. colorpicker.BlackOutline.BorderSizePixel = 0
  2329. colorpicker.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  2330. colorpicker.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  2331. updateevent.Event:Connect(function(theme)
  2332. colorpicker.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  2333. end)
  2334.  
  2335. colorpicker.BlackOutline2.MouseEnter:Connect(function()
  2336. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  2337. end)
  2338. colorpicker.BlackOutline2.MouseLeave:Connect(function()
  2339. if not window.OpenedColorPickers[colorpicker.MainPicker] then
  2340. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2341. end
  2342. end)
  2343.  
  2344. colorpicker.MainPicker = Instance.new("TextButton", colorpicker.Main)
  2345. colorpicker.MainPicker.Name = "picker"
  2346. colorpicker.MainPicker.ZIndex = 100
  2347. colorpicker.MainPicker.Visible = false
  2348. colorpicker.MainPicker.AutoButtonColor = false
  2349. colorpicker.MainPicker.Text = ""
  2350. window.OpenedColorPickers[colorpicker.MainPicker] = false
  2351. colorpicker.MainPicker.Size = UDim2.fromOffset(180, 196)
  2352. colorpicker.MainPicker.BorderSizePixel = 0
  2353. colorpicker.MainPicker.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  2354. colorpicker.MainPicker.Rotation = 0.000000000000001
  2355. colorpicker.MainPicker.Position = UDim2.fromOffset(-colorpicker.MainPicker.AbsoluteSize.X + colorpicker.Main.AbsoluteSize.X, 15)
  2356.  
  2357. colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker)
  2358. colorpicker.BlackOutline3.Name = "blackline"
  2359. colorpicker.BlackOutline3.ZIndex = 98
  2360. colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(6, 6)
  2361. colorpicker.BlackOutline3.BorderSizePixel = 0
  2362. colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2
  2363. colorpicker.BlackOutline3.Position = UDim2.fromOffset(-3, -3)
  2364. updateevent.Event:Connect(function(theme)
  2365. colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
  2366. end)
  2367.  
  2368. colorpicker.Outline2 = Instance.new("Frame", colorpicker.MainPicker)
  2369. colorpicker.Outline2.Name = "blackline"
  2370. colorpicker.Outline2.ZIndex = 98
  2371. colorpicker.Outline2.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(4, 4)
  2372. colorpicker.Outline2.BorderSizePixel = 0
  2373. colorpicker.Outline2.BackgroundColor3 = window.theme.outlinecolor
  2374. colorpicker.Outline2.Position = UDim2.fromOffset(-2, -2)
  2375. updateevent.Event:Connect(function(theme)
  2376. colorpicker.Outline2.BackgroundColor3 = theme.outlinecolor
  2377. end)
  2378.  
  2379. colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker)
  2380. colorpicker.BlackOutline3.Name = "blackline"
  2381. colorpicker.BlackOutline3.ZIndex = 98
  2382. colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(2, 2)
  2383. colorpicker.BlackOutline3.BorderSizePixel = 0
  2384. colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2
  2385. colorpicker.BlackOutline3.Position = UDim2.fromOffset(-1, -1)
  2386. updateevent.Event:Connect(function(theme)
  2387. colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2
  2388. end)
  2389.  
  2390. colorpicker.hue = Instance.new("ImageLabel", colorpicker.MainPicker)
  2391. colorpicker.hue.ZIndex = 101
  2392. colorpicker.hue.Position = UDim2.new(0,3,0,3)
  2393. colorpicker.hue.Size = UDim2.new(0,172,0,172)
  2394. colorpicker.hue.Image = "rbxassetid://4155801252"
  2395. colorpicker.hue.ScaleType = Enum.ScaleType.Stretch
  2396. colorpicker.hue.BackgroundColor3 = Color3.new(1,0,0)
  2397. colorpicker.hue.BorderColor3 = window.theme.outlinecolor2
  2398. updateevent.Event:Connect(function(theme)
  2399. colorpicker.hue.BorderColor3 = theme.outlinecolor2
  2400. end)
  2401.  
  2402. colorpicker.hueselectorpointer = Instance.new("ImageLabel", colorpicker.MainPicker)
  2403. colorpicker.hueselectorpointer.ZIndex = 101
  2404. colorpicker.hueselectorpointer.BackgroundTransparency = 1
  2405. colorpicker.hueselectorpointer.BorderSizePixel = 0
  2406. colorpicker.hueselectorpointer.Position = UDim2.new(0, 0, 0, 0)
  2407. colorpicker.hueselectorpointer.Size = UDim2.new(0, 7, 0, 7)
  2408. colorpicker.hueselectorpointer.Image = "rbxassetid://6885856475"
  2409.  
  2410. colorpicker.selector = Instance.new("TextLabel", colorpicker.MainPicker)
  2411. colorpicker.selector.ZIndex = 100
  2412. colorpicker.selector.Position = UDim2.new(0,3,0,181)
  2413. colorpicker.selector.Size = UDim2.new(0,173,0,10)
  2414. colorpicker.selector.BackgroundColor3 = Color3.fromRGB(255,255,255)
  2415. colorpicker.selector.BorderColor3 = window.theme.outlinecolor2
  2416. colorpicker.selector.Text = ""
  2417. updateevent.Event:Connect(function(theme)
  2418. colorpicker.selector.BorderColor3 = theme.outlinecolor2
  2419. end)
  2420.  
  2421. colorpicker.gradient = Instance.new("UIGradient", colorpicker.selector)
  2422. colorpicker.gradient.Color = ColorSequence.new({
  2423. ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
  2424. ColorSequenceKeypoint.new(0.17, Color3.new(1,0,1)),
  2425. ColorSequenceKeypoint.new(0.33,Color3.new(0,0,1)),
  2426. ColorSequenceKeypoint.new(0.5,Color3.new(0,1,1)),
  2427. ColorSequenceKeypoint.new(0.67, Color3.new(0,1,0)),
  2428. ColorSequenceKeypoint.new(0.83, Color3.new(1,1,0)),
  2429. ColorSequenceKeypoint.new(1, Color3.new(1,0,0))
  2430. })
  2431.  
  2432. colorpicker.pointer = Instance.new("Frame", colorpicker.selector)
  2433. colorpicker.pointer.ZIndex = 101
  2434. colorpicker.pointer.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  2435. colorpicker.pointer.Position = UDim2.new(0,0,0,0)
  2436. colorpicker.pointer.Size = UDim2.new(0,2,0,10)
  2437. colorpicker.pointer.BorderColor3 = Color3.fromRGB(255, 255, 255)
  2438.  
  2439. if colorpicker.flag and colorpicker.flag ~= "" then
  2440. library.flags[colorpicker.flag] = colorpicker.default
  2441. end
  2442.  
  2443. function colorpicker:RefreshSelector()
  2444. local pos = math.clamp((mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X, 0, 1)
  2445. colorpicker.color = 1 - pos
  2446. colorpicker.pointer:TweenPosition(UDim2.new(pos, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  2447. colorpicker.hue.BackgroundColor3 = Color3.fromHSV(1 - pos, 1, 1)
  2448. end
  2449.  
  2450. function colorpicker:RefreshHue()
  2451. local x = (mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X
  2452. local y = (mouse.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y
  2453. colorpicker.hueselectorpointer:TweenPosition(UDim2.new(math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 0.952 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 0, math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 0.885 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05)
  2454. colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y)))
  2455. end
  2456.  
  2457. function colorpicker:Set(value)
  2458. local color = Color3.new(math.clamp(value.r, 0, 1), math.clamp(value.g, 0, 1), math.clamp(value.b, 0, 1))
  2459. colorpicker.value = color
  2460. if colorpicker.flag and colorpicker.flag ~= "" then
  2461. library.flags[colorpicker.flag] = color
  2462. end
  2463. local clr = Color3.new(math.clamp(color.R / 1.7, 0, 1), math.clamp(color.G / 1.7, 0, 1), math.clamp(color.B / 1.7, 0, 1))
  2464. colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, color), ColorSequenceKeypoint.new(1.00, clr) })
  2465. pcall(colorpicker.callback, color)
  2466. end
  2467. function colorpicker:Get()
  2468. return colorpicker.value
  2469. end
  2470. colorpicker:Set(colorpicker.default)
  2471.  
  2472. function colorpicker:AddDropdown(items, default, multichoice, callback, flag)
  2473. local dropdown = { }
  2474.  
  2475. dropdown.defaultitems = items or { }
  2476. dropdown.default = default
  2477. dropdown.callback = callback or function() end
  2478. dropdown.multichoice = multichoice or false
  2479. dropdown.values = { }
  2480. dropdown.flag = flag or ((colorpicker.text or "") .. tostring( #(sector.Items:GetChildren()) ))
  2481.  
  2482. dropdown.Main = Instance.new("TextButton", sector.Items)
  2483. dropdown.Main.Name = "dropdown"
  2484. dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2485. dropdown.Main.BorderSizePixel = 0
  2486. dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16)
  2487. dropdown.Main.Position = UDim2.fromOffset(0, 0)
  2488. dropdown.Main.ZIndex = 5
  2489. dropdown.Main.AutoButtonColor = false
  2490. dropdown.Main.Font = window.theme.font
  2491. dropdown.Main.Text = ""
  2492. dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  2493. dropdown.Main.TextSize = 15
  2494. dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left
  2495. updateevent.Event:Connect(function(theme)
  2496. dropdown.Main.Font = theme.font
  2497. end)
  2498.  
  2499. dropdown.Gradient = Instance.new("UIGradient", dropdown.Main)
  2500. dropdown.Gradient.Rotation = 90
  2501. dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))}
  2502.  
  2503. dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main)
  2504. dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2505. dropdown.SelectedLabel.BackgroundTransparency = 1
  2506. dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2)
  2507. dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13)
  2508. dropdown.SelectedLabel.Font = window.theme.font
  2509. dropdown.SelectedLabel.Text = colorpicker.text
  2510. dropdown.SelectedLabel.ZIndex = 5
  2511. dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  2512. dropdown.SelectedLabel.TextSize = 15
  2513. dropdown.SelectedLabel.TextStrokeTransparency = 1
  2514. dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left
  2515. updateevent.Event:Connect(function(theme)
  2516. dropdown.SelectedLabel.Font = theme.font
  2517. end)
  2518.  
  2519. dropdown.Nav = Instance.new("ImageButton", dropdown.Main)
  2520. dropdown.Nav.Name = "navigation"
  2521. dropdown.Nav.BackgroundTransparency = 1
  2522. dropdown.Nav.LayoutOrder = 10
  2523. dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5)
  2524. dropdown.Nav.Rotation = 90
  2525. dropdown.Nav.ZIndex = 5
  2526. dropdown.Nav.Size = UDim2.fromOffset(8, 8)
  2527. dropdown.Nav.Image = "rbxassetid://4918373417"
  2528. dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210)
  2529.  
  2530. dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main)
  2531. dropdown.BlackOutline2.Name = "blackline"
  2532. dropdown.BlackOutline2.ZIndex = 4
  2533. dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6)
  2534. dropdown.BlackOutline2.BorderSizePixel = 0
  2535. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2536. dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  2537. updateevent.Event:Connect(function(theme)
  2538. dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  2539. end)
  2540.  
  2541. dropdown.Outline = Instance.new("Frame", dropdown.Main)
  2542. dropdown.Outline.Name = "blackline"
  2543. dropdown.Outline.ZIndex = 4
  2544. dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4)
  2545. dropdown.Outline.BorderSizePixel = 0
  2546. dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor
  2547. dropdown.Outline.Position = UDim2.fromOffset(-2, -2)
  2548. updateevent.Event:Connect(function(theme)
  2549. dropdown.Outline.BackgroundColor3 = theme.outlinecolor
  2550. end)
  2551.  
  2552. dropdown.BlackOutline = Instance.new("Frame", dropdown.Main)
  2553. dropdown.BlackOutline.Name = "blackline"
  2554. dropdown.BlackOutline.ZIndex = 4
  2555. dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2)
  2556. dropdown.BlackOutline.BorderSizePixel = 0
  2557. dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  2558. dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  2559. updateevent.Event:Connect(function(theme)
  2560. dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  2561. end)
  2562.  
  2563. dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main)
  2564. dropdown.ItemsFrame.Name = "itemsframe"
  2565. dropdown.ItemsFrame.BorderSizePixel = 0
  2566. dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  2567. dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  2568. dropdown.ItemsFrame.ScrollBarThickness = 2
  2569. dropdown.ItemsFrame.ZIndex = 8
  2570. dropdown.ItemsFrame.ScrollingDirection = "Y"
  2571. dropdown.ItemsFrame.Visible = false
  2572. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0)
  2573.  
  2574. dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame)
  2575. dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical
  2576. dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2577.  
  2578. dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame)
  2579. dropdown.ListPadding.PaddingTop = UDim.new(0, 2)
  2580. dropdown.ListPadding.PaddingBottom = UDim.new(0, 2)
  2581. dropdown.ListPadding.PaddingLeft = UDim.new(0, 2)
  2582. dropdown.ListPadding.PaddingRight = UDim.new(0, 2)
  2583.  
  2584. dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main)
  2585. dropdown.BlackOutline2Items.Name = "blackline"
  2586. dropdown.BlackOutline2Items.ZIndex = 7
  2587. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  2588. dropdown.BlackOutline2Items.BorderSizePixel = 0
  2589. dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2
  2590. dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3)
  2591. dropdown.BlackOutline2Items.Visible = false
  2592. updateevent.Event:Connect(function(theme)
  2593. dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2
  2594. end)
  2595.  
  2596. dropdown.OutlineItems = Instance.new("Frame", dropdown.Main)
  2597. dropdown.OutlineItems.Name = "blackline"
  2598. dropdown.OutlineItems.ZIndex = 7
  2599. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  2600. dropdown.OutlineItems.BorderSizePixel = 0
  2601. dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor
  2602. dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2)
  2603. dropdown.OutlineItems.Visible = false
  2604. updateevent.Event:Connect(function(theme)
  2605. dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor
  2606. end)
  2607.  
  2608. dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main)
  2609. dropdown.BlackOutlineItems.Name = "blackline"
  2610. dropdown.BlackOutlineItems.ZIndex = 7
  2611. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2)
  2612. dropdown.BlackOutlineItems.BorderSizePixel = 0
  2613. dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2
  2614. dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1)
  2615. dropdown.BlackOutlineItems.Visible = false
  2616. updateevent.Event:Connect(function(theme)
  2617. dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2
  2618. end)
  2619.  
  2620. dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main)
  2621. dropdown.IgnoreBackButtons.BackgroundTransparency = 1
  2622. dropdown.IgnoreBackButtons.BorderSizePixel = 0
  2623. dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  2624. dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0)
  2625. dropdown.IgnoreBackButtons.ZIndex = 7
  2626. dropdown.IgnoreBackButtons.Text = ""
  2627. dropdown.IgnoreBackButtons.Visible = false
  2628. dropdown.IgnoreBackButtons.AutoButtonColor = false
  2629.  
  2630. if dropdown.flag and dropdown.flag ~= "" then
  2631. library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "")
  2632. end
  2633.  
  2634. function dropdown:isSelected(item)
  2635. for i, v in pairs(dropdown.values) do
  2636. if v == item then
  2637. return true
  2638. end
  2639. end
  2640. return false
  2641. end
  2642.  
  2643. function dropdown:updateText(text)
  2644. if #text >= 27 then
  2645. text = text:sub(1, 25) .. ".."
  2646. end
  2647. dropdown.SelectedLabel.Text = text
  2648. end
  2649.  
  2650. dropdown.Changed = Instance.new("BindableEvent")
  2651. function dropdown:Set(value)
  2652. if type(value) == "table" then
  2653. dropdown.values = value
  2654. dropdown:updateText(table.concat(value, ", "))
  2655. pcall(dropdown.callback, value)
  2656. else
  2657. dropdown:updateText(value)
  2658. dropdown.values = { value }
  2659. pcall(dropdown.callback, value)
  2660. end
  2661.  
  2662. dropdown.Changed:Fire(value)
  2663. if dropdown.flag and dropdown.flag ~= "" then
  2664. library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1]
  2665. end
  2666. end
  2667.  
  2668. function dropdown:Get()
  2669. return dropdown.multichoice and dropdown.values or dropdown.values[1]
  2670. end
  2671.  
  2672. dropdown.items = { }
  2673. function dropdown:Add(v)
  2674. local Item = Instance.new("TextButton", dropdown.ItemsFrame)
  2675. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  2676. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  2677. Item.BorderSizePixel = 0
  2678. Item.Position = UDim2.fromOffset(0, 0)
  2679. Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20)
  2680. Item.ZIndex = 9
  2681. Item.Text = v
  2682. Item.Name = v
  2683. Item.AutoButtonColor = false
  2684. Item.Font = window.theme.font
  2685. Item.TextSize = 15
  2686. Item.TextXAlignment = Enum.TextXAlignment.Left
  2687. Item.TextStrokeTransparency = 1
  2688. dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y)
  2689.  
  2690. Item.MouseButton1Down:Connect(function()
  2691. if dropdown.multichoice then
  2692. if dropdown:isSelected(v) then
  2693. for i2, v2 in pairs(dropdown.values) do
  2694. if v2 == v then
  2695. table.remove(dropdown.values, i2)
  2696. end
  2697. end
  2698. dropdown:Set(dropdown.values)
  2699. else
  2700. table.insert(dropdown.values, v)
  2701. dropdown:Set(dropdown.values)
  2702. end
  2703.  
  2704. return
  2705. else
  2706. dropdown.Nav.Rotation = 90
  2707. dropdown.ItemsFrame.Visible = false
  2708. dropdown.ItemsFrame.Active = false
  2709. dropdown.OutlineItems.Visible = false
  2710. dropdown.BlackOutlineItems.Visible = false
  2711. dropdown.BlackOutline2Items.Visible = false
  2712. dropdown.IgnoreBackButtons.Visible = false
  2713. dropdown.IgnoreBackButtons.Active = false
  2714. end
  2715.  
  2716. dropdown:Set(v)
  2717. return
  2718. end)
  2719.  
  2720. runservice.RenderStepped:Connect(function()
  2721. if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then
  2722. Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64)
  2723. Item.TextColor3 = window.theme.accentcolor
  2724. Item.Text = " " .. v
  2725. else
  2726. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  2727. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  2728. Item.Text = v
  2729. end
  2730. end)
  2731.  
  2732. table.insert(dropdown.items, v)
  2733. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4)
  2734. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4)
  2735.  
  2736. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  2737. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  2738. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  2739. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  2740. end
  2741.  
  2742. function dropdown:Remove(value)
  2743. local item = dropdown.ItemsFrame:FindFirstChild(value)
  2744. if item then
  2745. for i,v in pairs(dropdown.items) do
  2746. if v == value then
  2747. table.remove(dropdown.items, i)
  2748. end
  2749. end
  2750.  
  2751. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4)
  2752. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4)
  2753.  
  2754. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  2755. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  2756. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  2757. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  2758.  
  2759. item:Remove()
  2760. end
  2761. end
  2762.  
  2763. for i,v in pairs(dropdown.defaultitems) do
  2764. dropdown:Add(v)
  2765. end
  2766.  
  2767. if dropdown.default then
  2768. dropdown:Set(dropdown.default)
  2769. end
  2770.  
  2771. local MouseButton1Down = function()
  2772. if dropdown.Nav.Rotation == 90 then
  2773. dropdown.ItemsFrame.ScrollingEnabled = true
  2774. sector.Main.Parent.ScrollingEnabled = false
  2775. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play()
  2776. dropdown.ItemsFrame.Visible = true
  2777. dropdown.ItemsFrame.Active = true
  2778. dropdown.IgnoreBackButtons.Visible = true
  2779. dropdown.IgnoreBackButtons.Active = true
  2780. dropdown.OutlineItems.Visible = true
  2781. dropdown.BlackOutlineItems.Visible = true
  2782. dropdown.BlackOutline2Items.Visible = true
  2783. else
  2784. dropdown.ItemsFrame.ScrollingEnabled = false
  2785. sector.Main.Parent.ScrollingEnabled = true
  2786. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play()
  2787. dropdown.ItemsFrame.Visible = false
  2788. dropdown.ItemsFrame.Active = false
  2789. dropdown.IgnoreBackButtons.Visible = false
  2790. dropdown.IgnoreBackButtons.Active = false
  2791. dropdown.OutlineItems.Visible = false
  2792. dropdown.BlackOutlineItems.Visible = false
  2793. dropdown.BlackOutline2Items.Visible = false
  2794. end
  2795. end
  2796.  
  2797. dropdown.Main.MouseButton1Down:Connect(MouseButton1Down)
  2798. dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down)
  2799.  
  2800. dropdown.BlackOutline2.MouseEnter:Connect(function()
  2801. dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  2802. end)
  2803. dropdown.BlackOutline2.MouseLeave:Connect(function()
  2804. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2805. end)
  2806.  
  2807. sector:FixSize()
  2808. table.insert(library.items, dropdown)
  2809. return dropdown
  2810. end
  2811.  
  2812. local dragging_selector = false
  2813. local dragging_hue = false
  2814.  
  2815. colorpicker.selector.InputBegan:Connect(function(input)
  2816. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2817. dragging_selector = true
  2818. colorpicker:RefreshSelector()
  2819. end
  2820. end)
  2821.  
  2822. colorpicker.selector.InputEnded:Connect(function(input)
  2823. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2824. dragging_selector = false
  2825. colorpicker:RefreshSelector()
  2826. end
  2827. end)
  2828.  
  2829. colorpicker.hue.InputBegan:Connect(function(input)
  2830. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2831. dragging_hue = true
  2832. colorpicker:RefreshHue()
  2833. end
  2834. end)
  2835.  
  2836. colorpicker.hue.InputEnded:Connect(function(input)
  2837. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2838. dragging_hue = false
  2839. colorpicker:RefreshHue()
  2840. end
  2841. end)
  2842.  
  2843. uis.InputChanged:Connect(function(input)
  2844. if dragging_selector and input.UserInputType == Enum.UserInputType.MouseMovement then
  2845. colorpicker:RefreshSelector()
  2846. end
  2847. if dragging_hue and input.UserInputType == Enum.UserInputType.MouseMovement then
  2848. colorpicker:RefreshHue()
  2849. end
  2850. end)
  2851.  
  2852. local inputBegan = function(input)
  2853. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2854. for i,v in pairs(window.OpenedColorPickers) do
  2855. if v and i ~= colorpicker.MainPicker then
  2856. i.Visible = false
  2857. window.OpenedColorPickers[i] = false
  2858. end
  2859. end
  2860.  
  2861. colorpicker.MainPicker.Visible = not colorpicker.MainPicker.Visible
  2862. window.OpenedColorPickers[colorpicker.MainPicker] = colorpicker.MainPicker.Visible
  2863. if window.OpenedColorPickers[colorpicker.MainPicker] then
  2864. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  2865. else
  2866. colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  2867. end
  2868. end
  2869. end
  2870.  
  2871. colorpicker.Main.InputBegan:Connect(inputBegan)
  2872. colorpicker.Outline.InputBegan:Connect(inputBegan)
  2873. colorpicker.BlackOutline2.InputBegan:Connect(inputBegan)
  2874.  
  2875. sector:FixSize()
  2876. table.insert(library.items, colorpicker)
  2877. return colorpicker
  2878. end
  2879.  
  2880. function sector:AddKeybind(text,default,newkeycallback,callback,flag)
  2881. local keybind = { }
  2882.  
  2883. keybind.text = text or ""
  2884. keybind.default = default or "None"
  2885. keybind.callback = callback or function() end
  2886. keybind.newkeycallback = newkeycallback or function(key) end
  2887. keybind.flag = flag or text or ""
  2888.  
  2889. keybind.value = keybind.default
  2890.  
  2891. keybind.Main = Instance.new("TextLabel", sector.Items)
  2892. keybind.Main.BackgroundTransparency = 1
  2893. keybind.Main.Size = UDim2.fromOffset(156, 10)
  2894. keybind.Main.ZIndex = 4
  2895. keybind.Main.Font = window.theme.font
  2896. keybind.Main.Text = keybind.text
  2897. keybind.Main.TextColor3 = window.theme.itemscolor
  2898. keybind.Main.TextSize = 15
  2899. keybind.Main.TextStrokeTransparency = 1
  2900. keybind.Main.TextXAlignment = Enum.TextXAlignment.Left
  2901. updateevent.Event:Connect(function(theme)
  2902. keybind.Main.Font = theme.font
  2903. keybind.Main.TextColor3 = theme.itemscolor
  2904. end)
  2905.  
  2906. keybind.Bind = Instance.new("TextButton", keybind.Main)
  2907. keybind.Bind.Name = "keybind"
  2908. keybind.Bind.BackgroundTransparency = 1
  2909. keybind.Bind.BorderColor3 = window.theme.outlinecolor
  2910. keybind.Bind.ZIndex = 5
  2911. keybind.Bind.BorderSizePixel = 0
  2912. keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10, 0)
  2913. keybind.Bind.Font = window.theme.font
  2914. keybind.Bind.TextColor3 = Color3.fromRGB(136, 136, 136)
  2915. keybind.Bind.TextSize = 15
  2916. keybind.Bind.TextXAlignment = Enum.TextXAlignment.Right
  2917. keybind.Bind.MouseButton1Down:Connect(function()
  2918. keybind.Bind.Text = "[...]"
  2919. keybind.Bind.TextColor3 = window.theme.accentcolor
  2920. end)
  2921. updateevent.Event:Connect(function(theme)
  2922. keybind.Bind.BorderColor3 = theme.outlinecolor
  2923. keybind.Bind.Font = theme.font
  2924. end)
  2925.  
  2926. if keybind.flag and keybind.flag ~= "" then
  2927. library.flags[keybind.flag] = keybind.default
  2928. end
  2929.  
  2930. local shorter_keycodes = {
  2931. ["LeftShift"] = "LSHIFT",
  2932. ["RightShift"] = "RSHIFT",
  2933. ["LeftControl"] = "LCTRL",
  2934. ["RightControl"] = "RCTRL",
  2935. ["LeftAlt"] = "LALT",
  2936. ["RightAlt"] = "RALT"
  2937. }
  2938.  
  2939. function keybind:Set(value)
  2940. if value == "None" then
  2941. keybind.value = value
  2942. keybind.Bind.Text = "[" .. value .. "]"
  2943.  
  2944. local size = textservice:GetTextSize(keybind.Bind.Text, keybind.Bind.TextSize, keybind.Bind.Font, Vector2.new(2000, 2000))
  2945. keybind.Bind.Size = UDim2.fromOffset(size.X, size.Y)
  2946. keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10 - keybind.Bind.AbsoluteSize.X, 0)
  2947. if keybind.flag and keybind.flag ~= "" then
  2948. library.flags[keybind.flag] = value
  2949. end
  2950. pcall(keybind.newkeycallback, value)
  2951. end
  2952.  
  2953. keybind.value = value
  2954. keybind.Bind.Text = "[" .. (shorter_keycodes[value.Name or value] or (value.Name or value)) .. "]"
  2955.  
  2956. local size = textservice:GetTextSize(keybind.Bind.Text, keybind.Bind.TextSize, keybind.Bind.Font, Vector2.new(2000, 2000))
  2957. keybind.Bind.Size = UDim2.fromOffset(size.X, size.Y)
  2958. keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10 - keybind.Bind.AbsoluteSize.X, 0)
  2959. if keybind.flag and keybind.flag ~= "" then
  2960. library.flags[keybind.flag] = value
  2961. end
  2962. pcall(keybind.newkeycallback, value)
  2963. end
  2964. keybind:Set(keybind.default and keybind.default or "None")
  2965.  
  2966. function keybind:Get()
  2967. return keybind.value
  2968. end
  2969.  
  2970. uis.InputBegan:Connect(function(input, gameProcessed)
  2971. if not gameProcessed then
  2972. if keybind.Bind.Text == "[...]" then
  2973. keybind.Bind.TextColor3 = Color3.fromRGB(136, 136, 136)
  2974. if input.UserInputType == Enum.UserInputType.Keyboard then
  2975. keybind:Set(input.KeyCode)
  2976. else
  2977. keybind:Set("None")
  2978. end
  2979. else
  2980. if keybind.value ~= "None" and input.KeyCode == keybind.value then
  2981. pcall(keybind.callback)
  2982. end
  2983. end
  2984. end
  2985. end)
  2986.  
  2987. sector:FixSize()
  2988. table.insert(library.items, keybind)
  2989. return keybind
  2990. end
  2991.  
  2992. function sector:AddDropdown(text, items, default, multichoice, callback, flag)
  2993. local dropdown = { }
  2994.  
  2995. dropdown.text = text or ""
  2996. dropdown.defaultitems = items or { }
  2997. dropdown.default = default
  2998. dropdown.callback = callback or function() end
  2999. dropdown.multichoice = multichoice or false
  3000. dropdown.values = { }
  3001. dropdown.flag = flag or text or ""
  3002.  
  3003. dropdown.MainBack = Instance.new("Frame", sector.Items)
  3004. dropdown.MainBack.Name = "backlabel"
  3005. dropdown.MainBack.ZIndex = 7
  3006. dropdown.MainBack.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 34)
  3007. dropdown.MainBack.BorderSizePixel = 0
  3008. dropdown.MainBack.BackgroundTransparency = 1
  3009.  
  3010. dropdown.Label = Instance.new("TextLabel", dropdown.MainBack)
  3011. dropdown.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3012. dropdown.Label.BackgroundTransparency = 1
  3013. dropdown.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 10)
  3014. dropdown.Label.Position = UDim2.fromOffset(0, 0)
  3015. dropdown.Label.Font = window.theme.font
  3016. dropdown.Label.Text = dropdown.text
  3017. dropdown.Label.ZIndex = 4
  3018. dropdown.Label.TextColor3 = window.theme.itemscolor
  3019. dropdown.Label.TextSize = 15
  3020. dropdown.Label.TextStrokeTransparency = 1
  3021. dropdown.Label.TextXAlignment = Enum.TextXAlignment.Left
  3022.  
  3023. updateevent.Event:Connect(function(theme)
  3024. dropdown.Label.Font = theme.font
  3025. dropdown.Label.TextColor3 = theme.itemscolor
  3026. end)
  3027.  
  3028. dropdown.Main = Instance.new("TextButton", dropdown.MainBack)
  3029. dropdown.Main.Name = "dropdown"
  3030. dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3031. dropdown.Main.BorderSizePixel = 0
  3032. dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16)
  3033. dropdown.Main.Position = UDim2.fromOffset(0, 17)
  3034. dropdown.Main.ZIndex = 5
  3035. dropdown.Main.AutoButtonColor = false
  3036. dropdown.Main.Font = window.theme.font
  3037. dropdown.Main.Text = ""
  3038. dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255)
  3039. dropdown.Main.TextSize = 15
  3040. dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left
  3041. updateevent.Event:Connect(function(theme)
  3042. dropdown.Main.Font = theme.font
  3043. end)
  3044.  
  3045. dropdown.Gradient = Instance.new("UIGradient", dropdown.Main)
  3046. dropdown.Gradient.Rotation = 90
  3047. dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))}
  3048.  
  3049. dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main)
  3050. dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3051. dropdown.SelectedLabel.BackgroundTransparency = 1
  3052. dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2)
  3053. dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13)
  3054. dropdown.SelectedLabel.Font = window.theme.font
  3055. dropdown.SelectedLabel.Text = dropdown.text
  3056. dropdown.SelectedLabel.ZIndex = 5
  3057. dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  3058. dropdown.SelectedLabel.TextSize = 15
  3059. dropdown.SelectedLabel.TextStrokeTransparency = 1
  3060. dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left
  3061. updateevent.Event:Connect(function(theme)
  3062. dropdown.SelectedLabel.Font = theme.font
  3063. end)
  3064.  
  3065. dropdown.Nav = Instance.new("ImageButton", dropdown.Main)
  3066. dropdown.Nav.Name = "navigation"
  3067. dropdown.Nav.BackgroundTransparency = 1
  3068. dropdown.Nav.LayoutOrder = 10
  3069. dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5)
  3070. dropdown.Nav.Rotation = 90
  3071. dropdown.Nav.ZIndex = 5
  3072. dropdown.Nav.Size = UDim2.fromOffset(8, 8)
  3073. dropdown.Nav.Image = "rbxassetid://4918373417"
  3074. dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210)
  3075.  
  3076. dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main)
  3077. dropdown.BlackOutline2.Name = "blackline"
  3078. dropdown.BlackOutline2.ZIndex = 4
  3079. dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6)
  3080. dropdown.BlackOutline2.BorderSizePixel = 0
  3081. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  3082. dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3)
  3083. updateevent.Event:Connect(function(theme)
  3084. dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2
  3085. end)
  3086.  
  3087. dropdown.Outline = Instance.new("Frame", dropdown.Main)
  3088. dropdown.Outline.Name = "blackline"
  3089. dropdown.Outline.ZIndex = 4
  3090. dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4)
  3091. dropdown.Outline.BorderSizePixel = 0
  3092. dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor
  3093. dropdown.Outline.Position = UDim2.fromOffset(-2, -2)
  3094. updateevent.Event:Connect(function(theme)
  3095. dropdown.Outline.BackgroundColor3 = theme.outlinecolor
  3096. end)
  3097.  
  3098. dropdown.BlackOutline = Instance.new("Frame", dropdown.Main)
  3099. dropdown.BlackOutline.Name = "blackline"
  3100. dropdown.BlackOutline.ZIndex = 4
  3101. dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2)
  3102. dropdown.BlackOutline.BorderSizePixel = 0
  3103. dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  3104. dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1)
  3105. updateevent.Event:Connect(function(theme)
  3106. dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2
  3107. end)
  3108.  
  3109. dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main)
  3110. dropdown.ItemsFrame.Name = "itemsframe"
  3111. dropdown.ItemsFrame.BorderSizePixel = 0
  3112. dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  3113. dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  3114. dropdown.ItemsFrame.ScrollBarThickness = 2
  3115. dropdown.ItemsFrame.ZIndex = 8
  3116. dropdown.ItemsFrame.ScrollingDirection = "Y"
  3117. dropdown.ItemsFrame.Visible = false
  3118. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0)
  3119.  
  3120. dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame)
  3121. dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical
  3122. dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  3123.  
  3124. dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame)
  3125. dropdown.ListPadding.PaddingTop = UDim.new(0, 2)
  3126. dropdown.ListPadding.PaddingBottom = UDim.new(0, 2)
  3127. dropdown.ListPadding.PaddingLeft = UDim.new(0, 2)
  3128. dropdown.ListPadding.PaddingRight = UDim.new(0, 2)
  3129.  
  3130. dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main)
  3131. dropdown.BlackOutline2Items.Name = "blackline"
  3132. dropdown.BlackOutline2Items.ZIndex = 7
  3133. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  3134. dropdown.BlackOutline2Items.BorderSizePixel = 0
  3135. dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2
  3136. dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3)
  3137. dropdown.BlackOutline2Items.Visible = false
  3138. updateevent.Event:Connect(function(theme)
  3139. dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2
  3140. end)
  3141.  
  3142. dropdown.OutlineItems = Instance.new("Frame", dropdown.Main)
  3143. dropdown.OutlineItems.Name = "blackline"
  3144. dropdown.OutlineItems.ZIndex = 7
  3145. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  3146. dropdown.OutlineItems.BorderSizePixel = 0
  3147. dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor
  3148. dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2)
  3149. dropdown.OutlineItems.Visible = false
  3150. updateevent.Event:Connect(function(theme)
  3151. dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor
  3152. end)
  3153.  
  3154. dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main)
  3155. dropdown.BlackOutlineItems.Name = "blackline"
  3156. dropdown.BlackOutlineItems.ZIndex = 7
  3157. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2)
  3158. dropdown.BlackOutlineItems.BorderSizePixel = 0
  3159. dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2
  3160. dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1)
  3161. dropdown.BlackOutlineItems.Visible = false
  3162. updateevent.Event:Connect(function(theme)
  3163. dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2
  3164. end)
  3165.  
  3166. dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main)
  3167. dropdown.IgnoreBackButtons.BackgroundTransparency = 1
  3168. dropdown.IgnoreBackButtons.BorderSizePixel = 0
  3169. dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8)
  3170. dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0)
  3171. dropdown.IgnoreBackButtons.ZIndex = 7
  3172. dropdown.IgnoreBackButtons.Text = ""
  3173. dropdown.IgnoreBackButtons.Visible = false
  3174. dropdown.IgnoreBackButtons.AutoButtonColor = false
  3175.  
  3176. if dropdown.flag and dropdown.flag ~= "" then
  3177. library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "")
  3178. end
  3179.  
  3180. function dropdown:isSelected(item)
  3181. for i, v in pairs(dropdown.values) do
  3182. if v == item then
  3183. return true
  3184. end
  3185. end
  3186. return false
  3187. end
  3188.  
  3189. function dropdown:GetOptions()
  3190. return dropdown.values
  3191. end
  3192.  
  3193. function dropdown:updateText(text)
  3194. if #text >= 27 then
  3195. text = text:sub(1, 25) .. ".."
  3196. end
  3197. dropdown.SelectedLabel.Text = text
  3198. end
  3199.  
  3200. dropdown.Changed = Instance.new("BindableEvent")
  3201. function dropdown:Set(value)
  3202. if type(value) == "table" then
  3203. dropdown.values = value
  3204. dropdown:updateText(table.concat(value, ", "))
  3205. pcall(dropdown.callback, value)
  3206. else
  3207. dropdown:updateText(value)
  3208. dropdown.values = { value }
  3209. pcall(dropdown.callback, value)
  3210. end
  3211.  
  3212. dropdown.Changed:Fire(value)
  3213. if dropdown.flag and dropdown.flag ~= "" then
  3214. library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1]
  3215. end
  3216. end
  3217.  
  3218. function dropdown:Get()
  3219. return dropdown.multichoice and dropdown.values or dropdown.values[1]
  3220. end
  3221.  
  3222. dropdown.items = { }
  3223. function dropdown:Add(v)
  3224. local Item = Instance.new("TextButton", dropdown.ItemsFrame)
  3225. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  3226. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  3227. Item.BorderSizePixel = 0
  3228. Item.Position = UDim2.fromOffset(0, 0)
  3229. Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20)
  3230. Item.ZIndex = 9
  3231. Item.Text = v
  3232. Item.Name = v
  3233. Item.AutoButtonColor = false
  3234. Item.Font = window.theme.font
  3235. Item.TextSize = 15
  3236. Item.TextXAlignment = Enum.TextXAlignment.Left
  3237. Item.TextStrokeTransparency = 1
  3238. dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y)
  3239.  
  3240. Item.MouseButton1Down:Connect(function()
  3241. if dropdown.multichoice then
  3242. if dropdown:isSelected(v) then
  3243. for i2, v2 in pairs(dropdown.values) do
  3244. if v2 == v then
  3245. table.remove(dropdown.values, i2)
  3246. end
  3247. end
  3248. dropdown:Set(dropdown.values)
  3249. else
  3250. table.insert(dropdown.values, v)
  3251. dropdown:Set(dropdown.values)
  3252. end
  3253.  
  3254. return
  3255. else
  3256. dropdown.Nav.Rotation = 90
  3257. dropdown.ItemsFrame.Visible = false
  3258. dropdown.ItemsFrame.Active = false
  3259. dropdown.OutlineItems.Visible = false
  3260. dropdown.BlackOutlineItems.Visible = false
  3261. dropdown.BlackOutline2Items.Visible = false
  3262. dropdown.IgnoreBackButtons.Visible = false
  3263. dropdown.IgnoreBackButtons.Active = false
  3264. end
  3265.  
  3266. dropdown:Set(v)
  3267. return
  3268. end)
  3269.  
  3270. runservice.RenderStepped:Connect(function()
  3271. if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then
  3272. Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64)
  3273. Item.TextColor3 = window.theme.accentcolor
  3274. Item.Text = " " .. v
  3275. else
  3276. Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  3277. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  3278. Item.Text = v
  3279. end
  3280. end)
  3281.  
  3282. table.insert(dropdown.items, v)
  3283. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4)
  3284. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4)
  3285.  
  3286. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  3287. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  3288. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  3289. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  3290. end
  3291.  
  3292. function dropdown:Remove(value)
  3293. local item = dropdown.ItemsFrame:FindFirstChild(value)
  3294. if item then
  3295. for i,v in pairs(dropdown.items) do
  3296. if v == value then
  3297. table.remove(dropdown.items, i)
  3298. end
  3299. end
  3300.  
  3301. dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4)
  3302. dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4)
  3303.  
  3304. dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2)
  3305. dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4)
  3306. dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6)
  3307. dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size
  3308.  
  3309. item:Remove()
  3310. end
  3311. end
  3312.  
  3313. for i,v in pairs(dropdown.defaultitems) do
  3314. dropdown:Add(v)
  3315. end
  3316.  
  3317. if dropdown.default then
  3318. dropdown:Set(dropdown.default)
  3319. end
  3320.  
  3321. local MouseButton1Down = function()
  3322. if dropdown.Nav.Rotation == 90 then
  3323. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play()
  3324. if dropdown.items and #dropdown.items ~= 0 then
  3325. dropdown.ItemsFrame.ScrollingEnabled = true
  3326. sector.Main.Parent.ScrollingEnabled = false
  3327. dropdown.ItemsFrame.Visible = true
  3328. dropdown.ItemsFrame.Active = true
  3329. dropdown.IgnoreBackButtons.Visible = true
  3330. dropdown.IgnoreBackButtons.Active = true
  3331. dropdown.OutlineItems.Visible = true
  3332. dropdown.BlackOutlineItems.Visible = true
  3333. dropdown.BlackOutline2Items.Visible = true
  3334. end
  3335. else
  3336. tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play()
  3337. dropdown.ItemsFrame.ScrollingEnabled = false
  3338. sector.Main.Parent.ScrollingEnabled = true
  3339. dropdown.ItemsFrame.Visible = false
  3340. dropdown.ItemsFrame.Active = false
  3341. dropdown.IgnoreBackButtons.Visible = false
  3342. dropdown.IgnoreBackButtons.Active = false
  3343. dropdown.OutlineItems.Visible = false
  3344. dropdown.BlackOutlineItems.Visible = false
  3345. dropdown.BlackOutline2Items.Visible = false
  3346. end
  3347. end
  3348.  
  3349. dropdown.Main.MouseButton1Down:Connect(MouseButton1Down)
  3350. dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down)
  3351.  
  3352. dropdown.BlackOutline2.MouseEnter:Connect(function()
  3353. dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor
  3354. end)
  3355. dropdown.BlackOutline2.MouseLeave:Connect(function()
  3356. dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2
  3357. end)
  3358.  
  3359. sector:FixSize()
  3360. table.insert(library.items, dropdown)
  3361. return dropdown
  3362. end
  3363.  
  3364. function sector:AddSeperator(text)
  3365. local seperator = { }
  3366. seperator.text = text or ""
  3367.  
  3368. seperator.main = Instance.new("Frame", sector.Items)
  3369. seperator.main.Name = "Main"
  3370. seperator.main.ZIndex = 5
  3371. seperator.main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 10)
  3372. seperator.main.BorderSizePixel = 0
  3373. seperator.main.BackgroundTransparency = 1
  3374.  
  3375. seperator.line = Instance.new("Frame", seperator.main)
  3376. seperator.line.Name = "Line"
  3377. seperator.line.ZIndex = 7
  3378. seperator.line.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  3379. seperator.line.BorderSizePixel = 0
  3380. seperator.line.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 1)
  3381. seperator.line.Position = UDim2.fromOffset(7, 5)
  3382.  
  3383. seperator.outline = Instance.new("Frame", seperator.line)
  3384. seperator.outline.Name = "Outline"
  3385. seperator.outline.ZIndex = 6
  3386. seperator.outline.BorderSizePixel = 0
  3387. seperator.outline.BackgroundColor3 = window.theme.outlinecolor2
  3388. seperator.outline.Position = UDim2.fromOffset(-1, -1)
  3389. seperator.outline.Size = seperator.line.Size - UDim2.fromOffset(-2, -2)
  3390. updateevent.Event:Connect(function(theme)
  3391. seperator.outline.BackgroundColor3 = theme.outlinecolor2
  3392. end)
  3393.  
  3394. seperator.label = Instance.new("TextLabel", seperator.main)
  3395. seperator.label.Name = "Label"
  3396. seperator.label.BackgroundTransparency = 1
  3397. seperator.label.Size = seperator.main.Size
  3398. seperator.label.Font = window.theme.font
  3399. seperator.label.ZIndex = 8
  3400. seperator.label.Text = seperator.text
  3401. seperator.label.TextColor3 = Color3.fromRGB(255, 255, 255)
  3402. seperator.label.TextSize = window.theme.fontsize
  3403. seperator.label.TextStrokeTransparency = 1
  3404. seperator.label.TextXAlignment = Enum.TextXAlignment.Center
  3405. updateevent.Event:Connect(function(theme)
  3406. seperator.label.Font = theme.font
  3407. seperator.label.TextSize = theme.fontsize
  3408. end)
  3409.  
  3410. local textSize = textservice:GetTextSize(seperator.text, window.theme.fontsize, window.theme.font, Vector2.new(2000, 2000))
  3411. local textStart = seperator.main.AbsoluteSize.X / 2 - (textSize.X / 2)
  3412.  
  3413. sector.LabelBackFrame = Instance.new("Frame", seperator.main)
  3414. sector.LabelBackFrame.Name = "LabelBack"
  3415. sector.LabelBackFrame.ZIndex = 7
  3416. sector.LabelBackFrame.Size = UDim2.fromOffset(textSize.X + 12, 10)
  3417. sector.LabelBackFrame.BorderSizePixel = 0
  3418. sector.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  3419. sector.LabelBackFrame.Position = UDim2.new(0, textStart - 6, 0, 0)
  3420. updateevent.Event:Connect(function(theme)
  3421. textSize = textservice:GetTextSize(seperator.text, theme.fontsize, theme.font, Vector2.new(2000, 2000))
  3422. textStart = seperator.main.AbsoluteSize.X / 2 - (textSize.X / 2)
  3423.  
  3424. sector.LabelBackFrame.Size = UDim2.fromOffset(textSize.X + 12, 10)
  3425. sector.LabelBackFrame.Position = UDim2.new(0, textStart - 6, 0, 0)
  3426. end)
  3427.  
  3428. sector:FixSize()
  3429. return seperator
  3430. end
  3431.  
  3432. return sector
  3433. end
  3434.  
  3435. function tab:CreateConfigSystem(side)
  3436. local configSystem = { }
  3437.  
  3438. configSystem.configFolder = window.name .. "/" .. tostring(game.PlaceId)
  3439. if (not isfolder(configSystem.configFolder)) then
  3440. makefolder(configSystem.configFolder)
  3441. end
  3442.  
  3443. configSystem.sector = tab:CreateSector("Configs", side or "left")
  3444.  
  3445. local ConfigName = configSystem.sector:AddTextbox("Config Name", "", ConfigName, function() end, "")
  3446. local default = tostring(listfiles(configSystem.configFolder)[1] or ""):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")
  3447. local Config = configSystem.sector:AddDropdown("Configs", {}, default, false, function() end, "")
  3448. for i,v in pairs(listfiles(configSystem.configFolder)) do
  3449. if v:find(".txt") then
  3450. Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", ""))
  3451. end
  3452. end
  3453.  
  3454. configSystem.Create = configSystem.sector:AddButton("Create", function()
  3455. for i,v in pairs(listfiles(configSystem.configFolder)) do
  3456. Config:Remove(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", ""))
  3457. end
  3458.  
  3459. if ConfigName:Get() and ConfigName:Get() ~= "" then
  3460. local config = {}
  3461.  
  3462. for i,v in pairs(library.flags) do
  3463. if (v ~= nil and v ~= "") then
  3464. if (typeof(v) == "Color3") then
  3465. config[i] = { v.R, v.G, v.B }
  3466. elseif (tostring(v):find("Enum.KeyCode")) then
  3467. config[i] = v.Name
  3468. elseif (typeof(v) == "table") then
  3469. config[i] = { v }
  3470. else
  3471. config[i] = v
  3472. end
  3473. end
  3474. end
  3475.  
  3476. writefile(configSystem.configFolder .. "/" .. ConfigName:Get() .. ".txt", httpservice:JSONEncode(config))
  3477.  
  3478. for i,v in pairs(listfiles(configSystem.configFolder)) do
  3479. if v:find(".txt") then
  3480. Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", ""))
  3481. end
  3482. end
  3483. end
  3484. end)
  3485.  
  3486. configSystem.Save = configSystem.sector:AddButton("Save", function()
  3487. local config = {}
  3488. if Config:Get() and Config:Get() ~= "" then
  3489. for i,v in pairs(library.flags) do
  3490. if (v ~= nil and v ~= "") then
  3491. if (typeof(v) == "Color3") then
  3492. config[i] = { v.R, v.G, v.B }
  3493. elseif (tostring(v):find("Enum.KeyCode")) then
  3494. config[i] = "Enum.KeyCode." .. v.Name
  3495. elseif (typeof(v) == "table") then
  3496. config[i] = { v }
  3497. else
  3498. config[i] = v
  3499. end
  3500. end
  3501. end
  3502.  
  3503. writefile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt", httpservice:JSONEncode(config))
  3504. end
  3505. end)
  3506.  
  3507. configSystem.Load = configSystem.sector:AddButton("Load", function()
  3508. local Success = pcall(readfile, configSystem.configFolder .. "/" .. Config:Get() .. ".txt")
  3509. if (Success) then
  3510. pcall(function()
  3511. local ReadConfig = httpservice:JSONDecode(readfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt"))
  3512. local NewConfig = {}
  3513.  
  3514. for i,v in pairs(ReadConfig) do
  3515. if (typeof(v) == "table") then
  3516. if (typeof(v[1]) == "number") then
  3517. NewConfig[i] = Color3.new(v[1], v[2], v[3])
  3518. elseif (typeof(v[1]) == "table") then
  3519. NewConfig[i] = v[1]
  3520. end
  3521. elseif (tostring(v):find("Enum.KeyCode.")) then
  3522. NewConfig[i] = Enum.KeyCode[tostring(v):gsub("Enum.KeyCode.", "")]
  3523. else
  3524. NewConfig[i] = v
  3525. end
  3526. end
  3527.  
  3528. library.flags = NewConfig
  3529.  
  3530. for i,v in pairs(library.flags) do
  3531. for i2,v2 in pairs(library.items) do
  3532. if (i ~= nil and i ~= "" and i ~= "Configs_Name" and i ~= "Configs" and v2.flag ~= nil) then
  3533. if (v2.flag == i) then
  3534. pcall(function()
  3535. v2:Set(v)
  3536. end)
  3537. end
  3538. end
  3539. end
  3540. end
  3541. end)
  3542. end
  3543. end)
  3544.  
  3545. configSystem.Delete = configSystem.sector:AddButton("Delete", function()
  3546. for i,v in pairs(listfiles(configSystem.configFolder)) do
  3547. Config:Remove(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", ""))
  3548. end
  3549.  
  3550. if (not Config:Get() or Config:Get() == "") then return end
  3551. if (not isfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt")) then return end
  3552. delfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt")
  3553.  
  3554. for i,v in pairs(listfiles(configSystem.configFolder)) do
  3555. if v:find(".txt") then
  3556. Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", ""))
  3557. end
  3558. end
  3559. end)
  3560.  
  3561. return configSystem
  3562. end
  3563.  
  3564. --[[ not finished lol
  3565. function tab:CreatePlayerlist(name)
  3566. local list = { }
  3567. list.name = name or ""
  3568.  
  3569. list.Main = Instance.new("Frame", tab.TabPage)
  3570. list.Main.Name = list.name:gsub(" ", "") .. "Sector"
  3571. list.Main.BorderColor3 = window.theme.outlinecolor
  3572. list.Main.ZIndex = 2
  3573. list.Main.Size = UDim2.fromOffset(window.size.X.Offset - 22, 220)
  3574. list.Main.BackgroundColor3 = window.theme.sectorcolor
  3575. list.Main.Position = UDim2.new(0, 11, 0, 12)
  3576.  
  3577. tab.SectorsLeft[#tab.SectorsLeft + 1] = 220
  3578. --tab.SectorsRight[#tab.SectorsLeft + 1].space = 220
  3579.  
  3580. list.Line = Instance.new("Frame", list.Main)
  3581. list.Line.Name = "line"
  3582. list.Line.ZIndex = 2
  3583. list.Line.Size = UDim2.fromOffset(list.Main.Size.X.Offset + 2, 1)
  3584. list.Line.BorderSizePixel = 0
  3585. list.Line.Position = UDim2.fromOffset(-1, -1)
  3586. list.Line.BackgroundColor3 = window.theme.accentcolor
  3587.  
  3588. list.BlackOutline = Instance.new("Frame", list.Main)
  3589. list.BlackOutline.Name = "blackline"
  3590. list.BlackOutline.ZIndex = 1
  3591. list.BlackOutline.Size = list.Main.Size + UDim2.fromOffset(4, 4)
  3592. list.BlackOutline.BorderSizePixel = 0
  3593. list.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2
  3594. list.BlackOutline.Position = UDim2.fromOffset(-2, -2)
  3595.  
  3596. local size = textservice:GetTextSize(list.name, 13, window.theme.font, Vector2.new(2000, 2000))
  3597. list.Label = Instance.new("TextLabel", list.Main)
  3598. list.Label.AnchorPoint = Vector2.new(0,0.5)
  3599. list.Label.Position = UDim2.fromOffset(12, -1)
  3600. list.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(list.name, 13, window.theme.font, Vector2.new(200,300)).X + 10, 0, list.Main.Size.X.Offset), size.Y)
  3601. list.Label.BackgroundTransparency = 1
  3602. list.Label.BorderSizePixel = 0
  3603. list.Label.ZIndex = 4
  3604. list.Label.Text = list.name
  3605. list.Label.TextColor3 = Color3.new(1,1,2552/255)
  3606. list.Label.TextStrokeTransparency = 1
  3607. list.Label.Font = window.theme.font
  3608. list.Label.TextSize = 13
  3609.  
  3610. list.LabelBackFrame = Instance.new("Frame", list.Label)
  3611. list.LabelBackFrame.Name = "labelframe"
  3612. list.LabelBackFrame.ZIndex = 3
  3613. list.LabelBackFrame.Size = UDim2.fromOffset(list.Label.Size.X.Offset, 10)
  3614. list.LabelBackFrame.BorderSizePixel = 0
  3615. list.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  3616. list.LabelBackFrame.Position = UDim2.fromOffset(0, 6)
  3617.  
  3618. list.Items = Instance.new("ScrollingFrame", list.Main)
  3619. list.Items.Name = "items"
  3620. list.Items.ZIndex = 2
  3621. list.Items.ScrollBarThickness = 1
  3622. list.Items.BackgroundTransparency = 1
  3623. list.Items.Size = list.Main.Size - UDim2.fromOffset(10, 15)
  3624. list.Items.ScrollingDirection = "Y"
  3625. list.Items.BorderSizePixel = 0
  3626. list.Items.Position = UDim2.fromOffset(5, 10)
  3627. list.Items.CanvasSize = list.Items.Size
  3628.  
  3629. list.ListLayout = Instance.new("UIListLayout", list.Items)
  3630. list.ListLayout.FillDirection = Enum.FillDirection.Vertical
  3631. list.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  3632. list.ListLayout.Padding = UDim.new(0, 0)
  3633.  
  3634. list.ListPadding = Instance.new("UIPadding", list.Items)
  3635. list.ListPadding.PaddingTop = UDim.new(0, 2)
  3636. list.ListPadding.PaddingLeft = UDim.new(0, 6)
  3637. list.ListPadding.PaddingRight = UDim.new(0, 6)
  3638.  
  3639. list.items = { }
  3640. function list:AddPlayer(Player)
  3641. local player = { }
  3642.  
  3643. player.Main = Instance.new("Frame", list.Items)
  3644. player.Main.Name = Player.Name
  3645. player.Main.BorderColor3 = window.theme.outlinecolor
  3646. player.Main.ZIndex = 3
  3647. player.Main.Size = UDim2.fromOffset(list.Items.AbsoluteSize.X - 12, 20)
  3648. player.Main.BackgroundColor3 = window.theme.sectorcolor
  3649. player.Main.Position = UDim2.new(0, 0, 0, 0)
  3650.  
  3651. table.insert(list.items, Player)
  3652. list.Items.CanvasSize = UDim2.fromOffset(list.Items.AbsoluteSize.X, (#list.items * 20))
  3653. list.Items.Size = UDim2.fromOffset(list.Items.AbsoluteSize.X, math.clamp(list.Items.CanvasSize.Y.Offset, 0, 205))
  3654. return player
  3655. end
  3656.  
  3657. function list:RemovePlayer(Player)
  3658. local p = list.Items:FindFirstChild(Player)
  3659. if p then
  3660. for i,v in pairs(list.items) do
  3661. if v == Player then
  3662. table.remove(list.items, i)
  3663. end
  3664. end
  3665.  
  3666. p:Remove()
  3667. list.Items.CanvasSize = UDim2.fromOffset(list.Items.AbsoluteSize.X, (#list.items * 90))
  3668. end
  3669. end
  3670.  
  3671. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3672. list:AddPlayer(v)
  3673. end
  3674.  
  3675. game:GetService("Players").PlayerAdded:Connect(function(v)
  3676. list:AddPlayer(v)
  3677. end)
  3678.  
  3679. return list
  3680. end
  3681. ]]--
  3682.  
  3683. table.insert(window.Tabs, tab)
  3684. return tab
  3685. end
  3686.  
  3687. return window
  3688. end
  3689.  
  3690. local Version = {
  3691. Value = "0.0.1"
  3692. }
  3693.  
  3694. local target_aim = {
  3695. Aiming = {
  3696. Target = {
  3697. Enabled = nil,
  3698. Key = nil,
  3699. Prediction = nil,
  3700. Radius = nil,
  3701. TargetPart = nil,
  3702. Alerts = nil,
  3703. JumpOffset = nil,
  3704. TargetStats = nil,
  3705. LookAt = nil
  3706. }
  3707. }
  3708. }
  3709.  
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715. local NotifyLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))()
  3716. local Notify = NotifyLibrary.Notify
  3717. local Window = library:CreateWindow("Azure Rewrite | Mobile", Vector2.new(400, 550), Enum.KeyCode.RightShift)
  3718.  
  3719. local AimingTab = Window:CreateTab("Main")
  3720. local MiscTab = Window:CreateTab("Misc")
  3721. local ExtraTab = Window:CreateTab("Extra")
  3722.  
  3723. local MovementTab = MiscTab:CreateSector("Movement", "left")
  3724. local MiscSec = MiscTab:CreateSector("miscellaneous","left")
  3725. local FakeAnimationsSec = MiscTab:CreateSector("Fake Animations", "left")
  3726. local AASec = MiscTab:CreateSector("Anti Lock", "right")
  3727.  
  3728. local UtilitiesSec = AimingTab:CreateSector("Utilities", "left")
  3729. local TargetLockSection = AimingTab:CreateSector("Target", "left")
  3730. local AimingLockSection = AimingTab:CreateSector("Aim Assist", "right")
  3731.  
  3732. MiscSec:AddToggle("AntiFling", false, function(parameter)
  3733. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = parameter
  3734. end)
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740. FakeAnimationsSec:AddDropdown("Run", {"None","Rthro", "Zombie","Werewolf","Ninja","Toy","Superhero","OldSchool","Cartoony","Stylish","Vampire"}, "None", false, function(dropdown)
  3741. zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = dropdown
  3742. end)
  3743.  
  3744. game:GetService("RunService").Stepped:Connect(function ()
  3745. if zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "None" then
  3746. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Rthro" then
  3747. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=2510198475"
  3748. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Werewolf" then
  3749. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=1083216690"
  3750. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Zombie" then
  3751. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616163682"
  3752. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Ninja" then
  3753. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=656118852"
  3754. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Toy" then
  3755. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=782842708"
  3756. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Superhero" then
  3757. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616117076"
  3758. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "OldSchool" then
  3759. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=5319844329"
  3760. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Cartoony" then
  3761. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=742638842"
  3762. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Stylish" then
  3763. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616140816"
  3764. elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Vampire" then
  3765. player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=1083462077"
  3766. end
  3767. end)
  3768.  
  3769. local SpeedBindxd = MovementTab:AddToggle("Speed", false, function(parameter)
  3770. speedenablelolol = parameter
  3771. end)
  3772.  
  3773. SpeedBindxd:AddKeybind()
  3774.  
  3775. spawn(function()
  3776. runservice.Heartbeat:Connect(function()
  3777. if speedenablelolol == true then
  3778. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame + player.Character.Humanoid.MoveDirection * SpeedValue
  3779. end
  3780. end)
  3781. end)
  3782.  
  3783. MovementTab:AddSlider("Speed Amount", 1,1,5000,10, function(State)
  3784. SpeedValue = State/1000
  3785. end)
  3786.  
  3787. MovementTab:AddToggle("Auto Jump", false, function(parameter)
  3788. AutoJumpXDlOLOLOL = parameter
  3789. end)
  3790.  
  3791. local targewttstrafebind = MovementTab:AddToggle("Target Strafe", false, function(parameter)
  3792. targetstrafeenabled = parameter
  3793. end)
  3794.  
  3795. targewttstrafebind:AddKeybind()
  3796.  
  3797. MovementTab:AddSlider("Speed", 1,0,10,100, function(State)
  3798. speedtargetlocks = State
  3799. end)
  3800.  
  3801. MovementTab:AddSlider("Distance", 1,0,20,100, function(State)
  3802. distancetargetlol = State
  3803. end)
  3804.  
  3805. MovementTab:AddSlider("Height", 1,0,20,100, function(State)
  3806. heighttargetlol = State
  3807. end)
  3808.  
  3809. local FlightBindxdxd = MovementTab:AddToggle("Flight", false, function(parameter)
  3810. if parameter then
  3811. FlyLoop = game:GetService("RunService").Stepped:Connect(function()
  3812. spawn(function()
  3813. pcall(function()
  3814. local speed = FlySpeed
  3815. local velocity = Vector3.new(0, 1, 0)
  3816. local UserInputService = game:GetService("UserInputService")
  3817.  
  3818. if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  3819. velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.lookVector * speed)
  3820. end
  3821. if UserInputService:IsKeyDown(Enum.KeyCode.A) then
  3822. velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.rightVector * -speed)
  3823. end
  3824. if UserInputService:IsKeyDown(Enum.KeyCode.S) then
  3825. velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.lookVector * -speed)
  3826. end
  3827. if UserInputService:IsKeyDown(Enum.KeyCode.D) then
  3828. velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.rightVector * speed)
  3829. end
  3830.  
  3831. player.Character.HumanoidRootPart.Velocity = velocity
  3832. player.Character.Humanoid:ChangeState("Freefall")
  3833. end)
  3834. end)
  3835. end)
  3836. elseif parameter == false and FlyLoop then
  3837. FlyLoop:Disconnect()
  3838. player.Character.Humanoid:ChangeState("Landing")
  3839. end
  3840. end)
  3841.  
  3842. FlightBindxdxd:AddKeybind()
  3843.  
  3844. MovementTab:AddSlider("Speed", 1,1,5000,1, function(State)
  3845. FlySpeed = State/1000*50
  3846. end)
  3847.  
  3848. spawn(function()
  3849. runservice.Heartbeat:Connect(function()
  3850. if targetstrafeenabled and target_aim.Aiming.Target.Enabled and TargetAimEnabled then
  3851. aroundtarget(speedtargetlocks,distancetargetlol,heighttargetlol,AZURE_TmKALRSX)
  3852. end
  3853. end)
  3854. end)
  3855.  
  3856. AASec:AddButton("Force Reset",function()
  3857. for _,parts in pairs(player.Character:GetChildren()) do
  3858. if parts:IsA("BasePart") then
  3859. parts:Destroy()
  3860. end
  3861. end
  3862. end)
  3863.  
  3864. local AABindLOL = AASec:AddToggle("Enable", false, function(parameter)
  3865. aaenabled = parameter
  3866. end)
  3867.  
  3868. AABindLOL:AddKeybind()
  3869.  
  3870. AASec:AddDropdown("Mode", {"Custom","Prediction Changer", "Prediction Disabler","Up","Down","AirOrthodox","Prediction Multiplier", "Spinbot Desync"}, "Custom", false, function(dropdown)
  3871. aamodex = dropdown
  3872. end)
  3873.  
  3874. AASec:AddSlider("Custom X", -10000,10000,10000,1, function(State)
  3875. x_val = State
  3876. end)
  3877.  
  3878. AASec:AddSlider("Custom Y", -10000,10000,10000,1, function(State)
  3879. y_val = State
  3880. end)
  3881.  
  3882. AASec:AddSlider("Custom Z", -10000,10000,10000,1, function(State)
  3883. z_val = State
  3884. end)
  3885. AASec:AddLabel""
  3886. AASec:AddSlider("Prediction Changer", -20,5,20,1, function(State)
  3887. Custom123 = State
  3888. end)
  3889.  
  3890. AASec:AddLabel""
  3891.  
  3892. AASec:AddSlider("Desync Angles", -1000,1000,1000,1, function(State)
  3893. DesyncAngles = State
  3894. end)
  3895.  
  3896. local heartbeat = game:GetService("RunService").Heartbeat
  3897. local renderstepped = game:GetService("RunService").RenderStepped
  3898. local stepped = game:GetService("RunService").Stepped
  3899. local v3 = Vector3.new
  3900. local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart
  3901. local lp = game.Players.LocalPlayer
  3902.  
  3903. spawn(function()
  3904. heartbeat:Connect(function()
  3905. if player.Character.Humanoid.Health <= 10 then
  3906. AABindLOL:Set(false)
  3907. end
  3908. end)
  3909. end)
  3910.  
  3911. spawn(function()
  3912. local hrp, c, vel, movel = nil, nil, nil, 0.1
  3913. c = lp.Character
  3914. hrp = lp.Character.HumanoidRootPart
  3915. while true do
  3916. heartbeat:Wait()
  3917. while aaenabled and not (c and c.Parent and hrp and hrp.Parent) do
  3918. heartbeat:Wait()
  3919. c = lp.Character
  3920. hrp = lp.Character.HumanoidRootPart
  3921. end
  3922. if aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Custom" then
  3923. vel = hrp.Velocity
  3924. hrp.Velocity = vel*-0+v3(x_val,y_val,z_val)
  3925. renderstepped:Wait()
  3926. hrp.Velocity = vel
  3927. stepped:Wait()
  3928. if c and c.Parent and hrp and hrp.Parent then
  3929. hrp.Velocity = vel + v3(0, movel, 0)
  3930. movel = movel * -1
  3931. end
  3932. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Changer" then
  3933. vel = hrp.Velocity
  3934. hrp.Velocity = vel*Custom123+v3(0,0,0)
  3935. renderstepped:Wait()
  3936. hrp.Velocity = vel
  3937. stepped:Wait()
  3938. if c and c.Parent and hrp and hrp.Parent then
  3939. hrp.Velocity = vel + v3(0, movel, 0)
  3940. movel = movel * -1
  3941. end
  3942.  
  3943. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Disabler" then
  3944. vel = hrp.Velocity
  3945. hrp.Velocity = vel*-0+v3(-0,-0,-0)
  3946. renderstepped:Wait()
  3947. hrp.Velocity = vel
  3948. stepped:Wait()
  3949. if c and c.Parent and hrp and hrp.Parent then
  3950. hrp.Velocity = vel + v3(0, movel, 0)
  3951. movel = movel * -1
  3952. end
  3953. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Up" then
  3954. vel = hrp.Velocity
  3955. hrp.Velocity = vel*-0+v3(-0,10000000000000000000,-0)
  3956. renderstepped:Wait()
  3957. hrp.Velocity = vel
  3958. stepped:Wait()
  3959. if c and c.Parent and hrp and hrp.Parent then
  3960. hrp.Velocity = vel + v3(0, movel, 0)
  3961. movel = movel * -1
  3962. end
  3963. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Down" then
  3964. vel = hrp.Velocity
  3965. hrp.Velocity = vel*-0+v3(-0,-10000000000000000000,-0)
  3966. renderstepped:Wait()
  3967. hrp.Velocity = vel
  3968. stepped:Wait()
  3969. if c and c.Parent and hrp and hrp.Parent then
  3970. hrp.Velocity = vel + v3(0, movel, 0)
  3971. movel = movel * -1
  3972. end
  3973. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "AirOrthodox" then
  3974. vel = hrp.Velocity
  3975. hrp.Velocity = vel*1+v3(77,77,77)
  3976. renderstepped:Wait()
  3977. hrp.Velocity = vel
  3978. stepped:Wait()
  3979. if c and c.Parent and hrp and hrp.Parent then
  3980. hrp.Velocity = vel + v3(0, movel, 0)
  3981. movel = movel * -1
  3982. end
  3983. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Multiplier" then
  3984. vel = hrp.Velocity
  3985. hrp.Velocity = vel*7+v3(0,0,0)
  3986. renderstepped:Wait()
  3987. hrp.Velocity = vel
  3988. stepped:Wait()
  3989. if c and c.Parent and hrp and hrp.Parent then
  3990. hrp.Velocity = vel + v3(0, movel, 0)
  3991. movel = movel * -1
  3992. end
  3993. elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Spinbot Desync" then
  3994. vel = hrp.Velocity
  3995. hrp.Velocity = vel * 0 + v3(0,10000000000000000000,0)
  3996. renderstepped:Wait()
  3997. if c and c.Parent and hrp and hrp.Parent then
  3998. hrp.Velocity = vel
  3999. end
  4000. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(DesyncAngles), 0)
  4001. end
  4002. end
  4003. end)
  4004.  
  4005.  
  4006.  
  4007. spawn(function()
  4008. runservice.Heartbeat:Connect(function()
  4009. if AutoJumpXDlOLOLOL == true and player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and player.Character.Humanoid.MoveDirection.Magnitude > 0 then
  4010. player.Character.Humanoid:ChangeState("Jumping")
  4011. settotruexdxd:Set(true)
  4012. end
  4013.  
  4014. end)
  4015. end)
  4016.  
  4017. settotruexdxd = UtilitiesSec:AddToggle("No Jump Cooldown", false, function(parameter)
  4018. nn_nojumpcooldown = parameter
  4019. end)
  4020.  
  4021. spawn(function()
  4022. runservice.Heartbeat:Connect(function()
  4023. if nn_nojumpcooldown then
  4024. player.Character.Humanoid.UseJumpPower = false
  4025. else
  4026. player.Character.Humanoid.UseJumpPower = true
  4027. end
  4028. end)
  4029. end)
  4030.  
  4031. UtilitiesSec:AddToggle("No Slowdown", false, function(parameter)
  4032. nn_noslowdown = parameter
  4033. end)
  4034.  
  4035. spawn(function()
  4036. runservice.Heartbeat:Connect(function()
  4037. if nn_noslowdown then
  4038. local bodyeffectsBounderies = player.Character.BodyEffects.Movement:FindFirstChild('NoJumping') or player.Character.BodyEffects.Movement:FindFirstChild('ReduceWalk') or player.Character.BodyEffects.Movement:FindFirstChild('NoWalkSpeed')
  4039. if bodyeffectsBounderies then
  4040. bodyeffectsBounderies:Destroy()
  4041. end
  4042. if player.Character.BodyEffects.Reload.Value == true then
  4043. player.Character.BodyEffects.Reload.Value = false
  4044. end
  4045. end
  4046. end)
  4047. end)
  4048.  
  4049. AimingLockSection:AddToggle("Enabled", false, function(parameter)
  4050. aimbotenab = parameter
  4051. end)
  4052.  
  4053. AimingLockSection:AddKeybind("Keybind",nil,function (val)
  4054. botbindlol = val
  4055. end)
  4056.  
  4057. AimingLockSection:AddTextbox("Prediction", nil, function(State)
  4058. aimbotprediction = State
  4059. end)
  4060.  
  4061. AimingLockSection:AddDropdown("Aim-Part", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso"}, "HumanoidRootPart", false, function(dropdown)
  4062. oldvallol = dropdown
  4063. end)
  4064.  
  4065. AimingLockSection:AddToggle("Smoothing", false, function(parameter)
  4066. SmoothingEnabLOLL = parameter
  4067. end)
  4068.  
  4069. AimingLockSection:AddTextbox("Smoothing", nil, function(State)
  4070. SmoothingValIg = State
  4071. end)
  4072.  
  4073. AimingLockSection:AddDropdown("Smoothing Style", {"Linear", "Sine", "Back", "Quad","Quart", "Quint", "Bounce", "Elastic","Exponential", "Circular", "Cubic"}, "Linear", false, function(dropdown)
  4074. smoothingtypexd = dropdown
  4075. end)
  4076.  
  4077. AimingLockSection:AddDropdown("Smoothing Direction", {"In", "Out", "InOut"}, "InOut", false, function(dropdown)
  4078. easingdirectionxdxlol = dropdown
  4079. end)
  4080.  
  4081. AimingLockSection:AddToggle("Jump Part", false, function(parameter)
  4082. jumppartthingy = parameter
  4083. end)
  4084.  
  4085.  
  4086. AimingLockSection:AddDropdown("Jump Part Value", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso","RightUpperLeg","RightLowerLeg","RightFoot","LeftUpperLeg","LeftLowerLeg","LeftFoot"}, "RightFoot", false, function(dropdown)
  4087. jumppartvaluesxd = dropdown
  4088. end)
  4089.  
  4090. spawn(function()
  4091. runservice.Stepped:Connect(function()
  4092. if AZURE_TmKALxRxSX.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  4093. aimbotpartxd = jumppartvaluesxd
  4094. else
  4095. aimbotpartxd = oldvallol
  4096. end
  4097. end)
  4098. end)
  4099.  
  4100. spawn(function()
  4101. uis.InputBegan:Connect(function (input)
  4102. if input.KeyCode == botbindlol then
  4103. AimbotBindEnabled = not AimbotBindEnabled
  4104. if AimbotBindEnabled then
  4105. AZURE_TmKALxRxSX = targetchosen()
  4106. end
  4107. end
  4108. end)
  4109. end)
  4110.  
  4111.  
  4112.  
  4113. TargetLockSection:AddToggle("Enabled", false, function(parameter)
  4114. target_aim.Aiming.Target.Enabled = parameter
  4115. end)
  4116.  
  4117. TargetLockSection:AddKeybind("Keybind",nil,function (val)
  4118. target_aim.Aiming.Target.Key = val
  4119. end)
  4120.  
  4121. TargetLockSection:AddTextbox("Prediction", nil, function(State)
  4122. target_aim.Aiming.Target.Prediction = State
  4123. end)
  4124.  
  4125. TargetLockSection:AddSlider("Jump Offset", -3,0,3,100, function(State)
  4126. OriginalOffsetXDZX = State
  4127. end)
  4128.  
  4129. spawn(function()
  4130. runservice.Stepped:Connect(function()
  4131. if AZURE_TmKALRSX.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  4132. target_aim.Aiming.Target.JumpOffset = OriginalOffsetXDZX
  4133. else
  4134. target_aim.Aiming.Target.JumpOffset = 0
  4135. end
  4136. end)
  4137. end)
  4138.  
  4139. TargetLockSection:AddDropdown("Hit-Part", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso"}, "HumanoidRootPart", false, function(dropdown)
  4140. hit_partxd = dropdown
  4141. end)
  4142.  
  4143. TargetLockSection:AddToggle("Randomized", false, function(parameter)
  4144. randomizatxionxd = parameter
  4145. end)
  4146.  
  4147. TargetLockSection:AddToggle("Notifications", false, function(parameter)
  4148. target_aim.Aiming.Target.Alerts = parameter
  4149. end)
  4150.  
  4151. TargetLockSection:AddToggle("Look At", false, function(parameter)
  4152. target_aim.Aiming.Target.LookAt = parameter
  4153. end)
  4154.  
  4155. TargetLockSection:AddToggle("View At", false, function(parameter)
  4156. viewatxd = parameter
  4157. end)
  4158.  
  4159. spawn(function()
  4160. runservice.Stepped:Connect(function()
  4161. if target_aim.Aiming.Target.Enabled and viewatxd and TargetAimEnabled then
  4162. workspace.CurrentCamera.CameraSubject = AZURE_TmKALRSX.Character.Humanoid
  4163. spawn(function()
  4164. if viewatxd == false then
  4165. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  4166. end
  4167. end)
  4168. else
  4169. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  4170. end
  4171. end)
  4172. end)
  4173.  
  4174. local dotenabled = TargetLockSection:AddToggle("Dot", false, function(parameter)
  4175. dotenabledlol = parameter
  4176. end)
  4177.  
  4178. dotenabled:AddColorpicker(Color3.fromRGB(168,122,207), function(ztx)
  4179. colorxdlololxdxd = ztx
  4180. end)
  4181.  
  4182. TargetLockSection:AddToggle("Dot on Cursor", false, function(parameter)
  4183. dotoncursorx = parameter
  4184. end)
  4185.  
  4186. local highlighxdxdxd = TargetLockSection:AddToggle("Highlight", false, function(parameter)
  4187. hightlightendalbed = parameter
  4188. end)
  4189.  
  4190. highlighxdxdxd:AddColorpicker(Color3.fromRGB(168,122,207), function(ztx)
  4191. fillcolorxd = ztx
  4192. end)
  4193.  
  4194. highlighxdxdxd:AddColorpicker(Color3.fromRGB(88,65,108), function(ztx)
  4195. outlinecolorxdxdxd = ztx
  4196. end)
  4197.  
  4198. local highlight_instance = Instance.new("Highlight",game.CoreGui)
  4199.  
  4200. spawn(function()
  4201. runservice.Stepped:Connect(function()
  4202. if target_aim.Aiming.Target.Enabled and hightlightendalbed and TargetAimEnabled then
  4203. highlight_instance.Parent = AZURE_TmKALRSX.Character
  4204. highlight_instance.FillColor = fillcolorxd
  4205. highlight_instance.OutlineColor = outlinecolorxdxdxd
  4206. spawn(function()
  4207. if hightlightendalbed == false then
  4208. highlight_instance.Parent = game.CoreGui
  4209. end
  4210. end)
  4211. else
  4212. highlight_instance.Parent = game.CoreGui
  4213. end
  4214. end)
  4215. end)
  4216.  
  4217. TargetLockSection:AddToggle("Stats", false, function(parameter)
  4218. target_aim.Aiming.Target.TargetStats = parameter
  4219. end)
  4220.  
  4221.  
  4222.  
  4223. local dotDrawing = Drawing.new("Circle")
  4224.  
  4225. spawn(function()
  4226. dotDrawing.Filled = true
  4227. dotDrawing.Visible = false
  4228. dotDrawing.Thickness = 2
  4229. dotDrawing.Radius = 7
  4230. dotDrawing.NumSides = 60
  4231. end)
  4232.  
  4233. local DotParent = Instance.new("Part",game.Workspace)
  4234. local newBillboard = Instance.new("BillboardGui", DotParent)
  4235.  
  4236. local newFrame = Instance.new("Frame", newBillboard)
  4237. local newUiCornor = Instance.new("UICorner", newFrame)
  4238.  
  4239. task.spawn(function ()
  4240. newBillboard.Name = "azure_billboarddot"
  4241. newBillboard.Adornee = DotParent
  4242. newBillboard.Size = UDim2.new(0.6, 0, 0.6, 0)
  4243. newBillboard.AlwaysOnTop = true
  4244. newFrame.Size = UDim2.new(1, 0, 1, 0)
  4245. newFrame.BackgroundTransparency = 0
  4246. newUiCornor.CornerRadius = UDim.new(50, 50)
  4247. DotParent.CanCollide = false
  4248. DotParent.Anchored = true
  4249. DotParent.CFrame = CFrame.new(0,2000,0)
  4250. DotParent.Transparency = 1
  4251. end)
  4252.  
  4253. spawn(function()
  4254. runservice.Stepped:Connect(function()
  4255. if target_aim.Aiming.Target.Enabled and dotenabledlol then
  4256. dotDrawing.Color = colorxdlololxdxd
  4257. newFrame.BackgroundColor3 = colorxdlololxdxd
  4258. if TargetAimEnabled and dotenabledlol then
  4259. DotParent.CFrame = CFrame.new(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Position+Vector3.new(0,target_aim.Aiming.Target.JumpOffset,0)+(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Velocity*target_aim.Aiming.Target.Prediction))
  4260. dotDrawing.Visible = false
  4261. else
  4262. DotParent.CFrame = CFrame.new(0,9999,0)
  4263. if dotoncursorx then
  4264. dotDrawing.Visible = true
  4265. dotDrawing.Position = Vector2.new(mouse.X,mouse.Y + game:GetService("GuiService"):GetGuiInset().Y)
  4266. spawn(function()
  4267. if dotoncursorx == false then
  4268. dotDrawing.Visible = false
  4269. end
  4270. end)
  4271. end
  4272. spawn(function()
  4273. if dotoncursorx == false then
  4274. dotDrawing.Visible = false
  4275. end
  4276. end)
  4277. end
  4278. else
  4279. DotParent.CFrame = CFrame.new(0,9999,0)
  4280. dotDrawing.Visible = false
  4281. end
  4282. end)
  4283. end)
  4284.  
  4285.  
  4286. spawn(function()
  4287. runservice.Stepped:Connect(function()
  4288. if randomizatxionxd then
  4289. wait(0.6)
  4290. player_gayparts = {"Head","UpperTorso","LowerTorso","HumanoidRootPart","RightUpperLeg","RightLowerLeg","LeftUpperLeg","LeftLowerLeg","RightUpperArm","RightLowerArm","LeftLowerArm","LeftUpperArm"}
  4291. target_aim.Aiming.Target.TargetPart = player_gayparts[math.random(1,#player_gayparts)]
  4292. else
  4293. target_aim.Aiming.Target.TargetPart = hit_partxd
  4294. end
  4295. end)
  4296. end)
  4297.  
  4298. spawn(function()
  4299. runservice.RenderStepped:Connect(function()
  4300. if AimbotBindEnabled and aimbotenab and SmoothingEnabLOLL == false then
  4301. local main_cframe = CFrame.new(workspace.CurrentCamera.CFrame.p, AZURE_TmKALxRxSX.Character[aimbotpartxd].Position + AZURE_TmKALxRxSX.Character[aimbotpartxd].Velocity/aimbotprediction)
  4302. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(main_cframe, 1, Enum.EasingStyle[smoothingtypexd], Enum.EasingDirection[easingdirectionxdxlol])
  4303. elseif AimbotBindEnabled and aimbotenab and SmoothingEnabLOLL == true then
  4304. local main_cframe = CFrame.new(workspace.CurrentCamera.CFrame.p, AZURE_TmKALxRxSX.Character[aimbotpartxd].Position + AZURE_TmKALxRxSX.Character[aimbotpartxd].Velocity/aimbotprediction)
  4305. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(main_cframe, SmoothingValIg, Enum.EasingStyle[smoothingtypexd], Enum.EasingDirection[easingdirectionxdxlol])
  4306. end
  4307. end)
  4308. end)
  4309.  
  4310. spawn(function()
  4311. runservice.RenderStepped:Connect(function()
  4312. if TargetAimEnabled and target_aim.Aiming.Target.Enabled and AZURE_TmKALRSX.Character:FindFirstChild("UpperTorso") then
  4313. if target_aim.Aiming.Target.LookAt then
  4314. player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.CFrame.Position, Vector3.new(AZURE_TmKALRSX.Character.HumanoidRootPart.CFrame.X, player.Character.HumanoidRootPart.CFrame.Position.Y, AZURE_TmKALRSX.Character.HumanoidRootPart.CFrame.Z))
  4315. player.Character.Humanoid.AutoRotate = false
  4316. spawn(function ()
  4317. if target_aim.Aiming.Target.LookAt == false then
  4318. player.Character.Humanoid.AutoRotate = true
  4319. end
  4320. end)
  4321. end
  4322. else
  4323. spawn(function()
  4324. player.Character.Humanoid.AutoRotate = true
  4325. end)
  4326. end
  4327. end)
  4328. end)
  4329.  
  4330. spawn(function()
  4331. uis.InputBegan:Connect(function (input)
  4332. if input.KeyCode == target_aim.Aiming.Target.Key and target_aim.Aiming.Target.Enabled then
  4333. TargetAimEnabled = not TargetAimEnabled
  4334. if TargetAimEnabled then
  4335. AZURE_TmKALRSX = targetchosen()
  4336. if target_aim.Aiming.Target.Alerts then
  4337. Notify({
  4338. Title = "Azure [v."..Version.Value.."]",
  4339. Description = "Targeting: " ..tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName),
  4340. Duration = 3
  4341. })
  4342. end
  4343. elseif not TargetAimEnabled then
  4344. if target_aim.Aiming.Target.Alerts then
  4345. Notify({
  4346. Title = "Azure ["..Version.Value.."]",
  4347. Description = "Untargeting: " ..tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName),
  4348. Duration = 3
  4349. })
  4350. end
  4351. end
  4352. end
  4353. end)
  4354. end)
  4355.  
  4356. local mt = getrawmetatable(game)
  4357. local old = mt.__namecall
  4358. setreadonly(mt, false)
  4359. mt.__namecall = newcclosure(function(...)
  4360. local args = {...}
  4361. if target_aim.Aiming.Target.Enabled and TargetAimEnabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  4362. args[3] = AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Position+Vector3.new(0.01,target_aim.Aiming.Target.JumpOffset,0.01)+(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Velocity*target_aim.Aiming.Target.Prediction)
  4363. return old(unpack(args))
  4364. end
  4365. return old(...)
  4366. end)
  4367.  
  4368. local Azure_TargetStats = Instance.new("ScreenGui")
  4369. local Background = Instance.new("Frame")
  4370. local Picture = Instance.new("ImageLabel")
  4371. local Top = Instance.new("Frame")
  4372. local UIGradient = Instance.new("UIGradient")
  4373. local UIGradient_2 = Instance.new("UIGradient")
  4374. local HealthBarBackground = Instance.new("Frame")
  4375. local UIGradient_3 = Instance.new("UIGradient")
  4376. local HealthBar = Instance.new("Frame")
  4377. local UIGradient_4 = Instance.new("UIGradient")
  4378. local NameOfTarget = Instance.new("TextLabel")
  4379.  
  4380. spawn(function()
  4381. Azure_TargetStats.Name = "Azure_TargetStats"
  4382. Azure_TargetStats.Parent = game.CoreGui
  4383. Azure_TargetStats.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  4384.  
  4385. Background.Name = "Background"
  4386. Background.Parent = Azure_TargetStats
  4387. Background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4388. Background.BorderSizePixel = 0
  4389. Background.Position = UDim2.new(0.388957828, 0, 0.700122297, 0)
  4390. Background.Size = UDim2.new(0, 358, 0, 71)
  4391. Background.Visible = false
  4392.  
  4393. Picture.Name = "Picture"
  4394. Picture.Parent = Background
  4395. Picture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4396. Picture.BorderSizePixel = 0
  4397. Picture.Position = UDim2.new(0.0279329624, 0, 0.0704225376, 0)
  4398. Picture.Size = UDim2.new(0, 59, 0, 59)
  4399. Picture.Transparency = 1
  4400. Picture.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  4401.  
  4402. Top.Name = "Top"
  4403. Top.Parent = Background
  4404. Top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4405. Top.BorderSizePixel = 0
  4406. Top.Position = UDim2.new(0, 0, -0.101449274, 0)
  4407. Top.Size = UDim2.new(0, 358, 0, 7)
  4408.  
  4409. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(184, 159, 227)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 88, 156))}
  4410. UIGradient.Rotation = 90
  4411. UIGradient.Parent = Top
  4412.  
  4413. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(52, 52, 52)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
  4414. UIGradient_2.Rotation = 90
  4415. UIGradient_2.Parent = Background
  4416.  
  4417. HealthBarBackground.Name = "HealthBarBackground"
  4418. HealthBarBackground.Parent = Background
  4419. HealthBarBackground.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4420. HealthBarBackground.BorderSizePixel = 0
  4421. HealthBarBackground.Position = UDim2.new(0.215083793, 0, 0.348234326, 0)
  4422. HealthBarBackground.Size = UDim2.new(0, 270, 0, 19)
  4423. HealthBarBackground.Transparency = 1
  4424.  
  4425. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(58, 58, 58)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(30, 30, 30))}
  4426. UIGradient_3.Rotation = 90
  4427. UIGradient_3.Parent = HealthBarBackground
  4428.  
  4429. HealthBar.Name = "HealthBar"
  4430. HealthBar.Parent = HealthBarBackground
  4431. HealthBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4432. HealthBar.BorderSizePixel = 0
  4433. HealthBar.Position = UDim2.new(-0.00336122862, 0, 0.164894029, 0)
  4434. HealthBar.Size = UDim2.new(0, 130, 0, 19)
  4435.  
  4436. UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(184, 159, 227)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 88, 156))}
  4437. UIGradient_4.Rotation = 90
  4438. UIGradient_4.Parent = HealthBar
  4439.  
  4440. NameOfTarget.Name = "NameOfTarget"
  4441. NameOfTarget.Parent = Background
  4442. NameOfTarget.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  4443. NameOfTarget.BackgroundTransparency = 1.000
  4444. NameOfTarget.Position = UDim2.new(0.220670387, 0, 0.0704225376, 0)
  4445. NameOfTarget.Size = UDim2.new(0, 268, 0, 19)
  4446. NameOfTarget.Font = Enum.Font.Code
  4447. NameOfTarget.TextColor3 = Color3.fromRGB(255, 255, 255)
  4448. NameOfTarget.TextScaled = true
  4449. NameOfTarget.TextSize = 14.000
  4450. NameOfTarget.TextStrokeTransparency = 0.000
  4451. NameOfTarget.TextWrapped = true
  4452. end)
  4453.  
  4454. local IsAlive = function(GetPlayer)
  4455. return GetPlayer and GetPlayer.Character and GetPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil and GetPlayer.Character:FindFirstChild("Humanoid") ~= nil and GetPlayer.Character:FindFirstChild("Head") ~= nil and true or false
  4456. end
  4457.  
  4458. spawn(function()
  4459. while wait() do
  4460. if target_aim.Aiming.Target.TargetStats and target_aim.Aiming.Target.Enabled and TargetAimEnabled then
  4461. if AZURE_TmKALRSX and IsAlive(AZURE_TmKALRSX) then
  4462. Background.Visible = true
  4463. NameOfTarget.Text = tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName).." ["..tostring(AZURE_TmKALRSX.Name).."]"
  4464. Picture.Image = "rbxthumb://type=AvatarHeadShot&id=" ..AZURE_TmKALRSX.UserId.. "&w=420&h=420"
  4465. HealthBar:TweenSize(UDim2.new(AZURE_TmKALRSX.Character.Humanoid.Health / AZURE_TmKALRSX.Character.Humanoid.MaxHealth, 0, 1, 0), "In", "Linear", 0.25)
  4466. spawn(function()
  4467. if target_aim.Aiming.Target.TargetStats == false then
  4468. Background.Visible = false
  4469. end
  4470. end)
  4471. end
  4472. else
  4473. Background.Visible = false
  4474. end
  4475. end
  4476. end)
  4477.  
  4478. function targetchosen()
  4479. local distance = math.huge
  4480. local zclosest
  4481. local LocalPlayer = game.Players.LocalPlayer
  4482. for i, v in pairs(game.Players:GetPlayers()) do
  4483. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  4484. local pos = workspace.CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  4485. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalPlayer:GetMouse().X, LocalPlayer:GetMouse().Y)).magnitude
  4486. if magnitude < distance then
  4487. zclosest = v
  4488. distance = magnitude
  4489. end
  4490. end
  4491. end
  4492. return zclosest
  4493. end
  4494.  
  4495. regera = 0
  4496.  
  4497. aroundtarget = function(speed, distance,height,target)
  4498. regera = regera + speed
  4499. player.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(regera), 0) * CFrame.new(0, height, distance)
  4500. end
Add Comment
Please, Sign In to add comment