Advertisement
DecerZz

Untitled

Nov 14th, 2021
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.93 KB | None | 0 0
  1. local zzUIS = game:GetService("UserInputService")
  2. local zzTweenService = game:GetService("TweenService")
  3. local zzLPlayer = game:GetService("Players").LocalPlayer
  4. local zzMouse = zzLPlayer:GetMouse()
  5. local zzRS = game:GetService("RunService")
  6. local zzTextService = game:GetService("TextService")
  7. local zzHttpService = game:GetService("HttpService")
  8.  
  9. function Ripple(Button) -- thanks xbox | edited a little for this ui lib | Hey buy falconss uwu
  10.  
  11. Button.ClipsDescendants = true
  12. if Button:FindFirstChild("Circle") then return end
  13.  
  14. spawn(function()
  15. local NewCircle = Instance.new("ImageLabel")
  16.  
  17. NewCircle.Name = "NewCircle"
  18. NewCircle.BackgroundColor3 = Color3.fromRGB(1, 1, 1)
  19. NewCircle.BackgroundTransparency = 1.000
  20. NewCircle.BorderSizePixel = 0
  21. NewCircle.Size = UDim2.new(0, 100, 0, 100)
  22. NewCircle.ZIndex = 10
  23. NewCircle.Image = "rbxassetid://266543268"
  24. NewCircle.ImageTransparency = 0.89999997615814
  25.  
  26. NewCircle.Parent = Button
  27.  
  28. NewCircle.Position = UDim2.new(0, zzMouse.X -
  29. NewCircle.AbsolutePosition.X, 0,
  30. zzMouse.Y - NewCircle.AbsolutePosition.Y)
  31.  
  32. local Size = 0
  33.  
  34. if Button.AbsoluteSize.X > Button.AbsoluteSize.Y then
  35. Size = Button.AbsoluteSize.X * 1.5
  36. elseif Button.AbsoluteSize.X < Button.AbsoluteSize.Y then
  37. Size = Button.AbsoluteSize.Y * 1.5
  38. elseif Button.AbsoluteSize.X == Button.AbsoluteSize.Y then
  39. Size = Button.AbsoluteSize.X * 1.5
  40. end
  41.  
  42. NewCircle:TweenSizeAndPosition(UDim2.new(0, Size, 0, Size), UDim2.new(
  43. 0.5, -Size / 2, 0.5, -Size / 2),
  44. "Out", "Quad", 0.5)
  45.  
  46. for Index = 1, 10 do
  47. NewCircle.ImageTransparency = NewCircle.ImageTransparency + 0.01
  48.  
  49. wait(0.5 / 10)
  50. end
  51.  
  52. NewCircle:Destroy()
  53. end)
  54. end
  55.  
  56. local DraggingColorpicker = false
  57. function Drag(obj)
  58. local dragging, dragInput, dragStart, startPos
  59.  
  60. local function update(input)
  61. local delta = input.Position - dragStart
  62. obj.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  63. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  64. end
  65.  
  66. obj.InputBegan:Connect(function(input)
  67. if input.UserInputType == Enum.UserInputType.MouseButton1 or
  68. input.UserInputType == Enum.UserInputType.Touch then
  69. if not DraggingColorpicker then
  70. dragging = true
  71. dragStart = input.Position
  72. startPos = obj.Position
  73.  
  74. input.Changed:Connect(function()
  75. if input.UserInputState == Enum.UserInputState.End then
  76. dragging = false
  77. end
  78. end)
  79. end
  80. end
  81. end)
  82.  
  83. obj.InputChanged:Connect(function(input)
  84. if input.UserInputType == Enum.UserInputType.MouseMovement or
  85. input.UserInputType == Enum.UserInputType.Touch then
  86. dragInput = input
  87. end
  88. end)
  89.  
  90. zzUIS.InputChanged:Connect(function(input)
  91. if input == dragInput and dragging then update(input) end
  92. end)
  93. end
  94.  
  95. function randomString(v)
  96. local string = ""
  97. for i = 1, v do string = string .. string.char(math.random(32, 126)) end
  98. return string
  99. end
  100.  
  101. local Library = {}
  102.  
  103. function Library:Main(GName)
  104.  
  105. local UIRevamp = Instance.new("ScreenGui")
  106. local MainBackground = Instance.new("ImageLabel")
  107. local Bar = Instance.new("Frame")
  108. local Logo = Instance.new("ImageButton")
  109. local Name = Instance.new("TextLabel")
  110. local GameName = Instance.new("TextLabel")
  111. local MainBackgroundUICorner = Instance.new("UICorner")
  112. local ContainerContainer = Instance.new("Folder")
  113. local TabContainer = Instance.new("ScrollingFrame")
  114. local TabUIListLayout = Instance.new("UIListLayout")
  115. local Notifications = Instance.new("Folder", UIRevamp)
  116.  
  117. if syn and syn.protect_gui then
  118. syn.protect_gui(UIRevamp)
  119. UIRevamp.Parent = game.CoreGui
  120. elseif gethui then
  121. UIRevamp.Parent = gethui()
  122. else
  123. UIRevamp.Parent = game.CoreGui
  124. end
  125.  
  126. UIRevamp.Name = randomString(math.random(15, 25))
  127. UIRevamp.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  128.  
  129. MainBackground.Name = "MainBackground"
  130. MainBackground.Parent = UIRevamp
  131. MainBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  132. MainBackground.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  133. MainBackground.BorderSizePixel = 0
  134. MainBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
  135. MainBackground.Size = UDim2.new(0, 540, 0, 300)
  136. MainBackground.Image = "rbxassetid://7877641241"
  137. Drag(MainBackground)
  138.  
  139. zzUIS.InputBegan:connect(function(key)
  140. if key.KeyCode == Enum.KeyCode.RightControl then
  141. MainBackground.Visible = not MainBackground.Visible
  142. end
  143. end)
  144.  
  145. Bar.Name = "Bar"
  146. Bar.Parent = MainBackground
  147. Bar.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  148. Bar.BorderSizePixel = 0
  149. Bar.Position = UDim2.new(0, 205, 0, 0)
  150. Bar.Size = UDim2.new(0, 5, 1, 0)
  151.  
  152. Logo.Name = "Logo"
  153. Logo.Parent = MainBackground
  154. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. Logo.BackgroundTransparency = 1.000
  156. Logo.BorderSizePixel = 0
  157. Logo.Position = UDim2.new(0, 10, 0, 10)
  158. Logo.Size = UDim2.new(0, 35, 0, 35)
  159. Logo.Image = "rbxassetid://6771656595"
  160.  
  161. Name.Name = "Name"
  162. Name.Parent = MainBackground
  163. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164. Name.BackgroundTransparency = 1.000
  165. Name.BorderSizePixel = 0
  166. Name.Position = UDim2.new(0.0955555588, 0, 0.00700000022, 0)
  167. Name.Size = UDim2.new(0, 153, 0, 50)
  168. Name.Font = Enum.Font.Gotham
  169. Name.Text = "RealZzHub"
  170. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. Name.TextSize = 27.000
  172. Name.TextXAlignment = Enum.TextXAlignment.Left
  173.  
  174. GameName.Name = "GameName"
  175. GameName.Parent = MainBackground
  176. GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  177. GameName.BackgroundTransparency = 1.000
  178. GameName.BorderSizePixel = 0
  179. GameName.Position = UDim2.new(0, 224, 0, 2)
  180. GameName.Size = UDim2.new(0, 316, 0, 50)
  181. GameName.Font = Enum.Font.Gotham
  182. GameName.Text = tostring(GName) or "undefined"
  183. GameName.TextColor3 = Color3.fromRGB(255, 255, 255)
  184. GameName.TextSize = 19.000
  185. GameName.TextXAlignment = Enum.TextXAlignment.Left
  186.  
  187. MainBackgroundUICorner.CornerRadius = UDim.new(0, 4)
  188. MainBackgroundUICorner.Name = "MainBackgroundUICorner"
  189. MainBackgroundUICorner.Parent = MainBackground
  190.  
  191. ContainerContainer.Name = "ContainerContainer"
  192. ContainerContainer.Parent = MainBackground
  193.  
  194. TabContainer.Name = "TabContainer"
  195. TabContainer.Parent = MainBackground
  196. TabContainer.Active = true
  197. TabContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. TabContainer.BackgroundTransparency = 1.000
  199. TabContainer.BorderSizePixel = 0
  200. TabContainer.Position = UDim2.new(0, 0, 0.173333332, 0)
  201. TabContainer.Size = UDim2.new(0, 199, 0, 242)
  202. TabContainer.ScrollBarThickness = 3
  203.  
  204. TabUIListLayout.Name = "TabUIListLayout"
  205. TabUIListLayout.Parent = TabContainer
  206. TabUIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  207. TabUIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  208. TabUIListLayout.Padding = UDim.new(0, 5)
  209.  
  210. Notifications.Name = "Notifications"
  211.  
  212. TabUIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(
  213. function()
  214. TabContainer.CanvasSize = UDim2.new(0, 0, 0,
  215. TabUIListLayout.AbsoluteContentSize
  216. .Y)
  217. end)
  218.  
  219. local FirstTab = true
  220. local Functions = {}
  221. local Config = {}
  222.  
  223. local TabLibrary = {}
  224.  
  225. function TabLibrary:Notify(NText, Time)
  226. NText = tostring(NText) or "undefined"
  227. Time = tonumber(Time) or 10
  228.  
  229. local Notification = Instance.new("Frame")
  230. local NotificationUICorner = Instance.new("UICorner")
  231. local NotificationName = Instance.new("TextLabel")
  232. local NotificationLogo = Instance.new("ImageButton")
  233. local NotificationText = Instance.new("TextLabel")
  234. local NotificationClose = Instance.new("TextButton")
  235. local NotificationBar = Instance.new("Frame")
  236. local NotificationBarUICorner = Instance.new("UICorner")
  237.  
  238. Notification.Name = randomString(10)
  239. Notification.Parent = Notifications
  240. Notification.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  241. Notification.Position = UDim2.new(0.823282957, 0, 0.876073599, 0)
  242. Notification.Size = UDim2.new(0, 282, 0, 93)
  243.  
  244. NotificationUICorner.CornerRadius = UDim.new(0, 4)
  245. NotificationUICorner.Name = "NotificationUICorner"
  246. NotificationUICorner.Parent = Notification
  247.  
  248. NotificationName.Name = "NotificationName"
  249. NotificationName.Parent = Notification
  250. NotificationName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  251. NotificationName.BackgroundTransparency = 1.000
  252. NotificationName.BorderSizePixel = 0
  253. NotificationName.Position = UDim2.new(0.13255322, 0, 0.0215053763, 0)
  254. NotificationName.Size = UDim2.new(0, 75, 0, 26)
  255. NotificationName.Font = Enum.Font.Gotham
  256. NotificationName.Text = "RealZzHub"
  257. NotificationName.TextColor3 = Color3.fromRGB(255, 255, 255)
  258. NotificationName.TextSize = 16.000
  259. NotificationName.TextXAlignment = Enum.TextXAlignment.Left
  260.  
  261. NotificationLogo.Name = "NotificationLogo"
  262. NotificationLogo.Parent = Notification
  263. NotificationLogo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  264. NotificationLogo.BackgroundTransparency = 1.000
  265. NotificationLogo.BorderSizePixel = 0
  266. NotificationLogo.Position = UDim2.new(0.0130000003, 0, 0.0280000009, 0)
  267. NotificationLogo.Size = UDim2.new(0, 26, 0, 26)
  268. NotificationLogo.Image = "rbxassetid://6771656595"
  269.  
  270. NotificationText.Name = "NotificationText"
  271. NotificationText.Parent = Notification
  272. NotificationText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  273. NotificationText.BackgroundTransparency = 1.000
  274. NotificationText.BorderSizePixel = 0
  275. NotificationText.Position = UDim2.new(0.0283687934, 0, 0.419354826, 0)
  276. NotificationText.Size = UDim2.new(0, 267, 0, 38)
  277. NotificationText.Font = Enum.Font.Gotham
  278. NotificationText.Text = NText
  279. NotificationText.TextColor3 = Color3.fromRGB(255, 255, 255)
  280. NotificationText.TextSize = 12.000
  281. NotificationText.TextXAlignment = Enum.TextXAlignment.Left
  282. NotificationText.TextYAlignment = Enum.TextYAlignment.Top
  283.  
  284. NotificationClose.Name = "NotificationClose"
  285. NotificationClose.Parent = Notification
  286. NotificationClose.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  287. NotificationClose.BackgroundTransparency = 1.000
  288. NotificationClose.BorderSizePixel = 0
  289. NotificationClose.Position = UDim2.new(0.90780139, 0, 0, 0)
  290. NotificationClose.Rotation = 45.000
  291. NotificationClose.Size = UDim2.new(0, 26, 0, 26)
  292. NotificationClose.AutoButtonColor = false
  293. NotificationClose.Font = Enum.Font.Gotham
  294. NotificationClose.Text = "+"
  295. NotificationClose.TextColor3 = Color3.fromRGB(255, 255, 255)
  296. NotificationClose.TextSize = 29.000
  297.  
  298. NotificationBar.Name = "NotificationBar"
  299. NotificationBar.Parent = Notification
  300. NotificationBar.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  301. NotificationBar.Position = UDim2.new(0, 0, 0.931225836, 0)
  302. NotificationBar.Size = UDim2.new(0, 282, 0, 6)
  303.  
  304. NotificationBarUICorner.CornerRadius = UDim.new(0, 4)
  305. NotificationBarUICorner.Name = "NotificationBarUICorner"
  306. NotificationBarUICorner.Parent = NotificationBar
  307.  
  308. local function organise()
  309. local notifies = Notifications:GetChildren()
  310. local offset = -25
  311. for i = #notifies, 1, -1 do
  312. local tween = zzTweenService:Create(notifies[i], TweenInfo.new(
  313. 0.20,
  314. Enum.EasingStyle.Sine),
  315. {
  316. Position = UDim2.new(0.843282957, 0, 0.926073599, offset)
  317. })
  318. tween:Play()
  319. offset = offset - (notifies[i].AbsoluteSize.Y + 10)
  320. end
  321. end
  322.  
  323. organise()
  324.  
  325. NotificationClose.InputBegan:Connect(function(input)
  326. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  327. local tween = zzTweenService:Create(Notification,
  328. TweenInfo.new(0.25,
  329. Enum.EasingStyle
  330. .Sine), {
  331. Position = UDim2.new(1, 300, Notification.Position.Y.Scale,
  332. Notification.Position.Y.Offset)
  333. })
  334. tween:Play()
  335. tween.Completed:Connect(function()
  336. Notification:Destroy()
  337. organise()
  338. end)
  339. end
  340. end)
  341.  
  342. local tween1 = zzTweenService:Create(NotificationBar, TweenInfo.new(
  343. Time, Enum.EasingStyle.Linear),
  344. {Size = UDim2.new(0, 2, 0, 6)})
  345. tween1:Play()
  346. tween1.Completed:Connect(function()
  347. local tween2 = zzTweenService:Create(Notification, TweenInfo.new(
  348. 0.25, Enum.EasingStyle.Sine),
  349. {
  350. Position = UDim2.new(1, 300, Notification.Position.Y.Scale,
  351. Notification.Position.Y.Offset)
  352. })
  353. tween2:Play()
  354. tween2.Completed:Connect(function()
  355. Notification:Destroy()
  356. organise()
  357. end)
  358. end)
  359. end
  360.  
  361. function TabLibrary:NewTab(TName)
  362. TName = tostring(TName) or "undefined"
  363.  
  364. Functions[TName] = {}
  365. Config[TName] = {}
  366.  
  367. local TabButton = Instance.new("Frame")
  368. local TabButtonUICorner = Instance.new("UICorner")
  369. local TabName = Instance.new("TextLabel")
  370. local NewTabContainer = Instance.new("ScrollingFrame")
  371. local ContainerUIListLayout = Instance.new("UIListLayout")
  372. local TabToggle = Instance.new("TextButton")
  373. local TabToggleUICorner = Instance.new("UICorner")
  374.  
  375. NewTabContainer.Name = TName .. "Container"
  376. NewTabContainer.Parent = ContainerContainer
  377. NewTabContainer.Active = true
  378. NewTabContainer.Visible = false
  379. NewTabContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  380. NewTabContainer.BackgroundTransparency = 1.000
  381. NewTabContainer.BorderSizePixel = 0
  382. NewTabContainer.Position = UDim2.new(0.401851863, 0, 0.173666686, 0)
  383. NewTabContainer.Size = UDim2.new(0, 317, 0, 241)
  384. NewTabContainer.HorizontalScrollBarInset = Enum.ScrollBarInset.Always
  385. NewTabContainer.ScrollBarThickness = 3
  386.  
  387. ContainerUIListLayout.Name = "ContainerUIListLayout"
  388. ContainerUIListLayout.Parent = NewTabContainer
  389. ContainerUIListLayout.HorizontalAlignment =
  390. Enum.HorizontalAlignment.Center
  391. ContainerUIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  392. ContainerUIListLayout.Padding = UDim.new(0, 5)
  393.  
  394. TabButton.Name = TName .. "TabButton"
  395. TabButton.Parent = TabContainer
  396. TabButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  397. TabButton.Position = UDim2.new(0.0637755096, 0, 0, 0)
  398. TabButton.Size = UDim2.new(0, 173, 0, 32)
  399.  
  400. TabButtonUICorner.CornerRadius = UDim.new(0, 4)
  401. TabButtonUICorner.Name = "TabButtonUICorner"
  402. TabButtonUICorner.Parent = TabButton
  403.  
  404. TabName.Name = "TabName"
  405. TabName.Parent = TabButton
  406. TabName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  407. TabName.BackgroundTransparency = 1.000
  408. TabName.BorderSizePixel = 0
  409. TabName.Position = UDim2.new(0.0433526002, 0, 0, 0)
  410. TabName.Size = UDim2.new(0, 136, 0, 32)
  411. TabName.Font = Enum.Font.Gotham
  412. TabName.Text = TName
  413. TabName.TextColor3 = Color3.fromRGB(255, 255, 255)
  414. TabName.TextSize = 14.000
  415. TabName.TextXAlignment = Enum.TextXAlignment.Left
  416.  
  417. TabToggle.Name = "TabToggle"
  418. TabToggle.Parent = TabButton
  419. TabToggle.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  420. TabToggle.BorderSizePixel = 0
  421. TabToggle.Position = UDim2.new(0, 144, 0, 5)
  422. TabToggle.Size = UDim2.new(0, 22, 0, 22)
  423. TabToggle.Font = Enum.Font.SourceSans
  424. TabToggle.Text = ""
  425. TabToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  426. TabToggle.TextSize = 14.000
  427.  
  428. TabToggleUICorner.CornerRadius = UDim.new(0, 4)
  429. TabToggleUICorner.Name = "TabToggleUICorner"
  430. TabToggleUICorner.Parent = TabToggle
  431.  
  432. if FirstTab then
  433. TabToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  434. NewTabContainer.Visible = true
  435. FirstTab = false
  436. end
  437.  
  438. ContainerUIListLayout:GetPropertyChangedSignal("AbsoluteContentSize")
  439. :Connect(function()
  440. NewTabContainer.CanvasSize = UDim2.new(0, 0, 0,
  441. ContainerUIListLayout.AbsoluteContentSize
  442. .Y)
  443. end)
  444.  
  445. TabButton.InputBegan:Connect(function(input)
  446. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  447. for i, v in pairs(TabContainer:GetChildren()) do
  448. if v ~= TabUIListLayout then
  449. v.TabToggle.BackgroundColor3 =
  450. Color3.fromRGB(38, 229, 255)
  451. end
  452. end
  453. for i, v in pairs(ContainerContainer:GetChildren()) do
  454. v.Visible = false
  455. end
  456. TabToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  457. NewTabContainer.Visible = true
  458. Ripple(TabButton)
  459. end
  460. end)
  461. TabToggle.InputBegan:Connect(function(input)
  462. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  463. for i, v in pairs(TabContainer:GetChildren()) do
  464. if v ~= TabUIListLayout then
  465. v.TabToggle.BackgroundColor3 =
  466. Color3.fromRGB(38, 229, 255)
  467. end
  468. end
  469. for i, v in pairs(ContainerContainer:GetChildren()) do
  470. v.Visible = false
  471. end
  472. TabToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  473. NewTabContainer.Visible = true
  474. Ripple(TabButton)
  475. end
  476. end)
  477.  
  478. local ItemLibrary = {}
  479.  
  480. function ItemLibrary:NewLabel(LText, Lines)
  481. LText = tostring(LText) or "undefined"
  482. Lines = Lines or false
  483.  
  484. local Label = Instance.new("TextLabel")
  485. local LabelUICorner = Instance.new("UICorner")
  486.  
  487. Label.Name = "Label"
  488. Label.Parent = NewTabContainer
  489. Label.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  490. Label.BorderSizePixel = 0
  491. Label.Position = UDim2.new(0.0457413234, 0, 0, 0)
  492. Label.Size = UDim2.new(0, 297, 0, 28)
  493. Label.Font = Enum.Font.Gotham
  494. Label.Text = LText
  495. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  496. Label.TextSize = 13.000
  497.  
  498. LabelUICorner.CornerRadius = UDim.new(0, 4)
  499. LabelUICorner.Name = "LabelUICorner"
  500. LabelUICorner.Parent = Label
  501.  
  502. if Lines then
  503. local LabelBarLeft = Instance.new("Frame")
  504. local LabelBarRight = Instance.new("Frame")
  505.  
  506. LabelBarLeft.Name = "LabelBarLeft"
  507. LabelBarLeft.Parent = Label
  508. LabelBarLeft.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  509. LabelBarLeft.BorderSizePixel = 0
  510. LabelBarLeft.Position = UDim2.new(0, 8, 0.5, -1)
  511. LabelBarLeft.Size = UDim2.new(0, 55, 0, 1)
  512.  
  513. LabelBarRight.Name = "LabelBarRight"
  514. LabelBarRight.Parent = Label
  515. LabelBarRight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  516. LabelBarRight.BorderSizePixel = 0
  517. LabelBarRight.Position = UDim2.new(1, -68, 0.5, -1)
  518. LabelBarRight.Size = UDim2.new(0, 55, 0, 1)
  519. end
  520.  
  521. end
  522.  
  523. function ItemLibrary:NewButton(BName, callback)
  524. BName = tostring(BName) or "undefined"
  525. callback = callback or function() end
  526.  
  527. local ButtonFrame = Instance.new("Frame")
  528. local ButtonFrameUICorner = Instance.new("UICorner")
  529. local ButtonButton = Instance.new("TextButton")
  530. local ButtonButtonUICorner = Instance.new("UICorner")
  531.  
  532. ButtonFrame.Name = "ButtonFrame"
  533. ButtonFrame.Parent = NewTabContainer
  534. ButtonFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  535. ButtonFrame.Size = UDim2.new(0, 297, 0, 28)
  536.  
  537. ButtonFrameUICorner.CornerRadius = UDim.new(0, 4)
  538. ButtonFrameUICorner.Name = "ButtonFrameUICorner"
  539. ButtonFrameUICorner.Parent = ButtonFrame
  540.  
  541. ButtonButton.Name = "ButtonButton"
  542. ButtonButton.Parent = ButtonFrame
  543. ButtonButton.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  544. ButtonButton.Position = UDim2.new(0, 4, 0, 4)
  545. ButtonButton.Size = UDim2.new(1, -8, 1, -8)
  546. ButtonButton.Font = Enum.Font.Gotham
  547. ButtonButton.Text = BName
  548. ButtonButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  549. ButtonButton.TextSize = 13.000
  550.  
  551. ButtonButtonUICorner.CornerRadius = UDim.new(0, 4)
  552. ButtonButtonUICorner.Name = "ButtonButtonUICorner"
  553. ButtonButtonUICorner.Parent = ButtonButton
  554.  
  555. ButtonButton.InputBegan:Connect(function(input)
  556. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  557. pcall(callback)
  558. Ripple(ButtonButton)
  559. end
  560. end)
  561. end
  562.  
  563. function ItemLibrary:NewToggle(TGName, callback, State)
  564. TGName = tostring(TGName) or "undefined"
  565. callback = callback or function() end
  566. local CurrentState = State or false
  567.  
  568. local ToggleFrame = Instance.new("Frame")
  569. local ToggleFrameUICorner = Instance.new("UICorner")
  570. local ToggleText = Instance.new("TextLabel")
  571. local ToggleToggle = Instance.new("TextButton")
  572. local ToggleToggleUICorner = Instance.new("UICorner")
  573.  
  574. ToggleFrame.Name = "ToggleFrame"
  575. ToggleFrame.Parent = NewTabContainer
  576. ToggleFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  577. ToggleFrame.Size = UDim2.new(0, 297, 0, 28)
  578.  
  579. ToggleFrameUICorner.CornerRadius = UDim.new(0, 4)
  580. ToggleFrameUICorner.Name = "ToggleFrameUICorner"
  581. ToggleFrameUICorner.Parent = ToggleFrame
  582.  
  583. ToggleText.Name = "ToggleText"
  584. ToggleText.Parent = ToggleFrame
  585. ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  586. ToggleText.BackgroundTransparency = 1.000
  587. ToggleText.BorderSizePixel = 0
  588. ToggleText.Position = UDim2.new(0, 6, 0, 0)
  589. ToggleText.Size = UDim2.new(0, 253, 0, 28)
  590. ToggleText.Font = Enum.Font.Gotham
  591. ToggleText.Text = TGName
  592. ToggleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  593. ToggleText.TextSize = 13.000
  594. ToggleText.TextXAlignment = Enum.TextXAlignment.Left
  595.  
  596. ToggleToggle.Name = "ToggleToggle"
  597. ToggleToggle.Parent = ToggleFrame
  598. if not CurrentState then
  599. ToggleToggle.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  600. else
  601. ToggleToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  602. end
  603. pcall(callback, CurrentState)
  604. Config[TName][TGName] = CurrentState
  605. ToggleToggle.BorderSizePixel = 0
  606. ToggleToggle.Position = UDim2.new(0, 271, 0, 3)
  607. ToggleToggle.Size = UDim2.new(0, 22, 0, 22)
  608. ToggleToggle.Font = Enum.Font.SourceSans
  609. ToggleToggle.Text = ""
  610. ToggleToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  611. ToggleToggle.TextSize = 14.000
  612. ToggleToggle.InputBegan:Connect(function(input)
  613. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  614. CurrentState = not CurrentState
  615. pcall(callback, CurrentState)
  616. Config[TName][TGName] = CurrentState
  617.  
  618. if not CurrentState then
  619. ToggleToggle.BackgroundColor3 =
  620. Color3.fromRGB(38, 229, 255)
  621. else
  622. ToggleToggle.BackgroundColor3 =
  623. Color3.fromRGB(20, 255, 20)
  624. end
  625. Ripple(ToggleFrame)
  626. end
  627. end)
  628.  
  629. ToggleToggleUICorner.CornerRadius = UDim.new(0, 4)
  630. ToggleToggleUICorner.Name = "ToggleToggleUICorner"
  631. ToggleToggleUICorner.Parent = ToggleToggle
  632. local ToggleLibrary = {}
  633. function ToggleLibrary:Set(v)
  634. CurrentState = v
  635. pcall(callback, CurrentState)
  636.  
  637. if not CurrentState then
  638. ToggleToggle.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  639. else
  640. ToggleToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  641. end
  642. end
  643. Functions[TName][TGName] = ToggleLibrary
  644. return ToggleLibrary
  645. end
  646.  
  647. function ItemLibrary:NewSlider(SName, MinVal, MaxVal, Inc, callback,
  648. StartValue)
  649. SName = tostring(SName) or "undefined"
  650. MinVal = tonumber(MinVal) or 0
  651. MaxVal = tonumber(MaxVal) or 100
  652. Inc = tonumber(Inc) or 1
  653. callback = callback or function() end
  654. local Val = tonumber(StartValue) or MinVal
  655. local Dragging = false
  656.  
  657. local SliderFrame = Instance.new("Frame")
  658. local SliderFrameUICorner = Instance.new("UICorner")
  659. local SliderBackground = Instance.new("TextButton")
  660. local Slider = Instance.new("Frame")
  661. local SliderUICorner = Instance.new("UICorner")
  662. local SliderBackgroundUICorner = Instance.new("UICorner")
  663. local SliderText = Instance.new("TextLabel")
  664. local SliderValue = Instance.new("TextBox")
  665.  
  666. SliderFrame.Name = "SliderFrame"
  667. SliderFrame.Parent = NewTabContainer
  668. SliderFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  669. SliderFrame.Position = UDim2.new(0.0315457396, 0, 0.414937645, 0)
  670. SliderFrame.Size = UDim2.new(0, 297, 0, 37)
  671.  
  672. SliderFrameUICorner.CornerRadius = UDim.new(0, 4)
  673. SliderFrameUICorner.Name = "SliderFrameUICorner"
  674. SliderFrameUICorner.Parent = SliderFrame
  675.  
  676. SliderBackground.Name = "SliderBackground"
  677. SliderBackground.Parent = SliderFrame
  678. SliderBackground.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  679. SliderBackground.BorderSizePixel = 0
  680. SliderBackground.Position = UDim2.new(0.0202020202, 0, 0.692000151,
  681. 0)
  682. SliderBackground.Size = UDim2.new(0, 285, 0, 6)
  683. SliderBackground.AutoButtonColor = false
  684. SliderBackground.Font = Enum.Font.Gotham
  685. SliderBackground.Text = ""
  686. SliderBackground.TextColor3 = Color3.fromRGB(0, 0, 0)
  687. SliderBackground.TextSize = 14.000
  688.  
  689. Slider.Name = "Slider"
  690. Slider.Parent = SliderBackground
  691. Slider.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  692. Slider.BorderSizePixel = 0
  693. Slider.Position = UDim2.new(-0.00355871883, 1, -0.266666681, 1)
  694. Slider.Size = UDim2.new(0, 130, 0, 6)
  695.  
  696. SliderUICorner.CornerRadius = UDim.new(0, 4)
  697. SliderUICorner.Name = "SliderUICorner"
  698. SliderUICorner.Parent = Slider
  699.  
  700. SliderBackgroundUICorner.CornerRadius = UDim.new(0, 4)
  701. SliderBackgroundUICorner.Name = "SliderBackgroundUICorner"
  702. SliderBackgroundUICorner.Parent = SliderBackground
  703.  
  704. SliderText.Name = "SliderText"
  705. SliderText.Parent = SliderFrame
  706. SliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  707. SliderText.BackgroundTransparency = 1.000
  708. SliderText.BorderSizePixel = 0
  709. SliderText.Position = UDim2.new(0, 6, 0, 4)
  710. SliderText.Size = UDim2.new(0, 210, 0, 21)
  711. SliderText.Font = Enum.Font.Gotham
  712. SliderText.Text = SName
  713. SliderText.TextColor3 = Color3.fromRGB(255, 255, 255)
  714. SliderText.TextSize = 13.000
  715. SliderText.TextXAlignment = Enum.TextXAlignment.Left
  716.  
  717. SliderValue.Name = "SliderValue"
  718. SliderValue.Parent = SliderFrame
  719. SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  720. SliderValue.BackgroundTransparency = 1.000
  721. SliderValue.Position = UDim2.new(0, 229, 0, 4)
  722. SliderValue.Size = UDim2.new(0, 61, 0, 21)
  723. SliderValue.Font = Enum.Font.Gotham
  724. SliderValue.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  725. SliderValue.Text = "50"
  726. SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  727. SliderValue.TextSize = 13.000
  728. SliderValue.TextXAlignment = Enum.TextXAlignment.Right
  729.  
  730. function set(v)
  731. if tonumber(v) then
  732. if v < MinVal then
  733. v = MinVal
  734. elseif v > MaxVal then
  735. v = MaxVal
  736. end
  737. local a, b = math.modf(v / Inc)
  738. v = math.clamp(Inc * (a + (b > 0.5 and 1 or 0)), MinVal,
  739. MaxVal)
  740. Val = v
  741. SliderValue.Text = v
  742. Slider:TweenSize(
  743. UDim2.new((v - MinVal) / (MaxVal - MinVal), 0, 1, 0),
  744. "Out", "Quad", 0.05, true)
  745. pcall(callback, tonumber(v))
  746. Config[TName][SName] = tonumber(v)
  747. else
  748. SliderValue.Text = Val
  749. Slider:TweenSize(UDim2.new((Val - MinVal) /
  750. (MaxVal - MinVal), 0, 1, 0),
  751. "Out", "Quad", 0.05, true)
  752. pcall(callback, v)
  753. end
  754. end
  755.  
  756. set(Val)
  757.  
  758. SliderValue.Focused:Connect(function()
  759. SliderValue.PlaceholderText = ""
  760. end)
  761.  
  762. SliderValue.FocusLost:Connect(function()
  763. if #SliderValue.Text > 0 then
  764. if tonumber(SliderValue.Text) then
  765. set(tonumber(SliderValue.Text))
  766. else
  767. SliderValue.Text = Val
  768. Slider:TweenSize(
  769. UDim2.new((Val - MinVal) / (MaxVal - MinVal), 0, 1,
  770. 0), "Out", "Quad", 0.05, true)
  771. pcall(callback, v)
  772. end
  773. end
  774. end)
  775.  
  776. SliderBackground.InputBegan:Connect(function(input)
  777. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  778. Dragging = true
  779. end
  780. end)
  781.  
  782. SliderBackground.InputEnded:Connect(function(input)
  783. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  784. Dragging = false
  785. end
  786. end)
  787.  
  788. zzUIS.InputChanged:Connect(function(input)
  789. if input.UserInputType == Enum.UserInputType.MouseMovement and
  790. Dragging == true then
  791. set(MinVal + ((MaxVal - MinVal) *
  792. math.clamp(
  793. (zzMouse.X - SliderBackground.AbsolutePosition.X) /
  794. SliderBackground.AbsoluteSize.X, 0, 1)))
  795. end
  796. end)
  797. local SliderLibrary = {}
  798.  
  799. function SliderLibrary:Set(v)
  800. if tonumber(v) then
  801. set(tonumber(v))
  802. else
  803. SliderValue.Text = Val
  804. Slider:TweenSize(UDim2.new((Val - MinVal) /
  805. (MaxVal - MinVal), 0, 1, 0),
  806. "Out", "Quad", 0.05, true)
  807. pcall(callback, v)
  808. end
  809. end
  810. Functions[TName][SName] = SliderLibrary
  811.  
  812. return SliderLibrary
  813. end
  814.  
  815. function ItemLibrary:NewTextBox(TBName, callback, Text, Keep)
  816. TBName = tostring(TBName) or "undefined"
  817. callback = callback or function() end
  818. Keep = Keep or false
  819. if tostring(Text) then
  820. pcall(callback, tostring(Text))
  821. Config[TName][TBName] = tostring(Text)
  822. end
  823. Text = tostring(Text) or "..."
  824.  
  825. local TextFrame = Instance.new("Frame")
  826. local TextFrameUICorner = Instance.new("UICorner")
  827. local TextText = Instance.new("TextLabel")
  828. local TextBox = Instance.new("TextBox")
  829. local TextBoxUICorner = Instance.new("UICorner")
  830.  
  831. TextFrame.Name = "TextFrame"
  832. TextFrame.Parent = NewTabContainer
  833. TextFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  834. TextFrame.Position = UDim2.new(-0.0189274456, 0, 0.00333333341, 0)
  835. TextFrame.Size = UDim2.new(0, 297, 0, 28)
  836.  
  837. TextFrameUICorner.CornerRadius = UDim.new(0, 4)
  838. TextFrameUICorner.Name = "TextFrameUICorner"
  839. TextFrameUICorner.Parent = TextFrame
  840.  
  841. TextText.Name = "TextText"
  842. TextText.Parent = TextFrame
  843. TextText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  844. TextText.BackgroundTransparency = 1.000
  845. TextText.BorderSizePixel = 0
  846. TextText.Position = UDim2.new(0, 6, 0, 0)
  847. TextText.Size = UDim2.new(0, 161, 0, 28)
  848. TextText.Font = Enum.Font.Gotham
  849. TextText.Text = TBName
  850. TextText.TextColor3 = Color3.fromRGB(255, 255, 255)
  851. TextText.TextSize = 13.000
  852. TextText.TextXAlignment = Enum.TextXAlignment.Left
  853.  
  854. TextBox.Name = "TextBox"
  855. TextBox.Parent = TextFrame
  856. TextBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  857. TextBox.Position = UDim2.new(0, 125, 0, 3)
  858. TextBox.Size = UDim2.new(0, 168, 0, 22)
  859. TextBox.Font = Enum.Font.Gotham
  860. TextBox.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  861. TextBox.PlaceholderText = "..."
  862. TextBox.Text = Text
  863. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  864. TextBox.TextSize = 13.000
  865. TextBox.TextTruncate = 1
  866.  
  867. TextBoxUICorner.CornerRadius = UDim.new(0, 4)
  868. TextBoxUICorner.Name = "TextBoxUICorner"
  869. TextBoxUICorner.Parent = TextBox
  870.  
  871. TextBox.Focused:Connect(function()
  872. TextBox.PlaceholderText = ""
  873. end)
  874.  
  875. TextBox.FocusLost:Connect(function()
  876. if #TextBox.Text > 0 then
  877. pcall(callback, TextBox.Text)
  878. Config[TName][TBName] = TextBox.Text
  879. if not Keep then
  880. TextBox.Text = ""
  881. TextBox.PlaceholderText = "..."
  882. end
  883. end
  884. end)
  885. local TextBoxLibrary = {}
  886. function TextBoxLibrary:Set(v)
  887. if #tostring(v) > 0 then
  888. TextBox.Text = tostring(v)
  889. pcall(callback, tostring(v))
  890. Config[TName][TBName] = tostring(v)
  891. if not Keep then
  892. TextBox.Text = ""
  893. TextBox.PlaceholderText = "..."
  894. end
  895. end
  896. end
  897. Functions[TName][TBName] = TextBoxLibrary
  898. return TextBoxLibrary
  899. end
  900.  
  901. function ItemLibrary:NewKeybind(KName, Key, callback)
  902. KName = tostring(KName) or "undefined"
  903. callback = callback or function() end
  904. local CurrentKey = Key.Name
  905.  
  906. local KeybindFrame = Instance.new("Frame")
  907. local KeybindFrameUICorner = Instance.new("UICorner")
  908. local KeybindText = Instance.new("TextLabel")
  909. local Keybind = Instance.new("TextButton")
  910. local KeybindUICorner = Instance.new("UICorner")
  911.  
  912. KeybindFrame.Name = "KeybindFrame"
  913. KeybindFrame.Parent = NewTabContainer
  914. KeybindFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  915. KeybindFrame.Size = UDim2.new(0, 297, 0, 28)
  916.  
  917. KeybindFrameUICorner.CornerRadius = UDim.new(0, 4)
  918. KeybindFrameUICorner.Name = "KeybindFrameUICorner"
  919. KeybindFrameUICorner.Parent = KeybindFrame
  920.  
  921. KeybindText.Name = "KeybindText"
  922. KeybindText.Parent = KeybindFrame
  923. KeybindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  924. KeybindText.BackgroundTransparency = 1.000
  925. KeybindText.BorderSizePixel = 0
  926. KeybindText.Position = UDim2.new(0, 6, 0, 0)
  927. KeybindText.Size = UDim2.new(0, 210, 0, 28)
  928. KeybindText.Font = Enum.Font.Gotham
  929. KeybindText.Text = KName
  930. KeybindText.TextColor3 = Color3.fromRGB(255, 255, 255)
  931. KeybindText.TextSize = 13.000
  932. KeybindText.TextXAlignment = Enum.TextXAlignment.Left
  933.  
  934. Keybind.Name = "Keybind"
  935. Keybind.Parent = KeybindFrame
  936. Keybind.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  937. Keybind.Position = UDim2.new(0, 183, 0, 3)
  938. Keybind.Size = UDim2.new(0, 110, 0, 22)
  939. Keybind.Font = Enum.Font.Gotham
  940. Keybind.Text = "[ " .. CurrentKey .. " ]"
  941. Keybind.TextColor3 = Color3.fromRGB(0, 0, 0)
  942. Keybind.TextSize = 13.000
  943.  
  944. KeybindUICorner.CornerRadius = UDim.new(0, 4)
  945. KeybindUICorner.Name = "KeybindUICorner"
  946. KeybindUICorner.Parent = Keybind
  947.  
  948. zzUIS.InputBegan:connect(function(cur, pressed)
  949. if not pressed then
  950. if cur.KeyCode.Name == CurrentKey or cur.UserInputType.Name ==
  951. CurrentKey then
  952. pcall(callback,
  953. ((cur.UserInputType == Enum.UserInputType.Keyboard and
  954. cur.KeyCode) or cur.UserInputType))
  955. end
  956. end
  957. end)
  958.  
  959. Keybind.MouseButton1Click:connect(function()
  960. Keybind.Text = "[ ... ]"
  961. Ripple(KeybindFrame)
  962. local i = zzUIS.InputBegan:wait()
  963. Keybind.Text = "[ " ..
  964. tostring(
  965. (i.UserInputType ==
  966. Enum.UserInputType.Keyboard and
  967. i.KeyCode.Name) or
  968. i.UserInputType.Name) .. " ]"
  969. CurrentKey = tostring((i.UserInputType ==
  970. Enum.UserInputType.Keyboard and
  971. i.KeyCode.Name) or
  972. i.UserInputType.Name)
  973. Config[TName][KName] = (i.UserInputType ==
  974. Enum.UserInputType.Keyboard and
  975. i.KeyCode.Name) or
  976. i.UserInputType.Name
  977. end)
  978. local KeybindLibrary = {}
  979. function KeybindLibrary:Set(v)
  980. CurrentKey = tostring(v)
  981. Config[TName][KName] = v
  982. Keybind.Text = "[ " .. tostring(v) .. " ]"
  983. end
  984. Functions[TName][KName] = KeybindLibrary
  985. return KeybindLibrary
  986. end
  987.  
  988. function ItemLibrary:NewDropdown(DName, Items, callback, ShowItem)
  989. DName = tostring(DName) or "undefined"
  990. callback = callback or function() end
  991. ShowItem = ShowItem or false
  992. local Item = Items[1]
  993. local Open = false
  994.  
  995. pcall(callback, Item)
  996. Config[TName][DName] = tostring(v)
  997.  
  998. local DropdownToggleFrame = Instance.new("Frame")
  999. local DropdownToggleFrameUICorner = Instance.new("UICorner")
  1000. local DropdownText = Instance.new("TextLabel")
  1001. local DropdownToggle = Instance.new("ImageButton")
  1002. local DropdownContainerFrame = Instance.new("Frame")
  1003. local DropdownContainerFrameUICorner = Instance.new("UICorner")
  1004. local DropdownContainerFrameUIListLayout = Instance.new(
  1005. "UIListLayout")
  1006.  
  1007. DropdownToggleFrame.Name = "DropdownToggleFrame"
  1008. DropdownToggleFrame.Parent = NewTabContainer
  1009. DropdownToggleFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1010. DropdownToggleFrame.Size = UDim2.new(0, 297, 0, 28)
  1011.  
  1012. DropdownToggleFrameUICorner.CornerRadius = UDim.new(0, 4)
  1013. DropdownToggleFrameUICorner.Name = "DropdownToggleFrameUICorner"
  1014. DropdownToggleFrameUICorner.Parent = DropdownToggleFrame
  1015.  
  1016. DropdownText.Name = "DropdownText"
  1017. DropdownText.Parent = DropdownToggleFrame
  1018. DropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1019. DropdownText.BackgroundTransparency = 1.000
  1020. DropdownText.BorderSizePixel = 0
  1021. DropdownText.Position = UDim2.new(0, 6, 0, 0)
  1022. DropdownText.Size = UDim2.new(0, 253, 0, 28)
  1023. DropdownText.Font = Enum.Font.Gotham
  1024. DropdownText.Text = DName
  1025. if ShowItem then
  1026. DropdownText.Text = DName .. " - " .. Item
  1027. end
  1028. DropdownText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1029. DropdownText.TextSize = 13.000
  1030. DropdownText.TextXAlignment = Enum.TextXAlignment.Left
  1031.  
  1032. DropdownToggle.Name = "DropdownToggle"
  1033. DropdownToggle.Parent = DropdownToggleFrame
  1034. DropdownToggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1035. DropdownToggle.BackgroundTransparency = 1.000
  1036. DropdownToggle.Position = UDim2.new(0, 268, 0, 1)
  1037. DropdownToggle.Rotation = -90.000
  1038. DropdownToggle.Size = UDim2.new(0, 25, 0, 25)
  1039. DropdownToggle.Image = "http://www.roblox.com/asset/?id=3192533593"
  1040. DropdownToggle.ImageColor3 = Color3.fromRGB(38, 229, 255)
  1041. DropdownToggle.ScaleType = Enum.ScaleType.Crop
  1042.  
  1043. DropdownContainerFrame.Name = "DropdownContainerFrame"
  1044. DropdownContainerFrame.Parent = NewTabContainer
  1045. DropdownContainerFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1046. DropdownContainerFrame.Position =
  1047. UDim2.new(0.0315457396, 0, 0.373443991, 0)
  1048. DropdownContainerFrame.Size = UDim2.new(0, 297, 0, 2)
  1049. DropdownContainerFrame.Visible = false
  1050. DropdownContainerFrame.BorderSizePixel = 0
  1051.  
  1052. DropdownContainerFrameUICorner.CornerRadius = UDim.new(0, 4)
  1053. DropdownContainerFrameUICorner.Name =
  1054. "DropdownContainerFrameUICorner"
  1055. DropdownContainerFrameUICorner.Parent = DropdownContainerFrame
  1056.  
  1057. DropdownContainerFrameUIListLayout.Name =
  1058. "DropdownContainerFrameUIListLayout"
  1059. DropdownContainerFrameUIListLayout.Parent = DropdownContainerFrame
  1060. DropdownContainerFrameUIListLayout.SortOrder = Enum.SortOrder
  1061. .LayoutOrder
  1062.  
  1063. local function closeOpen()
  1064. if not Open and (#Items - 1) > 0 then
  1065. Open = true
  1066. DropdownContainerFrame.Visible = true
  1067. local tween = zzTweenService:Create(DropdownContainerFrame,
  1068. TweenInfo.new(0.3,
  1069. Enum.EasingStyle
  1070. .Sine),
  1071. {
  1072. Size = UDim2.new(0, 297, 0,
  1073. math.min(((#Items) * 28), 500))
  1074. })
  1075. tween:Play()
  1076. tween.Completed:Connect(function()
  1077. for _, v in pairs(DropdownContainerFrame:GetChildren()) do
  1078. if v ~= DropdownContainerFrameUIListLayout and v ~=
  1079. DropdownContainerFrameUICorner then
  1080. v.Visible = true
  1081. end
  1082. end
  1083. end)
  1084. local tween1 = zzTweenService:Create(DropdownToggle,
  1085. TweenInfo.new(0.3,
  1086. Enum.EasingStyle
  1087. .Linear,
  1088. Enum.EasingDirection
  1089. .In,
  1090. 0),
  1091. {Rotation = 90})
  1092. tween1:Play()
  1093. else
  1094. Open = false
  1095. for _, v in pairs(DropdownContainerFrame:GetChildren()) do
  1096. if v ~= DropdownContainerFrameUIListLayout and v ~=
  1097. DropdownContainerFrameUICorner then
  1098. v.Visible = false
  1099. end
  1100. end
  1101. local tween = zzTweenService:Create(DropdownContainerFrame,
  1102. TweenInfo.new(0.3,
  1103. Enum.EasingStyle
  1104. .Sine),
  1105. {
  1106. Size = UDim2.new(0, 297, 0, 0.2)
  1107. })
  1108. tween:Play()
  1109. tween.Completed:Connect(function()
  1110. wait(0.15)
  1111. DropdownContainerFrame.Visible = false
  1112. end)
  1113. local tween1 = zzTweenService:Create(DropdownToggle,
  1114. TweenInfo.new(0.3,
  1115. Enum.EasingStyle
  1116. .Linear,
  1117. Enum.EasingDirection
  1118. .In,
  1119. 0),
  1120. {Rotation = -90})
  1121. tween1:Play()
  1122. end
  1123. end
  1124.  
  1125. DropdownToggle.InputBegan:Connect(function(input)
  1126. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1127. closeOpen()
  1128. Ripple(DropdownToggleFrame)
  1129. end
  1130. end)
  1131.  
  1132. local function AddItem(v)
  1133. local Example = Instance.new("TextButton")
  1134. local ExampleUICorner = Instance.new("UICorner")
  1135.  
  1136. Example.Name = tostring(v)
  1137. Example.Parent = DropdownContainerFrame
  1138. Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1139. Example.BackgroundTransparency = 1.000
  1140. Example.Size = UDim2.new(0, 297, 0, 28)
  1141. Example.Font = Enum.Font.Gotham
  1142. Example.Text = tostring(v)
  1143. Example.TextColor3 = Color3.fromRGB(255, 255, 255)
  1144. Example.TextSize = 13.000
  1145. Example.Visible = false
  1146.  
  1147. ExampleUICorner.CornerRadius = UDim.new(0, 4)
  1148. ExampleUICorner.Name = "ExampleUICorner"
  1149. ExampleUICorner.Parent = Example
  1150.  
  1151. Example.InputBegan:Connect(function(input)
  1152. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1153. if ShowItem then
  1154. DropdownText.Text = DName .. " - " .. tostring(v)
  1155. end
  1156. Item = tostring(v)
  1157. pcall(callback, tostring(v))
  1158. Config[TName][DName] = tostring(v)
  1159. Ripple(Example)
  1160. wait(0.3)
  1161. closeOpen()
  1162. end
  1163. end)
  1164. end
  1165.  
  1166. for _, v in pairs(Items) do AddItem(v) end
  1167.  
  1168. local DropdownLibrary = {}
  1169. function DropdownLibrary:AddItem(v)
  1170. AddItem(v)
  1171. table.insert(Items, v)
  1172. end
  1173.  
  1174. function DropdownLibrary:AddItems(newItems)
  1175. for _, v in pairs(newItems) do
  1176. AddItem(v)
  1177. table.insert(Items, v)
  1178. end
  1179. end
  1180.  
  1181. function DropdownLibrary:Clear()
  1182. if Open then closeOpen() end
  1183. for i, v in pairs(DropdownContainerFrame:GetChildren()) do
  1184. if v ~= DropdownContainerFrameUIListLayout and v ~=
  1185. DropdownContainerFrameUICorner then
  1186. v:Destroy()
  1187. Items = {}
  1188. end
  1189. end
  1190. end
  1191. function DropdownLibrary:Set(v)
  1192. if table.find(Items, tostring(v)) then
  1193. if ShowItem then
  1194. DropdownText.Text = DName .. " - " .. tostring(v)
  1195. end
  1196. Item = tostring(v)
  1197. pcall(callback, tostring(v))
  1198. Config[TName][DName] = tostring(v)
  1199. if Open then closeOpen() end
  1200. end
  1201. end
  1202. Functions[TName][DName] = DropdownLibrary
  1203. return DropdownLibrary
  1204. end
  1205.  
  1206. function ItemLibrary:NewColorpicker(CName, callback, Color)
  1207. CName = tostring(CName) or "undefined"
  1208. callback = callback or function() end
  1209. local CurrentColor = Color3.fromHSV(0, 0, 1)
  1210. local IsRainbow = false
  1211. if Color == "Rainbow" then
  1212. IsRainbow = true
  1213. else
  1214. CurrentColor =
  1215. (Color and Color3.fromHSV(Color3.toHSV(Color))) or
  1216. Color3.fromHSV(0, 0, 1)
  1217. end
  1218. local Ch, Cs, Cv
  1219. local Dragging = false
  1220. local Open = false
  1221.  
  1222. local ColorpickerToggleFrame = Instance.new("Frame")
  1223. local ColorpickerToggleFrameUICorner = Instance.new("UICorner")
  1224. local ColorpickerText = Instance.new("TextLabel")
  1225. local ColorpickerToggle = Instance.new("TextButton")
  1226. local ColorpickerToggleUICorner = Instance.new("UICorner")
  1227. local ColorpickerContainerFrame = Instance.new("Frame")
  1228. local ColorpickerContainerFrameUICorner = Instance.new("UICorner")
  1229. local SatBase = Instance.new("Frame")
  1230. local SatBaseUIGradient = Instance.new("UIGradient")
  1231. local SatTop = Instance.new("Frame")
  1232. local SatTopUICorner = Instance.new("UICorner")
  1233. local SatTopUIGradient = Instance.new("UIGradient")
  1234. local SatButton = Instance.new("ImageLabel")
  1235. local SatBaseUICorner = Instance.new("UICorner")
  1236. local HueBase = Instance.new("Frame")
  1237. local HueBaseUICorner = Instance.new("UICorner")
  1238. local HueBaseUIGradient = Instance.new("UIGradient")
  1239. local HueButton = Instance.new("ImageLabel")
  1240. local RainbowToggle = Instance.new("TextButton")
  1241. local RainbowToggleUICorner = Instance.new("UICorner")
  1242. local RainbowText = Instance.new("TextLabel")
  1243.  
  1244. ColorpickerToggleFrame.Name = "ColorpickerToggleFrame"
  1245. ColorpickerToggleFrame.Parent = NewTabContainer
  1246. ColorpickerToggleFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1247. ColorpickerToggleFrame.Size = UDim2.new(0, 297, 0, 28)
  1248.  
  1249. ColorpickerToggleFrameUICorner.CornerRadius = UDim.new(0, 4)
  1250. ColorpickerToggleFrameUICorner.Name =
  1251. "ColorpickerToggleFrameUICorner"
  1252. ColorpickerToggleFrameUICorner.Parent = ColorpickerToggleFrame
  1253.  
  1254. ColorpickerText.Name = "ColorpickerText"
  1255. ColorpickerText.Parent = ColorpickerToggleFrame
  1256. ColorpickerText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1257. ColorpickerText.BackgroundTransparency = 1.000
  1258. ColorpickerText.BorderSizePixel = 0
  1259. ColorpickerText.Position = UDim2.new(0, 6, 0, 0)
  1260. ColorpickerText.Size = UDim2.new(0, 216, 0, 28)
  1261. ColorpickerText.Font = Enum.Font.Gotham
  1262. ColorpickerText.Text = "Example"
  1263. ColorpickerText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1264. ColorpickerText.TextSize = 13.000
  1265. ColorpickerText.TextXAlignment = Enum.TextXAlignment.Left
  1266.  
  1267. ColorpickerToggle.Name = "ColorpickerToggle"
  1268. ColorpickerToggle.Parent = ColorpickerToggleFrame
  1269. ColorpickerToggle.BackgroundColor3 = CurrentColor
  1270. ColorpickerToggle.Position = UDim2.new(0, 222, 0, 3)
  1271. ColorpickerToggle.Size = UDim2.new(0, 71, 0, 22)
  1272. ColorpickerToggle.Font = Enum.Font.Gotham
  1273. ColorpickerToggle.Text = ""
  1274. ColorpickerToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1275. ColorpickerToggle.TextSize = 13.000
  1276.  
  1277. ColorpickerToggleUICorner.CornerRadius = UDim.new(0, 4)
  1278. ColorpickerToggleUICorner.Name = "ExampleKeybindUICorner"
  1279. ColorpickerToggleUICorner.Parent = ColorpickerToggle
  1280.  
  1281. ColorpickerContainerFrame.Name = "ColorpickerContainerFrame"
  1282. ColorpickerContainerFrame.Parent = NewTabContainer
  1283. ColorpickerContainerFrame.BackgroundColor3 =
  1284. Color3.fromRGB(25, 25, 25)
  1285. ColorpickerContainerFrame.Position =
  1286. UDim2.new(0.0315457396, 0, 0.207468882, 0)
  1287. ColorpickerContainerFrame.Size = UDim2.new(0, 297, 0, 0.2)
  1288.  
  1289. ColorpickerContainerFrameUICorner.CornerRadius = UDim.new(0, 4)
  1290. ColorpickerContainerFrameUICorner.Name =
  1291. "ColorpickerContainerFrameUICorner"
  1292. ColorpickerContainerFrameUICorner.Parent = ColorpickerContainerFrame
  1293.  
  1294. SatBase.Name = "SatBase"
  1295. SatBase.Parent = ColorpickerContainerFrame
  1296. SatBase.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1297. SatBase.Position = UDim2.new(0.0505050495, 0, 0.13861385, 0)
  1298. SatBase.Size = UDim2.new(0, 110, 0, 72)
  1299.  
  1300. SatBaseUIGradient.Color = ColorSequence.new {
  1301. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)),
  1302. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
  1303. }
  1304. SatBaseUIGradient.Name = "SatBaseUIGradient"
  1305. SatBaseUIGradient.Parent = SatBase
  1306.  
  1307. SatTop.Name = "SatTop"
  1308. SatTop.Parent = SatBase
  1309. SatTop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1310. SatTop.Size = UDim2.new(0, 110, 0, 72)
  1311.  
  1312. SatTopUICorner.CornerRadius = UDim.new(0, 3)
  1313. SatTopUICorner.Name = "SatTopUICorner"
  1314. SatTopUICorner.Parent = SatTop
  1315.  
  1316. SatTopUIGradient.Color = ColorSequence.new {
  1317. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 0, 0)),
  1318. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))
  1319. }
  1320. SatTopUIGradient.Rotation = 270
  1321. SatTopUIGradient.Transparency =
  1322. NumberSequence.new {
  1323. NumberSequenceKeypoint.new(0.00, 0.00),
  1324. NumberSequenceKeypoint.new(1.00, 1.00),
  1325. NumberSequenceKeypoint.new(1.00, 0.00)
  1326. }
  1327. SatTopUIGradient.Name = "SatTopUIGradient"
  1328. SatTopUIGradient.Parent = SatTop
  1329.  
  1330. SatButton.Name = "SatButton"
  1331. SatButton.Parent = SatTop
  1332. SatButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1333. SatButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1334. SatButton.BackgroundTransparency = 1.000
  1335. SatButton.Position = UDim2.new(0.488000005, 0, 0.138999999, 0)
  1336. SatButton.Size = UDim2.new(0, 11, 0, 11)
  1337. SatButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  1338. SatButton.Image = "rbxassetid://244221613"
  1339. SatButton.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1340.  
  1341. SatBaseUICorner.CornerRadius = UDim.new(0, 4)
  1342. SatBaseUICorner.Name = "SatBaseUICorner"
  1343. SatBaseUICorner.Parent = SatBase
  1344.  
  1345. HueBase.Name = "HueBase"
  1346. HueBase.Parent = ColorpickerContainerFrame
  1347. HueBase.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1348. HueBase.Position = UDim2.new(0.488215476, 0, 0.138613865, 0)
  1349. HueBase.Size = UDim2.new(0, 20, 0, 72)
  1350.  
  1351. HueBaseUICorner.CornerRadius = UDim.new(0, 4)
  1352. HueBaseUICorner.Name = "HueBaseUICorner"
  1353. HueBaseUICorner.Parent = HueBase
  1354.  
  1355. HueBaseUIGradient.Color = ColorSequence.new {
  1356. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 23, 23)),
  1357. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(1, 0, 0)),
  1358. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
  1359. ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 255, 0)),
  1360. ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 255, 0)),
  1361. ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
  1362. ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 0, 255)),
  1363. ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 0, 255)),
  1364. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 255, 255)),
  1365. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
  1366. }
  1367. HueBaseUIGradient.Rotation = 90
  1368. HueBaseUIGradient.Name = "HueBaseUIGradient"
  1369. HueBaseUIGradient.Parent = HueBase
  1370.  
  1371. HueButton.Name = "HueButton"
  1372. HueButton.Parent = HueBase
  1373. HueButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1374. HueButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1375. HueButton.BackgroundTransparency = 1.000
  1376. HueButton.Position = UDim2.new(0.488000005, 0, 0.138999999, 0)
  1377. HueButton.Size = UDim2.new(0, 11, 0, 11)
  1378. HueButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  1379. HueButton.Image = "rbxassetid://244221613"
  1380. HueButton.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1381.  
  1382. RainbowToggle.Name = "RainbowToggle"
  1383. RainbowToggle.Parent = ColorpickerContainerFrame
  1384. RainbowToggle.BackgroundColor3 = Color3.fromRGB(38, 229, 255)
  1385. RainbowToggle.Position = UDim2.new(0, 253, 0, 13)
  1386. RainbowToggle.Size = UDim2.new(0, 22, 0, 22)
  1387. RainbowToggle.Font = Enum.Font.Gotham
  1388. RainbowToggle.Text = ""
  1389. RainbowToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1390. RainbowToggle.TextSize = 13.000
  1391.  
  1392. RainbowToggleUICorner.CornerRadius = UDim.new(0, 4)
  1393. RainbowToggleUICorner.Name = "ExampleKeybindUICorner"
  1394. RainbowToggleUICorner.Parent = RainbowToggle
  1395.  
  1396. RainbowText.Name = "RainbowText"
  1397. RainbowText.Parent = ColorpickerContainerFrame
  1398. RainbowText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1399. RainbowText.BackgroundTransparency = 1.000
  1400. RainbowText.BorderSizePixel = 0
  1401. RainbowText.Position = UDim2.new(0, 185, 0, 10)
  1402. RainbowText.Size = UDim2.new(0, 62, 0, 28)
  1403. RainbowText.Font = Enum.Font.Gotham
  1404. RainbowText.Text = "Rainbow:"
  1405. RainbowText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1406. RainbowText.TextSize = 13.000
  1407. RainbowText.TextXAlignment = Enum.TextXAlignment.Left
  1408.  
  1409. RainbowText.Visible = false
  1410. RainbowToggle.Visible = false
  1411. HueButton.Visible = false
  1412. HueBase.Visible = false
  1413. SatButton.Visible = false
  1414. SatTop.Visible = false
  1415. SatBase.Visible = false
  1416. ColorpickerContainerFrame.Visible = false
  1417.  
  1418. local function closeOpen()
  1419. if not Open then
  1420. ColorpickerContainerFrame.Visible = true
  1421. local tween = zzTweenService:Create(
  1422. ColorpickerContainerFrame, TweenInfo.new(
  1423. 0.3, Enum.EasingStyle.Sine),
  1424. {Size = UDim2.new(0, 297, 0, 101)})
  1425. tween:Play()
  1426. tween.Completed:Connect(function()
  1427. Open = true
  1428. RainbowText.Visible = true
  1429. RainbowToggle.Visible = true
  1430. HueButton.Visible = true
  1431. HueBase.Visible = true
  1432. SatButton.Visible = true
  1433. SatTop.Visible = true
  1434. SatBase.Visible = true
  1435. end)
  1436. else
  1437. Open = false
  1438. RainbowText.Visible = false
  1439. RainbowToggle.Visible = false
  1440. HueButton.Visible = false
  1441. HueBase.Visible = false
  1442. SatButton.Visible = false
  1443. SatTop.Visible = false
  1444. SatBase.Visible = false
  1445. local tween = zzTweenService:Create(
  1446. ColorpickerContainerFrame, TweenInfo.new(
  1447. 0.3, Enum.EasingStyle.Sine),
  1448. {Size = UDim2.new(0, 297, 0, 0.2)})
  1449. tween:Play()
  1450. tween.Completed:Connect(function()
  1451. wait(0.15)
  1452. ColorpickerContainerFrame.Visible = false
  1453. end)
  1454. end
  1455. end
  1456.  
  1457. ColorpickerToggle.InputBegan:Connect(function(input)
  1458. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1459. closeOpen()
  1460. Ripple(ColorpickerToggleFrame)
  1461. end
  1462. end)
  1463.  
  1464. local function set(h, s, v)
  1465. local tween = zzTweenService:Create(HueButton, TweenInfo.new(
  1466. 0.05,
  1467. Enum.EasingStyle.Sine),
  1468. {
  1469. Position = UDim2.new(0.5, 0, h, 0)
  1470. })
  1471. tween:Play()
  1472. local tween1 = zzTweenService:Create(SatButton, TweenInfo.new(
  1473. 0.05,
  1474. Enum.EasingStyle.Sine),
  1475. {
  1476. Position = UDim2.new(s, 0, 1 - v, 0)
  1477. })
  1478. tween1:Play()
  1479. ColorpickerToggle.BackgroundColor3 = Color3.fromHSV(h, s, v)
  1480. SatBaseUIGradient.Color =
  1481. ColorSequence.new(Color3.new(1, 1, 1),
  1482. Color3.fromHSV(h, 1, 1))
  1483. CurrentColor = Color3.fromHSV(h, s, v)
  1484. Ch, Cs, Cv = h, s, v
  1485. pcall(callback, Color3.fromRGB(CurrentColor.R, CurrentColor.G,
  1486. CurrentColor.B))
  1487. if IsRainbow then
  1488. Config[TName][CName] = "Rainbow"
  1489. else
  1490. Config[TName][CName] =
  1491. Color3.fromRGB(CurrentColor.R, CurrentColor.G,
  1492. CurrentColor.B)
  1493. end
  1494. end
  1495.  
  1496. set(CurrentColor:ToHSV())
  1497.  
  1498. task.spawn(function()
  1499. while IsRainbow do
  1500. set(tick() % 7 / 7, Cs, Cv)
  1501. wait()
  1502. end
  1503. end)
  1504.  
  1505. HueBase.InputBegan:Connect(function(input)
  1506. if input.UserInputType == Enum.UserInputType.MouseButton1 and
  1507. not Dragging then
  1508. if IsRainbow then
  1509. IsRainbow = false
  1510. RainbowToggle.BackgroundColor3 =
  1511. Color3.fromRGB(38, 229, 255)
  1512. end
  1513. Dragging = true
  1514. DraggingColorpicker = true
  1515. local MC, IC
  1516. MC = zzMouse.Move:Connect(function()
  1517. set(math.clamp(
  1518. (zzMouse.Y - HueBase.AbsolutePosition.Y) /
  1519. HueBase.AbsoluteSize.Y, 0, 1), Cs, Cv)
  1520. end)
  1521. IC = input.Changed:Connect(function()
  1522. if input.UserInputState == Enum.UserInputState.End then
  1523. MC:Disconnect()
  1524. IC:Disconnect()
  1525. Dragging = false
  1526. DraggingColorpicker = false
  1527. end
  1528. end)
  1529. end
  1530. end)
  1531.  
  1532. SatBase.InputBegan:Connect(function(input)
  1533. if input.UserInputType == Enum.UserInputType.MouseButton1 and
  1534. not Dragging then
  1535. Dragging = true
  1536. DraggingColorpicker = true
  1537. local MC, IC
  1538. MC = zzMouse.Move:Connect(function()
  1539. set(Ch,
  1540. math.clamp(
  1541. (zzMouse.X - SatBase.AbsolutePosition.X) /
  1542. SatBase.AbsoluteSize.X, 0, 1), 1 -
  1543. math.clamp(
  1544. (zzMouse.Y - SatBase.AbsolutePosition.Y) /
  1545. SatBase.AbsoluteSize.Y, 0, 1))
  1546. end)
  1547. IC = input.Changed:Connect(function()
  1548. if input.UserInputState == Enum.UserInputState.End then
  1549. MC:Disconnect()
  1550. IC:Disconnect()
  1551. Dragging = false
  1552. DraggingColorpicker = false
  1553. end
  1554. end)
  1555. end
  1556. end)
  1557.  
  1558. RainbowToggle.InputBegan:Connect(function(input)
  1559. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1560. IsRainbow = not IsRainbow
  1561. if not IsRainbow then
  1562. RainbowToggle.BackgroundColor3 =
  1563. Color3.fromRGB(38, 229, 255)
  1564. else
  1565. RainbowToggle.BackgroundColor3 =
  1566. Color3.fromRGB(20, 255, 20)
  1567. task.spawn(function()
  1568. while IsRainbow do
  1569. set(tick() % 7 / 7, Cs, Cv)
  1570. wait()
  1571. end
  1572. end)
  1573. end
  1574. end
  1575. end)
  1576. local ColorpickerLibrary = {}
  1577. function ColorpickerLibrary:Set(v)
  1578. IsRainbow = false
  1579. if tostring(v) and tostring(v) == "Rainbow" then
  1580. IsRainbow = true
  1581. RainbowToggle.BackgroundColor3 = Color3.fromRGB(20, 255, 20)
  1582. task.spawn(function()
  1583. while IsRainbow do
  1584. set(tick() % 7 / 7, Cs, Cv)
  1585. wait()
  1586. end
  1587. end)
  1588. else
  1589. set(v:ToHSV())
  1590. end
  1591. end
  1592. Functions[TName][CName] = ColorpickerLibrary
  1593. return ColorpickerLibrary
  1594. end
  1595.  
  1596. return ItemLibrary
  1597. end
  1598.  
  1599. function TabLibrary:NewConfigTab()
  1600. if not isfolder("RealZzHub") then makefolder("RealZzHub") end
  1601. if not isfolder("RealZzHub/" .. game.GameId) then
  1602. makefolder("RealZzHub/" .. game.GameId)
  1603. end
  1604. local DefaultConfig = Config
  1605. if DefaultConfig then
  1606. writefile("RealZzHub/" .. game.GameId .. "/default.json",
  1607. zzHttpService:JSONEncode(DefaultConfig))
  1608. end
  1609. local configs = {"t"}
  1610. local SelectedConfig
  1611. local NM
  1612. local ConfigTab = TabLibrary:NewTab("Configs")
  1613.  
  1614. local ConfigDropdown = ConfigTab:NewDropdown("Configs", configs,
  1615. function(v)
  1616. SelectedConfig = v
  1617. end, true)
  1618. ConfigDropdown:Clear()
  1619. wait(0.2)
  1620. for _, v in pairs(listfiles("RealZzHub/" .. game.GameId)) do
  1621. table.insert(configs, string.split(v, "RealZzHub/" .. game.GameId ..
  1622. "\\")[2])
  1623. ConfigDropdown:AddItem(tostring(
  1624. string.split(v, "RealZzHub/" ..
  1625. game.GameId .. "\\")[2]))
  1626. end
  1627. ConfigDropdown:Set("default.json")
  1628. ConfigTab:NewButton("Load", function()
  1629. local c = zzHttpService:JSONDecode(
  1630. readfile("RealZzHub/" .. game.GameId .. "/" ..
  1631. string.lower(SelectedConfig)))
  1632. for i, v in pairs(c) do
  1633. if Functions[i] then
  1634. for x, y in pairs(v) do
  1635. Functions[i][x]:Set(y)
  1636. end
  1637. end
  1638. end
  1639. end)
  1640. ConfigTab:NewButton("Delete", function()
  1641. if string.lower(SelectedConfig) == "default.json" then
  1642. TabLibrary:Notify("default.json cannot be removed!", 2)
  1643. else
  1644. delfile("RealZzHub/" .. game.GameId .. "/" ..
  1645. string.lower(SelectedConfig))
  1646. configs = {}
  1647. ConfigDropdown:Clear()
  1648. wait(1)
  1649. for _, v in pairs(listfiles("RealZzHub/" .. game.GameId)) do
  1650. table.insert(configs, string.split(v, "RealZzHub/" ..
  1651. game.GameId .. "\\")[2])
  1652. ConfigDropdown:AddItem(
  1653. tostring(string.split(v, "RealZzHub/" .. game.GameId ..
  1654. "\\")[2]))
  1655. end
  1656. ConfigDropdown:Set(configs[1])
  1657. end
  1658. end)
  1659. ConfigTab:NewButton("Overwrite", function()
  1660. if string.lower(SelectedConfig) == "default.json" then
  1661. TabLibrary:Notify("Default.json cannot be overwriten!", 2)
  1662. else
  1663. writefile("RealZzHub/" .. game.GameId .. "/" ..
  1664. string.lower(SelectedConfig),
  1665. zzHttpService:JSONEncode(Config))
  1666. end
  1667. end)
  1668. ConfigTab:NewTextBox("Name", function(v) NM = string.lower(v) end,
  1669. "...", true)
  1670. ConfigTab:NewButton("Create", function()
  1671. if isfile("RealZzHub/" .. game.GameId .. "/" .. string.lower(NM) ..
  1672. ".json") or string.lower(NM) == "default" then
  1673. TabLibrary:Notify("Config already exists!", 2)
  1674. elseif string.find(string.lower(NM), ".") then
  1675. TabLibrary:Notify("Name cannot contain \".\"!", 2)
  1676. else
  1677. writefile(
  1678. "RealZzHub/" .. game.GameId .. "/" .. string.lower(NM) ..
  1679. ".json", zzHttpService:JSONEncode(Config))
  1680. configs = {}
  1681. ConfigDropdown:Clear()
  1682. wait(1)
  1683. for _, v in pairs(listfiles("RealZzHub/" .. game.GameId)) do
  1684. table.insert(configs, string.split(v, "RealZzHub/" ..
  1685. game.GameId .. "\\")[2])
  1686. ConfigDropdown:AddItem(
  1687. tostring(string.split(v, "RealZzHub/" .. game.GameId ..
  1688. "\\")[2]))
  1689. end
  1690. ConfigDropdown:Set(configs[1])
  1691. end
  1692. end)
  1693.  
  1694. end
  1695.  
  1696. return TabLibrary
  1697.  
  1698. end
  1699.  
  1700. return Library
  1701.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement