Advertisement
Jsjdbot

Untitled

Feb 2nd, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.95 KB | None | 0 0
  1. local Library = {}
  2.  
  3. local NeverloseVersion = "v1.1A."
  4.  
  5. local TweenService = game:GetService("TweenService")
  6. local input = game:GetService("UserInputService")
  7.  
  8. for i,v in next, game.CoreGui:GetChildren() do
  9. if v:IsA("ScreenGui") and v.Name == "Neverlose" then
  10. v:Destroy()
  11. end
  12. end
  13.  
  14. local themouse = game.Players.LocalPlayer:GetMouse()
  15.  
  16. local function Notify(tt, tx)
  17. game:GetService("StarterGui"):SetCore("SendNotification", {
  18. Title = tt,
  19. Text = tx,
  20. Duration = 5
  21. })
  22. end
  23.  
  24. local function Dragify(frame, parent)
  25.  
  26. parent = parent or frame
  27.  
  28. local dragging = false
  29. local dragInput, mousePos, framePos
  30.  
  31. frame.InputBegan:Connect(function(input)
  32. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. dragging = true
  34. mousePos = input.Position
  35. framePos = parent.Position
  36.  
  37. input.Changed:Connect(function()
  38. if input.UserInputState == Enum.UserInputState.End then
  39. dragging = false
  40. end
  41. end)
  42. end
  43. end)
  44.  
  45. frame.InputChanged:Connect(function(input)
  46. if input.UserInputType == Enum.UserInputType.MouseMovement then
  47. dragInput = input
  48. end
  49. end)
  50.  
  51. input.InputChanged:Connect(function(input)
  52. if input == dragInput and dragging then
  53. local delta = input.Position - mousePos
  54. parent.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
  55. end
  56. end)
  57. end
  58.  
  59. local function round(num, bracket)
  60. bracket = bracket or 1
  61. local a = math.floor(num/bracket + (math.sign(num) * 0.5)) * bracket
  62. if a < 0 then
  63. a = a + bracket
  64. end
  65. return a
  66. end
  67.  
  68. local function buttoneffect(options)
  69. pcall(function()
  70. options.entered.MouseEnter:Connect(function()
  71. if options.frame.TextColor3 ~= Color3.fromRGB(234, 239, 246) then
  72. TweenService:Create(options.frame, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
  73. TextColor3 = Color3.fromRGB(234, 239, 245)
  74. }):Play()
  75. end
  76. end)
  77. options.entered.MouseLeave:Connect(function()
  78. if options.frame.TextColor3 ~= Color3.fromRGB(157, 171, 182) and options.frame.TextColor3 ~= Color3.fromRGB(234, 239, 246) then
  79. TweenService:Create(options.frame, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
  80. TextColor3 = Color3.fromRGB(157, 171, 182)
  81. }):Play()
  82. end
  83. end)
  84. end)
  85. end
  86.  
  87. local function clickEffect(options)
  88. options.button.MouseButton1Click:Connect(function()
  89. local new = options.button.TextSize - tonumber(options.amount)
  90. local revert = new + tonumber(options.amount)
  91. TweenService:Create(options.button, TweenInfo.new(0.15, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {TextSize = new}):Play()
  92. wait(0.1)
  93. TweenService:Create(options.button, TweenInfo.new(0.1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {TextSize = revert}):Play()
  94. end)
  95. end
  96.  
  97. function Library:Toggle(value)
  98. if game:GetServer("CoreGui"):FindFirstChild("Neverlose") == nil then return end
  99. enabled = (type(value) == "boolean" and value) or game:GetServer("CoreGui"):FindFirstChild("Neverlose").Enabled
  100. game:GetServer("CoreGui"):FindFirstChild("Neverlose").Enabled = not enabled
  101. end
  102.  
  103. function Library:Window(options)
  104. options.text = options.text or "NEVERLOSE"
  105.  
  106. local SG = Instance.new("ScreenGui")
  107. local Body = Instance.new("Frame")
  108. Dragify(Body, Body)
  109. local bodyCorner = Instance.new("UICorner")
  110.  
  111. local SideBar = Instance.new("Frame")
  112. local sidebarCorner = Instance.new("UICorner")
  113. local sbLine = Instance.new("Frame")
  114.  
  115. local TopBar = Instance.new("Frame")
  116. local tbLine = Instance.new("Frame")
  117. local Title = Instance.new("TextLabel")
  118. --local saveBtn = Instance.new("TextButton")
  119. --local saveLabel = Instance.new("ImageLabel")
  120.  
  121. local allPages = Instance.new("Frame")
  122. local tabContainer = Instance.new("Frame")
  123.  
  124. SG.Parent = game.CoreGui
  125. SG.Name = "Neverlose"
  126.  
  127. Body.Name = "Body"
  128. Body.Parent = SG
  129. Body.AnchorPoint = Vector2.new(0.5, 0.5)
  130. Body.BackgroundColor3 = Color3.fromRGB(9, 8, 13)
  131. Body.BorderSizePixel = 0
  132. Body.Active = true
  133. Body.Draggable = true
  134. Body.Position = UDim2.new(0.465730786, 0, 0.5, 0)
  135. Body.Size = UDim2.new(0, 658, 0, 516)
  136.  
  137. bodyCorner.CornerRadius = UDim.new(0, 4)
  138. bodyCorner.Name = "bodyCorner"
  139. bodyCorner.Parent = Body
  140.  
  141. SideBar.Name = "SideBar"
  142. SideBar.Parent = Body
  143. SideBar.BackgroundColor3 = Color3.fromRGB(26, 36, 48)
  144. SideBar.BorderSizePixel = 0
  145. SideBar.Size = UDim2.new(0, 187, 0, 516)
  146.  
  147. sidebarCorner.CornerRadius = UDim.new(0, 4)
  148. sidebarCorner.Name = "sidebarCorner"
  149. sidebarCorner.Parent = SideBar
  150.  
  151. sbLine.Name = "sbLine"
  152. sbLine.Parent = SideBar
  153. sbLine.BackgroundColor3 = Color3.fromRGB(15, 23, 36)
  154. sbLine.BorderSizePixel = 0
  155. sbLine.Position = UDim2.new(0.99490571, 0, 0, 0)
  156. sbLine.Size = UDim2.new(0, 3, 0, 516)
  157.  
  158. TopBar.Name = "TopBar"
  159. TopBar.Parent = Body
  160. TopBar.BackgroundColor3 = Color3.fromRGB(9, 8, 13)
  161. TopBar.BackgroundTransparency = 1.000
  162. TopBar.BorderColor3 = Color3.fromRGB(14, 21, 32)
  163. TopBar.BorderSizePixel = 0
  164. TopBar.Position = UDim2.new(0.25166446, 0, 0, 0)
  165. TopBar.Size = UDim2.new(0, 562, 0, 49)
  166.  
  167. tbLine.Name = "tbLine"
  168. tbLine.Parent = TopBar
  169. tbLine.BackgroundColor3 = Color3.fromRGB(15, 23, 36)
  170. tbLine.BorderSizePixel = 0
  171. tbLine.Position = UDim2.new(0.0400355868, 0, 1, 0)
  172. tbLine.Size = UDim2.new(0, 469, 0, 3)
  173.  
  174. Title.Name = "Title"
  175. Title.Parent = SideBar
  176. Title.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  177. Title.BackgroundTransparency = 1.000
  178. Title.BorderSizePixel = 0
  179. Title.Position = UDim2.new(0.0614973232, 0, 0.0213178284, 0)
  180. Title.Size = UDim2.new(0, 162, 0, 26)
  181. Title.Font = Enum.Font.ArialBold
  182. Title.Text = options.text
  183. Title.TextColor3 = Color3.fromRGB(234, 239, 245)
  184. Title.TextSize = 28.000
  185. Title.TextWrapped = true
  186.  
  187. --[[saveBtn.Name = "saveBtn"
  188. saveBtn.Parent = TopBar
  189. saveBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  190. saveBtn.BackgroundColor3 = Color3.fromRGB(9, 8, 13)
  191. saveBtn.Position = UDim2.new(0.146918148, 0, 0.479591846, 0)
  192. saveBtn.Size = UDim2.new(0, 88, 0, 20)
  193. saveBtn.AutoButtonColor = false
  194. saveBtn.Font = Enum.Font.GothamBold
  195. saveBtn.Text = " Save"
  196. saveBtn.TextColor3 = Color3.fromRGB(132, 146, 153)
  197. saveBtn.TextSize = 14.000
  198.  
  199. saveLabel.Name = "saveLabel"
  200. saveLabel.Parent = saveBtn
  201. saveLabel.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  202. saveLabel.BackgroundTransparency = 1.000
  203. saveLabel.BorderSizePixel = 0
  204. saveLabel.Position = UDim2.new(0.0862553269, 0, 0.0500000007, 0)
  205. saveLabel.Size = UDim2.new(0, 18, 0, 18)
  206. saveLabel.Image = "rbxassetid://7999984136"
  207. saveLabel.ImageColor3 = Color3.fromRGB(132, 146, 153)
  208. ]]
  209.  
  210. allPages.Name = "allPages"
  211. allPages.Parent = Body
  212. allPages.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  213. allPages.BackgroundTransparency = 1.000
  214. allPages.BorderSizePixel = 0
  215. allPages.Position = UDim2.new(0.29508087, 0, 0.100775197, 0)
  216. allPages.Size = UDim2.new(0, 463, 0, 464)
  217.  
  218. tabContainer.Name = "tabContainer"
  219. tabContainer.Parent = SideBar
  220. tabContainer.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  221. tabContainer.BackgroundTransparency = 1.000
  222. tabContainer.BorderSizePixel = 0
  223. tabContainer.Position = UDim2.new(0, 0, 0.100775197, 0)
  224. tabContainer.Size = UDim2.new(0, 187, 0, 464)
  225.  
  226. local tabsections = {}
  227.  
  228. function tabsections:TabSection(options)
  229. options.text = options.text or "Tab Section"
  230.  
  231. local tabLayout = Instance.new("UIListLayout")
  232. local tabSection = Instance.new("Frame")
  233. local tabSectionLabel = Instance.new("TextLabel")
  234. local tabSectionLayout = Instance.new("UIListLayout")
  235.  
  236. tabLayout.Name = "tabLayout"
  237. tabLayout.Parent = tabContainer
  238.  
  239. tabSection.Name = "tabSection"
  240. tabSection.Parent = tabContainer
  241. tabSection.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  242. tabSection.BackgroundTransparency = 1.000
  243. tabSection.BorderSizePixel = 0
  244. tabSection.Size = UDim2.new(0, 189, 0, 22)
  245.  
  246. local function ResizeTS(num)
  247. tabSection.Size += UDim2.new(0, 0, 0, num)
  248. end
  249.  
  250. tabSectionLabel.Name = "tabSectionLabel"
  251. tabSectionLabel.Parent = tabSection
  252. tabSectionLabel.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  253. tabSectionLabel.BackgroundTransparency = 1.000
  254. tabSectionLabel.BorderSizePixel = 0
  255. tabSectionLabel.Size = UDim2.new(0, 190, 0, 22)
  256. tabSectionLabel.Font = Enum.Font.Gotham
  257. tabSectionLabel.Text = " ".. options.text
  258. tabSectionLabel.TextColor3 = Color3.fromRGB(79, 107, 126)
  259. tabSectionLabel.TextSize = 17.000
  260. tabSectionLabel.TextXAlignment = Enum.TextXAlignment.Left
  261.  
  262. tabSectionLayout.Name = "tabSectionLayout"
  263. tabSectionLayout.Parent = tabSection
  264. tabSectionLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  265. tabSectionLayout.SortOrder = Enum.SortOrder.LayoutOrder
  266. tabSectionLayout.Padding = UDim.new(0, 7)
  267.  
  268. local tabs = {}
  269.  
  270. function tabs:Tab(options)
  271. options.text = options.text or "New Tab"
  272. options.icon = options.icon or "rbxassetid://7999345313"
  273.  
  274. local tabButton = Instance.new("TextButton")
  275. local tabButtonCorner = Instance.new("UICorner")
  276. local tabIcon = Instance.new("ImageLabel")
  277.  
  278. local newPage = Instance.new("ScrollingFrame")
  279. local pageLayout = Instance.new("UIGridLayout")
  280.  
  281. tabButton.Name = "tabButton"
  282. tabButton.Parent = tabSection
  283. tabButton.BackgroundColor3 = Color3.fromRGB(13, 57, 84)
  284. tabButton.BorderSizePixel = 0
  285. tabButton.Position = UDim2.new(0.0714285746, 0, 0.402777791, 0)
  286. tabButton.Size = UDim2.new(0, 165, 0, 30)
  287. tabButton.AutoButtonColor = false
  288. tabButton.Font = Enum.Font.GothamSemibold
  289. tabButton.Text = " " .. options.text
  290. tabButton.TextColor3 = Color3.fromRGB(234, 239, 245)
  291. tabButton.TextSize = 14.000
  292. tabButton.BackgroundTransparency = 1
  293. tabButton.TextXAlignment = Enum.TextXAlignment.Left
  294. tabButton.MouseButton1Click:Connect(function()
  295. for i,v in next, allPages:GetChildren() do
  296. v.Visible = false
  297. end
  298.  
  299. newPage.Visible = true
  300.  
  301. for i,v in next, SideBar:GetDescendants() do
  302. if v:IsA("TextButton") then
  303. TweenService:Create(v, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
  304. BackgroundTransparency = 1
  305. }):Play()
  306. end
  307. end
  308.  
  309. TweenService:Create(tabButton, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
  310. BackgroundTransparency = 0
  311. }):Play()
  312. end)
  313.  
  314. tabButtonCorner.CornerRadius = UDim.new(0, 4)
  315. tabButtonCorner.Name = "tabButtonCorner"
  316. tabButtonCorner.Parent = tabButton
  317.  
  318. tabIcon.Name = "tabIcon"
  319. tabIcon.Parent = tabButton
  320. tabIcon.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  321. tabIcon.BackgroundTransparency = 1.000
  322. tabIcon.BorderSizePixel = 0
  323. tabIcon.Position = UDim2.new(0.0408859849, 0, 0.133333355, 0)
  324. tabIcon.Size = UDim2.new(0, 21, 0, 21)
  325. tabIcon.Image = options.icon
  326. tabIcon.ImageColor3 = Color3.fromRGB(43, 154, 198)
  327.  
  328. newPage.Name = "newPage"
  329. newPage.Parent = allPages
  330. newPage.Visible = false
  331. newPage.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  332. newPage.BackgroundTransparency = 1.000
  333. newPage.BorderSizePixel = 0
  334. newPage.ClipsDescendants = false
  335. newPage.Position = UDim2.new(0.021598272, 0, 0.0237068962, 0)
  336. newPage.Size = UDim2.new(0, 442, 0, 440)
  337. newPage.ScrollBarThickness = 4
  338. newPage.CanvasSize = UDim2.new(0,0,0,0)
  339.  
  340. pageLayout.Name = "pageLayout"
  341. pageLayout.Parent = newPage
  342. pageLayout.SortOrder = Enum.SortOrder.LayoutOrder
  343. pageLayout.CellPadding = UDim2.new(0, 12, 0, 12)
  344. pageLayout.CellSize = UDim2.new(0, 215, 0, -10)
  345. pageLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  346. newPage.CanvasSize = UDim2.new(0,0,0,pageLayout.AbsoluteContentSize.Y)
  347. end)
  348.  
  349. ResizeTS(50)
  350.  
  351. local sections = {}
  352.  
  353. function sections:Section(options)
  354. options.text = options.text or "Section"
  355.  
  356. local sectionFrame = Instance.new("Frame")
  357. local sectionLabel = Instance.new("TextLabel")
  358. local sectionFrameCorner = Instance.new("UICorner")
  359. local sectionLayout = Instance.new("UIListLayout")
  360. local sLine = Instance.new("TextLabel")
  361. local sectionSizeConstraint = Instance.new("UISizeConstraint")
  362.  
  363. sectionFrame.Name = "sectionFrame"
  364. sectionFrame.Parent = newPage
  365. sectionFrame.BackgroundColor3 = Color3.fromRGB(0, 15, 30)
  366. sectionFrame.BorderSizePixel = 0
  367. sectionFrame.Size = UDim2.new(0, 215, 0, 134)
  368.  
  369. sectionLabel.Name = "sectionLabel"
  370. sectionLabel.Parent = sectionFrame
  371. sectionLabel.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  372. sectionLabel.BackgroundTransparency = 1.000
  373. sectionLabel.BorderSizePixel = 0
  374. sectionLabel.Position = UDim2.new(0.0121902823, 0, 0, 0)
  375. sectionLabel.Size = UDim2.new(0, 213, 0, 25)
  376. sectionLabel.Font = Enum.Font.GothamSemibold
  377. sectionLabel.Text = " " .. options.text
  378. sectionLabel.TextColor3 = Color3.fromRGB(234, 239, 245)
  379. sectionLabel.TextSize = 14.000
  380. sectionLabel.TextXAlignment = Enum.TextXAlignment.Left
  381.  
  382. sectionFrameCorner.CornerRadius = UDim.new(0, 4)
  383. sectionFrameCorner.Name = "sectionFrameCorner"
  384. sectionFrameCorner.Parent = sectionFrame
  385.  
  386. sectionLayout.Name = "sectionLayout"
  387. sectionLayout.Parent = sectionFrame
  388. sectionLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  389. sectionLayout.SortOrder = Enum.SortOrder.LayoutOrder
  390. sectionLayout.Padding = UDim.new(0, 2)
  391.  
  392. sLine.Name = "sLine"
  393. sLine.Parent = sectionFrame
  394. sLine.BackgroundColor3 = Color3.fromRGB(13, 28, 44)
  395. sLine.BorderSizePixel = 0
  396. sLine.Position = UDim2.new(0.0255813953, 0, 0.41538462, 0)
  397. sLine.Size = UDim2.new(0, 202, 0, 3)
  398. sLine.Font = Enum.Font.SourceSans
  399. sLine.Text = ""
  400. sLine.TextColor3 = Color3.fromRGB(0, 0, 0)
  401. sLine.TextSize = 0
  402.  
  403. sectionSizeConstraint.Name = "sectionSizeConstraint"
  404. sectionSizeConstraint.Parent = sectionFrame
  405. sectionSizeConstraint.MinSize = Vector2.new(215, 35)
  406.  
  407. local function Resize(num)
  408. sectionSizeConstraint.MinSize += Vector2.new(0, num)
  409. end
  410.  
  411. local elements = {}
  412.  
  413. function elements:Button(options)
  414. if not options.text or not options.callback then Notify("Button", "Missing arguments!") return end
  415.  
  416. local TextButton = Instance.new("TextButton")
  417.  
  418. TextButton.Parent = sectionFrame
  419. TextButton.BackgroundColor3 = Color3.fromRGB(13, 57, 84)
  420. TextButton.BorderSizePixel = 0
  421. TextButton.Position = UDim2.new(0.0348837227, 0, 0.355555564, 0)
  422. TextButton.Size = UDim2.new(0, 200, 0, 22)
  423. TextButton.AutoButtonColor = false
  424. TextButton.Text = options.text
  425. TextButton.Font = Enum.Font.Gotham
  426. TextButton.TextColor3 = Color3.fromRGB(157, 171, 182)
  427. TextButton.TextSize = 14.000
  428. TextButton.BackgroundTransparency = 1
  429. buttoneffect({frame = TextButton, entered = TextButton})
  430. clickEffect({button = TextButton, amount = 5})
  431. TextButton.MouseButton1Click:Connect(function()
  432. options.callback()
  433. end)
  434.  
  435. Resize(25)
  436. end
  437.  
  438. function elements:Toggle(options)
  439. if not options.text or not options.callback then Notify("Toggle", "Missing arguments!") return end
  440.  
  441. local toggleLabel = Instance.new("TextLabel")
  442. local toggleFrame = Instance.new("TextButton")
  443. local togFrameCorner = Instance.new("UICorner")
  444. local toggleButton = Instance.new("TextButton")
  445. local togBtnCorner = Instance.new("UICorner")
  446.  
  447. local State = options.state or false
  448.  
  449. if options.state then
  450. toggleButton.Position = UDim2.new(0.74, 0, 0.5, 0)
  451. toggleLabel.TextColor3 = Color3.fromRGB(234, 239, 246)
  452. toggleButton.BackgroundColor3 = Color3.fromRGB(2, 162, 243)
  453. toggleFrame.BackgroundColor3 = Color3.fromRGB(2, 23, 49)
  454. end
  455.  
  456. toggleLabel.Name = "toggleLabel"
  457. toggleLabel.Parent = sectionFrame
  458. toggleLabel.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  459. toggleLabel.BackgroundTransparency = 1.000
  460. toggleLabel.Position = UDim2.new(0.0348837227, 0, 0.965517223, 0)
  461. toggleLabel.Size = UDim2.new(0, 200, 0, 22)
  462. toggleLabel.Font = Enum.Font.Gotham
  463. toggleLabel.Text = " " .. options.text
  464. toggleLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  465. toggleLabel.TextSize = 14.000
  466. toggleLabel.TextXAlignment = Enum.TextXAlignment.Left
  467. buttoneffect({frame = toggleLabel, entered = toggleLabel})
  468.  
  469. local function PerformToggle()
  470. State = not State
  471. options.callback(State)
  472. TweenService:Create(toggleButton, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
  473. Position = State and UDim2.new(0.74, 0, 0.5, 0) or UDim2.new(0.25, 0, 0.5, 0)
  474. }):Play()
  475. TweenService:Create(toggleLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
  476. TextColor3 = State and Color3.fromRGB(234, 239, 246) or Color3.fromRGB(157, 171, 182)
  477. }):Play()
  478. TweenService:Create(toggleButton, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
  479. BackgroundColor3 = State and Color3.fromRGB(2, 162, 243) or Color3.fromRGB(77, 77, 77)
  480. }):Play()
  481. TweenService:Create(toggleFrame, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
  482. BackgroundColor3 = State and Color3.fromRGB(2, 23, 49) or Color3.fromRGB(4, 4, 11)
  483. }):Play()
  484. end
  485.  
  486. toggleFrame.Name = "toggleFrame"
  487. toggleFrame.Parent = toggleLabel
  488. toggleFrame.BackgroundColor3 = Color3.fromRGB(4, 4, 11)
  489. toggleFrame.BorderSizePixel = 0
  490. toggleFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  491. toggleFrame.Position = UDim2.new(0.9, 0, 0.5, 0)
  492. toggleFrame.Size = UDim2.new(0, 38, 0, 18)
  493. toggleFrame.AutoButtonColor = false
  494. toggleFrame.Font = Enum.Font.SourceSans
  495. toggleFrame.Text = ""
  496. toggleFrame.TextColor3 = Color3.fromRGB(0, 0, 0)
  497. toggleFrame.TextSize = 14.000
  498. toggleFrame.MouseButton1Click:Connect(function()
  499. PerformToggle()
  500. end)
  501.  
  502. togFrameCorner.CornerRadius = UDim.new(0, 50)
  503. togFrameCorner.Name = "togFrameCorner"
  504. togFrameCorner.Parent = toggleFrame
  505.  
  506. toggleButton.Name = "toggleButton"
  507. toggleButton.Parent = toggleFrame
  508. toggleButton.BackgroundColor3 = Color3.fromRGB(77, 77, 77)
  509. toggleButton.BorderSizePixel = 0
  510. toggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  511. toggleButton.Position = UDim2.new(0.25, 0, 0.5, 0)
  512. toggleButton.Size = UDim2.new(0, 16, 0, 16)
  513. toggleButton.AutoButtonColor = false
  514. toggleButton.Font = Enum.Font.SourceSans
  515. toggleButton.Text = ""
  516. toggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  517. toggleButton.TextSize = 14.000
  518. toggleButton.MouseButton1Click:Connect(function()
  519. PerformToggle()
  520. end)
  521.  
  522. togBtnCorner.CornerRadius = UDim.new(0, 50)
  523. togBtnCorner.Name = "togFrameCorner"
  524. togBtnCorner.Parent = toggleButton
  525.  
  526. Resize(25)
  527. end
  528.  
  529. function elements:Slider(options)
  530. if not options.text or not options.min or not options.max or not options.callback then Notify("Slider", "Missing arguments!") return end
  531.  
  532. local Slider = Instance.new("Frame")
  533. local sliderLabel = Instance.new("TextLabel")
  534. local sliderFrame = Instance.new("TextButton")
  535. local sliderBall = Instance.new("TextButton")
  536. local sliderBallCorner = Instance.new("UICorner")
  537. local sliderTextBox = Instance.new("TextBox")
  538. buttoneffect({frame = sliderLabel, entered = Slider})
  539.  
  540. local Value
  541. local Held = false
  542.  
  543. local UIS = game:GetService("UserInputService")
  544. local RS = game:GetService("RunService")
  545. local Mouse = game.Players.LocalPlayer:GetMouse()
  546.  
  547. local percentage = 0
  548. local step = 0.01
  549.  
  550. local function snap(number, factor)
  551. if factor == 0 then
  552. return number
  553. else
  554. return math.floor(number/factor+0.5)*factor
  555. end
  556. end
  557.  
  558. UIS.InputEnded:Connect(function(Mouse)
  559. Held = false
  560. end)
  561.  
  562. Slider.Name = "Slider"
  563. Slider.Parent = sectionFrame
  564. Slider.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  565. Slider.BackgroundTransparency = 1.000
  566. Slider.Position = UDim2.new(0.0395348854, 0, 0.947335422, 0)
  567. Slider.Size = UDim2.new(0, 200, 0, 22)
  568.  
  569. sliderLabel.Name = "sliderLabel"
  570. sliderLabel.Parent = Slider
  571. sliderLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  572. sliderLabel.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  573. sliderLabel.BackgroundTransparency = 1.000
  574. sliderLabel.Position = UDim2.new(0.2, 0, 0.5, 0)
  575. sliderLabel.Size = UDim2.new(0, 77, 0, 22)
  576. sliderLabel.Font = Enum.Font.Gotham
  577. sliderLabel.Text = " " .. options.text
  578. sliderLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  579. sliderLabel.TextSize = 14.000
  580. sliderLabel.TextXAlignment = Enum.TextXAlignment.Left
  581. sliderLabel:GetPropertyChangedSignal("TextBounds"):Connect(function()
  582. if sliderLabel.TextBounds.X > 75 then
  583. sliderLabel.TextScaled = true
  584. else
  585. sliderLabel.TextScaled = false
  586. end
  587. end)
  588.  
  589. sliderFrame.Name = "sliderFrame"
  590. sliderFrame.Parent = sliderLabel
  591. sliderFrame.BackgroundColor3 = Color3.fromRGB(29, 87, 118)
  592. sliderFrame.BorderSizePixel = 0
  593. sliderFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  594. sliderFrame.Position = UDim2.new(1.6, 0, 0.5, 0)
  595. sliderFrame.Size = UDim2.new(0, 72, 0, 2)
  596. sliderFrame.Text = ""
  597. sliderFrame.AutoButtonColor = false
  598. sliderFrame.MouseButton1Down:Connect(function()
  599. Held = true
  600. end)
  601.  
  602. sliderBall.Name = "sliderBall"
  603. sliderBall.Parent = sliderFrame
  604. sliderBall.AnchorPoint = Vector2.new(0.5, 0.5)
  605. sliderBall.BackgroundColor3 = Color3.fromRGB(67, 136, 231)
  606. sliderBall.BorderSizePixel = 0
  607. sliderBall.Position = UDim2.new(0, 0, 0.5, 0)
  608. sliderBall.Size = UDim2.new(0, 14, 0, 14)
  609. sliderBall.AutoButtonColor = false
  610. sliderBall.Font = Enum.Font.SourceSans
  611. sliderBall.Text = ""
  612. sliderBall.TextColor3 = Color3.fromRGB(0, 0, 0)
  613. sliderBall.TextSize = 14.000
  614. sliderBall.MouseButton1Down:Connect(function()
  615. Held = true
  616. end)
  617.  
  618. RS.RenderStepped:Connect(function()
  619. if Held then
  620. local BtnPos = sliderBall.Position
  621. local MousePos = UIS:GetMouseLocation().X
  622. local FrameSize = sliderFrame.AbsoluteSize.X
  623. local FramePos = sliderFrame.AbsolutePosition.X
  624. local pos = snap((MousePos-FramePos)/FrameSize,step)
  625. percentage = math.clamp(pos,0,0.9)
  626.  
  627. Value = ((((tonumber(options.max) - tonumber(options.min)) / 0.9) * percentage)) + tonumber(options.min)
  628. Value = round(Value, options.float)
  629. Value = math.clamp(Value, options.min, options.max)
  630. sliderTextBox.Text = Value
  631. options.callback(Value)
  632. sliderBall.Position = UDim2.new(percentage,0,BtnPos.Y.Scale, BtnPos.Y.Offset)
  633. end
  634. end)
  635.  
  636. sliderBallCorner.CornerRadius = UDim.new(0, 50)
  637. sliderBallCorner.Name = "sliderBallCorner"
  638. sliderBallCorner.Parent = sliderBall
  639.  
  640. sliderTextBox.Name = "sliderTextBox"
  641. sliderTextBox.Parent = sliderLabel
  642. sliderTextBox.BackgroundColor3 = Color3.fromRGB(1, 7, 17)
  643. sliderTextBox.AnchorPoint = Vector2.new(0.5, 0.5)
  644. sliderTextBox.Position = UDim2.new(2.4, 0, 0.5, 0)
  645. sliderTextBox.Size = UDim2.new(0, 31, 0, 15)
  646. sliderTextBox.Font = Enum.Font.Gotham
  647. sliderTextBox.Text = options.min
  648. sliderTextBox.TextColor3 = Color3.fromRGB(234, 239, 245)
  649. sliderTextBox.TextSize = 11.000
  650. sliderTextBox.TextWrapped = true
  651.  
  652. sliderTextBox.Focused:Connect(function()
  653. TweenService:Create(sliderLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(234, 239, 246)}):Play()
  654. end)
  655.  
  656. sliderTextBox.FocusLost:Connect(function(Enter)
  657. TweenService:Create(sliderLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(157, 171, 182)}):Play()
  658. if Enter then
  659. if sliderTextBox.Text ~= nil and sliderTextBox.Text ~= "" then
  660. if tonumber(sliderTextBox.Text) > options.max then
  661. sliderTextBox.Text = tostring(options.max)
  662. options.callback(options.max)
  663. elseif tonumber(sliderTextBox.Text) < options.min then
  664. sliderTextBox.Text = tostring(options.min)
  665. options.callback(options.min)
  666. elseif not tonumber(sliderTextBox.Text) < options.min and not tonumber(sliderTextBox.Text) > options.max then
  667. options.callback(sliderTextBox.Text)
  668. end
  669. end
  670. end
  671. end)
  672.  
  673. Resize(25)
  674. end
  675.  
  676. function elements:Dropdown(options)
  677. if not options.text or not options.default or not options.list or not options.callback then Notify("Dropdown", "Missing arguments!") return end
  678.  
  679. local DropYSize = 0
  680. local Dropped = false
  681.  
  682. local Dropdown = Instance.new("Frame")
  683. local dropdownLabel = Instance.new("TextLabel")
  684. local dropdownText = Instance.new("TextLabel")
  685. local dropdownArrow = Instance.new("ImageButton")
  686. local dropdownList = Instance.new("Frame")
  687.  
  688. local dropListLayout = Instance.new("UIListLayout")
  689. buttoneffect({frame = dropdownLabel, entered = Dropdown})
  690.  
  691. Dropdown.Name = "Dropdown"
  692. Dropdown.Parent = sectionFrame
  693. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  694. Dropdown.BackgroundTransparency = 1.000
  695. Dropdown.BorderSizePixel = 0
  696. Dropdown.Position = UDim2.new(0.0697674453, 0, 0.237037033, 0)
  697. Dropdown.Size = UDim2.new(0, 200, 0, 22)
  698. Dropdown.ZIndex = 2
  699.  
  700. dropdownLabel.Name = "dropdownLabel"
  701. dropdownLabel.Parent = Dropdown
  702. dropdownLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  703. dropdownLabel.BackgroundTransparency = 1.000
  704. dropdownLabel.BorderSizePixel = 0
  705. dropdownLabel.Size = UDim2.new(0, 105, 0, 22)
  706. dropdownLabel.Font = Enum.Font.Gotham
  707. dropdownLabel.Text = " " .. options.text
  708. dropdownLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  709. dropdownLabel.TextSize = 14.000
  710. dropdownLabel.TextXAlignment = Enum.TextXAlignment.Left
  711. dropdownLabel.TextWrapped = true
  712.  
  713. dropdownText.Name = "dropdownText"
  714. dropdownText.Parent = dropdownLabel
  715. dropdownText.BackgroundColor3 = Color3.fromRGB(2, 5, 12)
  716. dropdownText.Position = UDim2.new(1.08571434, 0, 0.0909090936, 0)
  717. dropdownText.Size = UDim2.new(0, 87, 0, 18)
  718. dropdownText.Font = Enum.Font.Gotham
  719. dropdownText.Text = " " .. options.default
  720. dropdownText.TextColor3 = Color3.fromRGB(234, 239, 245)
  721. dropdownText.TextSize = 12.000
  722. dropdownText.TextXAlignment = Enum.TextXAlignment.Left
  723. dropdownText.TextWrapped = true
  724.  
  725. dropdownArrow.Name = "dropdownArrow"
  726. dropdownArrow.Parent = dropdownText
  727. dropdownArrow.BackgroundColor3 = Color3.fromRGB(2, 5, 12)
  728. dropdownArrow.BorderSizePixel = 0
  729. dropdownArrow.Position = UDim2.new(0.87356323, 0, 0.138888866, 0)
  730. dropdownArrow.Size = UDim2.new(0, 11, 0, 13)
  731. dropdownArrow.AutoButtonColor = false
  732. dropdownArrow.Image = "rbxassetid://8008296380"
  733. dropdownArrow.ImageColor3 = Color3.fromRGB(157, 171, 182)
  734.  
  735. dropdownArrow.MouseButton1Click:Connect(function()
  736. Dropped = not Dropped
  737. if Dropped then
  738. if dropdownLabel.TextColor3 ~= Color3.fromRGB(234, 239, 245) then
  739. TweenService:Create(dropdownLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  740. TextColor3 = Color3.fromRGB(234, 239, 246)
  741. }):Play()
  742. end
  743. TweenService:Create(dropdownList, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  744. Size = UDim2.new(0, 87, 0, DropYSize)
  745. }):Play()
  746. TweenService:Create(dropdownList, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  747. BorderSizePixel = 1
  748. }):Play()
  749. elseif not Dropped then
  750. if dropdownLabel.TextColor3 ~= Color3.fromRGB(157, 171, 182) then
  751. TweenService:Create(dropdownLabel, TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  752. TextColor3 = Color3.fromRGB(157, 171, 182)
  753. }):Play()
  754. end
  755. TweenService:Create(dropdownList, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  756. Size = UDim2.new(0, 87, 0, 0)
  757. }):Play()
  758. TweenService:Create(dropdownList, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  759. BorderSizePixel = 0
  760. }):Play()
  761. end
  762. end)
  763.  
  764. dropdownList.Name = "dropdownList"
  765. dropdownList.Parent = dropdownText
  766. dropdownList.BackgroundColor3 = Color3.fromRGB(2, 5, 12)
  767. dropdownList.Position = UDim2.new(0, 0, 1, 0)
  768. dropdownList.Size = UDim2.new(0, 87, 0, 0)
  769. dropdownList.ClipsDescendants = true
  770. dropdownList.BorderSizePixel = 0
  771. dropdownList.ZIndex = 10
  772.  
  773. dropListLayout.Name = "dropListLayout"
  774. dropListLayout.Parent = dropdownList
  775. dropListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  776. Resize(25)
  777.  
  778. for i,v in next, options.list do
  779. local dropdownBtn = Instance.new("TextButton")
  780. local Count = 1
  781.  
  782. dropdownBtn.Name = "dropdownBtn"
  783. dropdownBtn.Parent = dropdownList
  784. dropdownBtn.BackgroundColor3 = Color3.fromRGB(234, 239, 245)
  785. dropdownBtn.BackgroundTransparency = 1.000
  786. dropdownBtn.BorderSizePixel = 0
  787. dropdownBtn.Position = UDim2.new(-0.0110929646, 0, 0.0305557251, 0)
  788. dropdownBtn.Size = UDim2.new(0, 87, 0, 18)
  789. dropdownBtn.AutoButtonColor = false
  790. dropdownBtn.Font = Enum.Font.Gotham
  791. dropdownBtn.TextColor3 = Color3.fromRGB(234, 239, 245)
  792. dropdownBtn.TextSize = 12.000
  793. dropdownBtn.Text = v
  794. dropdownBtn.ZIndex = 15
  795. clickEffect({button = dropdownBtn, amount = 5})
  796.  
  797. Count = Count + 1
  798. dropdownList.ZIndex -= Count
  799. DropYSize = DropYSize + 18
  800.  
  801. dropdownBtn.MouseButton1Click:Connect(function()
  802. dropdownText.Text = " " .. v
  803. options.callback(v)
  804. end)
  805. end
  806. end
  807.  
  808. function elements:Textbox(options)
  809. if not options.text or not options.value or not options.callback then Notify("Textbox", "Missing arguments!") return end
  810.  
  811. local Textbox = Instance.new("Frame")
  812. local textBoxLabel = Instance.new("TextLabel")
  813. local textBox = Instance.new("TextBox")
  814.  
  815. Textbox.Name = "Textbox"
  816. Textbox.Parent = sectionFrame
  817. Textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  818. Textbox.BackgroundTransparency = 1.000
  819. Textbox.BorderSizePixel = 0
  820. Textbox.Position = UDim2.new(0.0348837227, 0, 0.945454538, 0)
  821. Textbox.Size = UDim2.new(0, 200, 0, 22)
  822. buttoneffect({frame = textBoxLabel, entered = Textbox})
  823.  
  824. textBoxLabel.Name = "textBoxLabel"
  825. textBoxLabel.Parent = Textbox
  826. textBoxLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  827. textBoxLabel.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  828. textBoxLabel.BackgroundTransparency = 1.000
  829. textBoxLabel.Position = UDim2.new(0.237000003, 0, 0.5, 0)
  830. textBoxLabel.Size = UDim2.new(0, 99, 0, 22)
  831. textBoxLabel.Font = Enum.Font.Gotham
  832. textBoxLabel.Text = " " .. options.text
  833. textBoxLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  834. textBoxLabel.TextSize = 14.000
  835. textBoxLabel.TextXAlignment = Enum.TextXAlignment.Left
  836.  
  837. textBox.Name = "textBox"
  838. textBox.Parent = Textbox
  839. textBox.AnchorPoint = Vector2.new(0.5, 0.5)
  840. textBox.BackgroundColor3 = Color3.fromRGB(1, 7, 17)
  841. textBox.Position = UDim2.new(0.850000024, 0, 0.5, 0)
  842. textBox.Size = UDim2.new(0, 53, 0, 15)
  843. textBox.Font = Enum.Font.Gotham
  844. textBox.Text = options.value
  845. textBox.TextColor3 = Color3.fromRGB(234, 239, 245)
  846. textBox.TextSize = 11.000
  847. textBox.TextWrapped = true
  848.  
  849. Resize(25)
  850.  
  851. textBox.Focused:Connect(function()
  852. TweenService:Create(textBoxLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(234, 239, 246)}):Play()
  853. end)
  854.  
  855. textBox.FocusLost:Connect(function(Enter)
  856. TweenService:Create(textBoxLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(157, 171, 182)}):Play()
  857. if Enter then
  858. if textBox.Text ~= nil and textBox.Text ~= "" then
  859. options.callback(textBox.Text)
  860. end
  861. end
  862. end)
  863. end
  864.  
  865. function elements:Colorpicker(options)
  866. if not options.text or not options.color or not options.callback then Notify("Colorpicker", "Missing arguments!") return end
  867.  
  868.  
  869. local hue, sat, val = Color3.toHSV(options.color)
  870.  
  871. local Colorpicker = Instance.new("Frame")
  872. local colorpickerLabel = Instance.new("TextLabel")
  873. local colorpickerButton = Instance.new("ImageButton")
  874. local colorpickerFrame = Instance.new("Frame")
  875. local RGB = Instance.new("ImageButton")
  876. local RGBCircle = Instance.new("ImageLabel")
  877. local Darkness = Instance.new("ImageButton")
  878. local DarknessCircle = Instance.new("Frame")
  879. local colorHex = Instance.new("TextLabel")
  880. local Copy = Instance.new("TextButton")
  881. buttoneffect({frame = colorpickerLabel, entered = Colorpicker})
  882.  
  883. local vis = false
  884.  
  885. Colorpicker.Name = "Colorpicker"
  886. Colorpicker.Parent = sectionFrame
  887. Colorpicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  888. Colorpicker.BackgroundTransparency = 1.000
  889. Colorpicker.BorderSizePixel = 0
  890. Colorpicker.Position = UDim2.new(0.0348837227, 0, 0.945454538, 0)
  891. Colorpicker.Size = UDim2.new(0, 200, 0, 22)
  892. Colorpicker.ZIndex = 2
  893.  
  894. colorpickerLabel.Name = "colorpickerLabel"
  895. colorpickerLabel.Parent = Colorpicker
  896. colorpickerLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  897. colorpickerLabel.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  898. colorpickerLabel.BackgroundTransparency = 1.000
  899. colorpickerLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  900. colorpickerLabel.Size = UDim2.new(0, 200, 0, 22)
  901. colorpickerLabel.Font = Enum.Font.Gotham
  902. colorpickerLabel.Text = " " .. options.text
  903. colorpickerLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  904. colorpickerLabel.TextSize = 14.000
  905. colorpickerLabel.TextXAlignment = Enum.TextXAlignment.Left
  906.  
  907. colorpickerButton.Name = "colorpickerButton"
  908. colorpickerButton.Parent = colorpickerLabel
  909. colorpickerButton.AnchorPoint = Vector2.new(0.5, 0.5)
  910. colorpickerButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  911. colorpickerButton.BackgroundTransparency = 1.000
  912. colorpickerButton.BorderSizePixel = 0
  913. colorpickerButton.Position = UDim2.new(0.920, 0, 0.57, 0)
  914. colorpickerButton.Size = UDim2.new(0, 15, 0, 15)
  915. colorpickerButton.Image = "rbxassetid://8023491332"
  916. colorpickerButton.MouseButton1Click:Connect(function()
  917. colorpickerFrame.Visible = not colorpickerFrame.Visible
  918. vis = not vis
  919. TweenService:Create(colorpickerLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
  920. TextColor3 = vis and Color3.fromRGB(234, 239, 246) or Color3.fromRGB(157, 171, 182)
  921. }):Play()
  922. end)
  923.  
  924. colorpickerFrame.Name = "colorpickerFrame"
  925. colorpickerFrame.Parent = Colorpicker
  926. colorpickerFrame.Visible = false
  927. colorpickerFrame.BackgroundColor3 = Color3.fromRGB(0, 10, 21)
  928. colorpickerFrame.Position = UDim2.new(1.15, 0, 0.5, 0)
  929. colorpickerFrame.Size = UDim2.new(0, 251, 0, 221)
  930. colorpickerFrame.ZIndex = 15
  931. Dragify(colorpickerFrame, Colorpicker)
  932.  
  933. RGB.Name = "RGB"
  934. RGB.Parent = colorpickerFrame
  935. RGB.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  936. RGB.BackgroundTransparency = 1.000
  937. RGB.BorderSizePixel = 0
  938. RGB.Position = UDim2.new(0.0670000017, 0, 0.0680000037, 0)
  939. RGB.Size = UDim2.new(0, 179, 0, 161)
  940. RGB.AutoButtonColor = false
  941. RGB.Image = "rbxassetid://6523286724"
  942. RGB.ZIndex = 16
  943.  
  944. RGBCircle.Name = "RGBCircle"
  945. RGBCircle.Parent = RGB
  946. RGBCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  947. RGBCircle.BackgroundTransparency = 1.000
  948. RGBCircle.BorderColor3 = Color3.fromRGB(27, 42, 53)
  949. RGBCircle.BorderSizePixel = 0
  950. RGBCircle.Size = UDim2.new(0, 14, 0, 14)
  951. RGBCircle.Image = "rbxassetid://3926309567"
  952. RGBCircle.ImageRectOffset = Vector2.new(628, 420)
  953. RGBCircle.ImageRectSize = Vector2.new(48, 48)
  954. RGBCircle.ZIndex = 16
  955.  
  956. Darkness.Name = "Darkness"
  957. Darkness.Parent = colorpickerFrame
  958. Darkness.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  959. Darkness.BorderSizePixel = 0
  960. Darkness.Position = UDim2.new(0.831940293, 0, 0.0680000708, 0)
  961. Darkness.Size = UDim2.new(0, 33, 0, 161)
  962. Darkness.AutoButtonColor = false
  963. Darkness.Image = "rbxassetid://156579757"
  964. Darkness.ZIndex = 16
  965.  
  966. DarknessCircle.Name = "DarknessCircle"
  967. DarknessCircle.Parent = Darkness
  968. DarknessCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  969. DarknessCircle.BorderSizePixel = 0
  970. DarknessCircle.Position = UDim2.new(0, 0, 0, 0)
  971. DarknessCircle.Size = UDim2.new(0, 33, 0, 5)
  972. DarknessCircle.ZIndex = 16
  973.  
  974. colorHex.Name = "colorHex"
  975. colorHex.Parent = colorpickerFrame
  976. colorHex.BackgroundColor3 = Color3.fromRGB(9, 8, 13)
  977. colorHex.Position = UDim2.new(0.0717131495, 0, 0.850678742, 0)
  978. colorHex.Size = UDim2.new(0, 94, 0, 24)
  979. colorHex.Font = Enum.Font.GothamSemibold
  980. colorHex.Text = "#FFFFFF"
  981. colorHex.TextColor3 = Color3.fromRGB(234, 239, 245)
  982. colorHex.TextSize = 14.000
  983. colorHex.ZIndex = 16
  984.  
  985. Copy.Parent = colorpickerFrame
  986. Copy.BackgroundColor3 = Color3.fromRGB(9, 8, 13)
  987. Copy.Position = UDim2.new(0.72111553, 0, 0.850678742, 0)
  988. Copy.Size = UDim2.new(0, 60, 0, 24)
  989. Copy.AutoButtonColor = false
  990. Copy.Font = Enum.Font.GothamSemibold
  991. Copy.Text = "Copy"
  992. Copy.TextColor3 = Color3.fromRGB(234, 239, 245)
  993. Copy.TextSize = 14.000
  994. Copy.ZIndex = 16
  995. Resize(25)
  996. Copy.MouseButton1Click:Connect(function()
  997. if setclipboard then
  998. setclipboard(tostring(colorHex.Text))
  999. Notify("Cryptweb:", tostring(colorHex.Text))
  1000. Notify("Cryptweb:", "Done!")
  1001. else
  1002. print(tostring(colorHex.Text))
  1003. Notify("Cryptweb:", tostring(colorHex.Text))
  1004. Notify("Cryptweb:", "Your exploit does not support the function 'setclipboard', so we've printed it out.")
  1005. end
  1006. end)
  1007.  
  1008. local ceil,clamp,atan2,pi = math.ceil,math.clamp,math.atan2,math.pi
  1009. local tostr,sub = tostring,string.sub
  1010. local fromHSV = Color3.fromHSV
  1011. local v2,udim2 = Vector2.new,UDim2.new
  1012.  
  1013. local UserInputService = game:GetService("UserInputService")
  1014. local getmouse = game.Players.LocalPlayer:GetMouse()
  1015.  
  1016. local WheelDown = false
  1017. local SlideDown = false
  1018.  
  1019. local function toPolar(v)
  1020. return atan2(v.y, v.x), v.magnitude;
  1021. end
  1022.  
  1023. local function radToDeg(x)
  1024. return ((x + pi) / (2 * pi)) * 360;
  1025. end
  1026. local hue, saturation, value = 0, 0, 1;
  1027. local color = {1,1,1}
  1028.  
  1029. local function to_hex(color)
  1030. return string.format("#%02X%02X%02X", color.R * 255, color.G * 255, color.B * 255)
  1031. end
  1032. local function update()
  1033. local r = color[1];
  1034. local g = color[2];
  1035. local b = color[3];
  1036.  
  1037. local c = fromHSV(r, g, b);
  1038. colorHex.Text = tostring(to_hex(c))
  1039. end
  1040. local function mouseLocation()
  1041. return game.Players.LocalPlayer:GetMouse()
  1042. end
  1043. local function UpdateSlide(iX,iY)
  1044. local ml = mouseLocation()
  1045. local y = ml.Y - Darkness.AbsolutePosition.Y
  1046. local maxY = Darkness.AbsoluteSize.Y
  1047. if y<0 then y=0 end
  1048. if y>maxY then y=maxY end
  1049. y = y/maxY
  1050. local cy = DarknessCircle.AbsoluteSize.Y/2
  1051. color = {color[1],color[2],1-y}
  1052. local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  1053. DarknessCircle.BackgroundColor3 = realcolor
  1054. DarknessCircle.Position = UDim2.new(0,0,y,-cy)
  1055. options.callback(realcolor)
  1056.  
  1057. update();
  1058. end
  1059. local function UpdateRing(iX,iY)
  1060. local ml = mouseLocation()
  1061. local x,y = ml.X - RGB.AbsolutePosition.X,ml.Y - RGB.AbsolutePosition.Y
  1062. local maxX,maxY = RGB.AbsoluteSize.X,RGB.AbsoluteSize.Y
  1063. if x<0 then
  1064. x=0
  1065. end
  1066. if x>maxX then
  1067. x=maxX
  1068. end
  1069. if y<0 then
  1070. y=0
  1071. end
  1072. if y>maxY then
  1073. y=maxY
  1074. end
  1075. x = x/maxX
  1076. y = y/maxY
  1077.  
  1078. local cx = RGBCircle.AbsoluteSize.X/2
  1079. local cy = RGBCircle.AbsoluteSize.Y/2
  1080.  
  1081. RGBCircle.Position = udim2(x,-cx,y,-cy)
  1082.  
  1083. color = {1-x,1-y,color[3]}
  1084. local realcolor = Color3.fromHSV(color[1],color[2],color[3])
  1085. Darkness.BackgroundColor3 = realcolor
  1086. DarknessCircle.BackgroundColor3 = realcolor
  1087. options.callback(realcolor)
  1088. update();
  1089. end
  1090.  
  1091.  
  1092. RGB.MouseButton1Down:Connect(function()
  1093. WheelDown = true
  1094. UpdateRing(getmouse.X,getmouse.Y)
  1095. end)
  1096. Darkness.MouseButton1Down:Connect(function()
  1097. SlideDown = true
  1098. UpdateSlide(getmouse.X,getmouse.Y)
  1099. end)
  1100.  
  1101.  
  1102. UserInputService.InputEnded:Connect(function(input)
  1103. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1104. WheelDown = false
  1105. SlideDown = false
  1106. end
  1107. end)
  1108.  
  1109. RGB.MouseMoved:Connect(function()
  1110. if WheelDown then
  1111. UpdateRing(getmouse.X,getmouse.Y)
  1112. end
  1113. end)
  1114. Darkness.MouseMoved:Connect(function()
  1115. if SlideDown then
  1116. UpdateSlide(getmouse.X,getmouse.Y)
  1117. end
  1118. end)
  1119.  
  1120. local function setcolor(tbl)
  1121. local realcolor = Color3.fromHSV(tbl[1],tbl[2],tbl[3])
  1122. colorHex.Text = tostring(to_hex(realcolor))
  1123. DarknessCircle.BackgroundColor3 = realcolor
  1124. end
  1125. setcolor({hue,sat,val})
  1126. end
  1127.  
  1128. function elements:Keybind(options)
  1129. if not options.text or not options.default or not options.callback then Notify("Keybind", "Missing arguments") return end
  1130.  
  1131. Resize(25)
  1132.  
  1133. local blacklisted = {
  1134. Return = true,
  1135. Space = true,
  1136. Tab = true,
  1137. W = true,
  1138. A = true,
  1139. S = true,
  1140. D = true,
  1141. I = true,
  1142. O = true,
  1143. Unknown = true
  1144. }
  1145.  
  1146. local short = {
  1147. RightControl = "RCtrl",
  1148. LeftControl = "LCtrl",
  1149. LeftShift = "LShift",
  1150. RightShift = "RShift",
  1151. MouseButton1 = "M1",
  1152. MouseButton2 = "M2",
  1153. LeftAlt = "LAlt",
  1154. RightAlt = "RAlt"
  1155. }
  1156.  
  1157. local oldKey = options.default.Name
  1158. local Keybind = Instance.new("Frame")
  1159. local keybindButton = Instance.new("TextButton")
  1160. local keybindLabel = Instance.new("TextLabel")
  1161.  
  1162. Keybind.Name = "Keybind"
  1163. Keybind.Parent = sectionFrame
  1164. Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1165. Keybind.BackgroundTransparency = 1.000
  1166. Keybind.BorderSizePixel = 0
  1167. Keybind.Position = UDim2.new(0.0348837227, 0, 0.945454538, 0)
  1168. Keybind.Size = UDim2.new(0, 200, 0, 22)
  1169. Keybind.ZIndex = 2
  1170. buttoneffect({frame = keybindButton, entered = Keybind})
  1171.  
  1172. keybindButton.Name = "keybindButton"
  1173. keybindButton.Parent = Keybind
  1174. keybindButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1175. keybindButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1176. keybindButton.BackgroundTransparency = 1.000
  1177. keybindButton.BorderSizePixel = 0
  1178. keybindButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  1179. keybindButton.Size = UDim2.new(0, 200, 0, 22)
  1180. keybindButton.AutoButtonColor = false
  1181. keybindButton.Font = Enum.Font.Gotham
  1182. keybindButton.Text = " " .. options.text
  1183. keybindButton.TextColor3 = Color3.fromRGB(157, 171, 182)
  1184. keybindButton.TextSize = 14.000
  1185. keybindButton.TextXAlignment = Enum.TextXAlignment.Left
  1186. keybindButton.MouseButton1Click:Connect(function()
  1187. keybindLabel.Text = "... "
  1188. TweenService:Create(keybindButton, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1189. TextColor3 = Color3.fromRGB(234, 239, 246)
  1190. }):Play()
  1191. TweenService:Create(keybindLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1192. TextColor3 = Color3.fromRGB(234, 239, 246)
  1193. }):Play()
  1194. local inputbegan = game:GetService("UserInputService").InputBegan:wait()
  1195. if not blacklisted[inputbegan.KeyCode.Name] then
  1196. TweenService:Create(keybindLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1197. TextColor3 = Color3.fromRGB(157, 171, 182)
  1198. }):Play()
  1199. TweenService:Create(keybindButton, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1200. TextColor3 = Color3.fromRGB(157, 171, 182)
  1201. }):Play()
  1202. keybindLabel.Text = short[inputbegan.KeyCode.Name] or inputbegan.KeyCode.Name
  1203. oldKey = inputbegan.KeyCode.Name
  1204. else
  1205. TweenService:Create(keybindButton, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1206. TextColor3 = Color3.fromRGB(157, 171, 182)
  1207. }):Play()
  1208. TweenService:Create(keybindLabel, TweenInfo.new(0.06, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  1209. TextColor3 = Color3.fromRGB(157, 171, 182)
  1210. }):Play()
  1211. keybindLabel.Text = short[oldKey] or oldKey
  1212. end
  1213. end)
  1214.  
  1215. game:GetService("UserInputService").InputBegan:connect(function(key, focused)
  1216. if not focused then
  1217. if key.KeyCode.Name == oldKey then
  1218. options.callback(oldKey)
  1219. end
  1220. end
  1221. end)
  1222.  
  1223. keybindLabel.Name = "keybindLabel"
  1224. keybindLabel.Parent = keybindButton
  1225. keybindLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1226. keybindLabel.BackgroundColor3 = Color3.fromRGB(157, 171, 182)
  1227. keybindLabel.BackgroundTransparency = 1.000
  1228. keybindLabel.Position = UDim2.new(0.910000026, 0, 0.5, 0)
  1229. keybindLabel.Size = UDim2.new(0, 36, 0, 22)
  1230. keybindLabel.Font = Enum.Font.Gotham
  1231. keybindLabel.Text = oldKey .. " "
  1232. keybindLabel.TextColor3 = Color3.fromRGB(157, 171, 182)
  1233. keybindLabel.TextSize = 14.000
  1234. keybindLabel.TextXAlignment = Enum.TextXAlignment.Right
  1235. end
  1236.  
  1237. return elements
  1238. end
  1239.  
  1240. return sections
  1241. end
  1242.  
  1243. return tabs
  1244. end
  1245.  
  1246. return tabsections
  1247. end
  1248.  
  1249. return Library
  1250.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement