Advertisement
DE_Speedruns

Untitled

May 5th, 2024 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.96 KB | None | 0 0
  1. local lib = {RainbowColorValue = 0, HueSelectionPosition = 0}
  2. local UserInputService = game:GetService("UserInputService")
  3. local TweenService = game:GetService("TweenService")
  4. local RunService = game:GetService("RunService")
  5. local LocalPlayer = game:GetService("Players").LocalPlayer
  6. local Mouse = LocalPlayer:GetMouse()
  7. local PresetColor = Color3.fromRGB(44, 120, 224)
  8. local CloseBind = Enum.KeyCode.RightControl
  9.  
  10. local knixhub = Instance.new("ScreenGui")
  11. knixhub.Name = "local Mafaka"
  12. knixhub.Parent = game.CoreGui
  13. knixhub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. coroutine.wrap(
  16. function()
  17. while wait() do
  18. lib.RainbowColorValue = lib.RainbowColorValue + 1 / 255
  19. lib.HueSelectionPosition = lib.HueSelectionPosition + 1
  20.  
  21. if lib.RainbowColorValue >= 1 then
  22. lib.RainbowColorValue = 0
  23. end
  24.  
  25. if lib.HueSelectionPosition == 80 then
  26. lib.HueSelectionPosition = 0
  27. end
  28. end
  29. end
  30. )()
  31.  
  32. local function MakeDraggable(topbarobject, object)
  33. local Dragging = nil
  34. local DragInput = nil
  35. local DragStart = nil
  36. local StartPosition = nil
  37.  
  38. local function Update(input)
  39. local Delta = input.Position - DragStart
  40. local pos =
  41. UDim2.new(
  42. StartPosition.X.Scale,
  43. StartPosition.X.Offset + Delta.X,
  44. StartPosition.Y.Scale,
  45. StartPosition.Y.Offset + Delta.Y
  46. )
  47. object.Position = pos
  48. end
  49.  
  50. topbarobject.InputBegan:Connect(
  51. function(input)
  52. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  53. Dragging = true
  54. DragStart = input.Position
  55. StartPosition = object.Position
  56.  
  57. input.Changed:Connect(
  58. function()
  59. if input.UserInputState == Enum.UserInputState.End then
  60. Dragging = false
  61. end
  62. end
  63. )
  64. end
  65. end
  66. )
  67.  
  68. topbarobject.InputChanged:Connect(
  69. function(input)
  70. if
  71. input.UserInputType == Enum.UserInputType.MouseMovement or
  72. input.UserInputType == Enum.UserInputType.Touch
  73. then
  74. DragInput = input
  75. end
  76. end
  77. )
  78.  
  79. UserInputService.InputChanged:Connect(
  80. function(input)
  81. if input == DragInput and Dragging then
  82. Update(input)
  83. end
  84. end
  85. )
  86. end
  87.  
  88. function lib:Window(text, preset, closebind)
  89. CloseBind = closebind or Enum.KeyCode.RightControl
  90. PresetColor = preset or Color3.fromRGB(44, 120, 224)
  91. fs = false
  92. local Main = Instance.new("Frame")
  93. local TabHold = Instance.new("Frame")
  94. local TabHoldLayout = Instance.new("UIListLayout")
  95. local Title = Instance.new("TextLabel")
  96. local TabFolder = Instance.new("Folder")
  97. local DragFrame = Instance.new("Frame")
  98.  
  99. Main.Name = "Main"
  100. Main.Parent = knixhub
  101. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  102. Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  103. Main.BorderSizePixel = 0
  104. Main.Position = UDim2.new(0.5, 0, 0.5, 0)
  105. Main.Size = UDim2.new(0, 0, 0, 0)
  106. Main.ClipsDescendants = true
  107. Main.Visible = false
  108.  
  109. TabHold.Name = "TabHold"
  110. TabHold.Parent = Main
  111. TabHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  112. TabHold.BackgroundTransparency = 1.000
  113. TabHold.Position = UDim2.new(0.0339285731, 0, 0.147335425, 0)
  114. TabHold.Size = UDim2.new(0, 107, 0, 254)
  115.  
  116. TabHoldLayout.Name = "TabHoldLayout"
  117. TabHoldLayout.Parent = TabHold
  118. TabHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  119. TabHoldLayout.Padding = UDim.new(0, 11)
  120.  
  121. Title.Name = "Title"
  122. Title.Parent = Main
  123. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124. Title.BackgroundTransparency = 1.000
  125. Title.Position = UDim2.new(0.0339285731, 0, 0.0564263314, 0)
  126. Title.Size = UDim2.new(0, 200, 0, 23)
  127. Title.Font = Enum.Font.GothamSemibold
  128. Title.Text = text
  129. Title.TextColor3 = Color3.fromRGB(68, 68, 68)
  130. Title.TextSize = 12.000
  131. Title.TextXAlignment = Enum.TextXAlignment.Left
  132.  
  133. DragFrame.Name = "DragFrame"
  134. DragFrame.Parent = Main
  135. DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  136. DragFrame.BackgroundTransparency = 1.000
  137. DragFrame.Size = UDim2.new(0, 560, 0, 41)
  138.  
  139. local LoadFrame = Instance.new("Frame")
  140. local Barload = Instance.new("Frame")
  141. local BarloadCorner = Instance.new("UICorner")
  142. local LoadText = Instance.new("TextLabel")
  143. local LoadTitle = Instance.new("TextLabel")
  144.  
  145. LoadFrame.Name = "LoadFrame"
  146. LoadFrame.Parent = knixhub
  147. LoadFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  148. LoadFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  149. LoadFrame.BorderSizePixel = 0
  150. LoadFrame.ClipsDescendants = true
  151. LoadFrame.Position = UDim2.new(0.499739647, 0, 0.499451756, 0)
  152. LoadFrame.Size = UDim2.new(0, 0, 0, 0)
  153.  
  154. Barload.Name = "Barload"
  155. Barload.Parent = LoadFrame
  156. Barload.BackgroundColor3 = Color3.fromRGB(44, 120, 224)
  157. Barload.Position = UDim2.new(0.0436137058, 0, 0.776658118, 0)
  158. Barload.Size = UDim2.new(0, 0, 0, 2)
  159. Barload.BackgroundTransparency = 1
  160.  
  161. BarloadCorner.Name = "BarloadCorner"
  162. BarloadCorner.Parent = Barload
  163.  
  164. LoadText.Name = "LoadText"
  165. LoadText.Parent = LoadFrame
  166. LoadText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167. LoadText.BackgroundTransparency = 1.000
  168. LoadText.Position = UDim2.new(0.186915889, 0, 0.261682242, 0)
  169. LoadText.Size = UDim2.new(0, 200, 0, 50)
  170. LoadText.Font = Enum.Font.Gotham
  171. LoadText.TextColor3 = Color3.fromRGB(255, 255, 255)
  172. LoadText.TextSize = 18.000
  173. LoadText.TextTransparency = 1
  174. LoadText.Text = "Loading..."
  175.  
  176. LoadTitle.Name = "LoadTitle"
  177. LoadTitle.Parent = LoadFrame
  178. LoadTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  179. LoadTitle.BackgroundTransparency = 1.000
  180. LoadTitle.Position = UDim2.new(0.0432743616, 0, 0.1125011, 0)
  181. LoadTitle.Size = UDim2.new(0, 200, 0, 23)
  182. LoadTitle.Font = Enum.Font.GothamSemibold
  183. LoadTitle.Text = "load Data"
  184. LoadTitle.TextColor3 = Color3.fromRGB(68, 68, 68)
  185. LoadTitle.TextSize = 12.000
  186. LoadTitle.TextXAlignment = Enum.TextXAlignment.Left
  187. LoadTitle.TextTransparency = 1
  188.  
  189. LoadFrame:TweenSize(UDim2.new(0, 321,0, 107), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  190.  
  191. wait(.6)
  192.  
  193. TweenService:Create(
  194. Barload,
  195. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  196. {BackgroundTransparency = 0}
  197. ):Play()
  198. TweenService:Create(
  199. LoadText,
  200. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  201. {TextTransparency = 0}
  202. ):Play()
  203. TweenService:Create(
  204. LoadTitle,
  205. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  206. {TextTransparency = 0}
  207. ):Play()
  208.  
  209. wait(.6)
  210.  
  211. Barload:TweenSize(UDim2.new(0, 50,0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  212. LoadText.Text = "Checking game..."
  213.  
  214. wait(1)
  215.  
  216. Barload:TweenSize(UDim2.new(0, 100,0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  217. LoadText.Text = "Good"
  218.  
  219. wait(.5)
  220.  
  221. Barload:TweenSize(UDim2.new(0, 150,0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  222. LoadText.Text = "Check Update"
  223.  
  224. wait(.5)
  225.  
  226. Barload:TweenSize(UDim2.new(0, 200,0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  227. LoadText.Text = "Good"
  228.  
  229. wait(.5)
  230.  
  231. Barload:TweenSize(UDim2.new(0, 292,0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  232. LoadText.Text = "Ready go!"
  233.  
  234. wait(2)
  235.  
  236.  
  237. TweenService:Create(
  238. Barload,
  239. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  240. {BackgroundTransparency = 1}
  241. ):Play()
  242. TweenService:Create(
  243. LoadText,
  244. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  245. {TextTransparency = 1}
  246. ):Play()
  247. TweenService:Create(
  248. LoadTitle,
  249. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  250. {TextTransparency = 1}
  251. ):Play()
  252.  
  253. wait(.6)
  254.  
  255. LoadFrame:TweenSize(UDim2.new(0, 0,0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  256.  
  257. wait(.5)
  258. Main.Visible = true
  259.  
  260. Main:TweenSize(UDim2.new(0, 560, 0, 319), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  261.  
  262.  
  263. MakeDraggable(DragFrame, Main)
  264.  
  265. local uitoggled = false
  266. UserInputService.InputBegan:Connect(
  267. function(io, p)
  268. if io.KeyCode == CloseBind then
  269. if uitoggled == false then
  270. Main:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  271. uitoggled = true
  272. wait(.5)
  273. knixhub.Enabled = false
  274. else
  275. Main:TweenSize(UDim2.new(0, 560, 0, 319), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  276. knixhub.Enabled = true
  277. uitoggled = false
  278. end
  279. end
  280. end
  281. )
  282.  
  283. TabFolder.Name = "TabFolder"
  284. TabFolder.Parent = Main
  285.  
  286. function lib:ChangePresetColor(toch)
  287. PresetColor = toch
  288. end
  289.  
  290. function lib:Notification(texttitle,textdesc,textbtn)
  291.  
  292. local NotificationHold = Instance.new("TextButton")
  293. local NotificationFrame = Instance.new("Frame")
  294. local OkayBtn = Instance.new("TextButton")
  295. local OkayBtnCorner = Instance.new("UICorner")
  296. local OkayBtnTitle = Instance.new("TextLabel")
  297. local NotificationTitle = Instance.new("TextLabel")
  298. local NotificationDesc = Instance.new("TextLabel")
  299.  
  300.  
  301. NotificationHold.Name = "NotificationHold"
  302. NotificationHold.Parent = Main
  303. NotificationHold.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  304. NotificationHold.BackgroundTransparency = 1.000
  305. NotificationHold.BorderSizePixel = 0
  306. NotificationHold.Size = UDim2.new(0, 560, 0, 319)
  307. NotificationHold.AutoButtonColor = false
  308. NotificationHold.Font = Enum.Font.SourceSans
  309. NotificationHold.Text = ""
  310. NotificationHold.TextColor3 = Color3.fromRGB(0, 0, 0)
  311. NotificationHold.TextSize = 14.000
  312.  
  313. TweenService:Create(
  314. NotificationHold,
  315. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  316. {BackgroundTransparency = 0.7}
  317. ):Play()
  318. wait(0.4)
  319.  
  320. NotificationFrame.Name = "NotificationFrame"
  321. NotificationFrame.Parent = NotificationHold
  322. NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  323. NotificationFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  324. NotificationFrame.BorderSizePixel = 0
  325. NotificationFrame.ClipsDescendants = true
  326. NotificationFrame.Position = UDim2.new(0.5, 0, 0.498432577, 0)
  327.  
  328. NotificationFrame:TweenSize(UDim2.new(0, 164,0, 193), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  329.  
  330. OkayBtn.Name = "OkayBtn"
  331. OkayBtn.Parent = NotificationFrame
  332. OkayBtn.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  333. OkayBtn.Position = UDim2.new(0.0609756112, 0, 0.720207274, 0)
  334. OkayBtn.Size = UDim2.new(0, 144, 0, 42)
  335. OkayBtn.AutoButtonColor = false
  336. OkayBtn.Font = Enum.Font.SourceSans
  337. OkayBtn.Text = ""
  338. OkayBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  339. OkayBtn.TextSize = 14.000
  340.  
  341. OkayBtnCorner.CornerRadius = UDim.new(0, 5)
  342. OkayBtnCorner.Name = "OkayBtnCorner"
  343. OkayBtnCorner.Parent = OkayBtn
  344.  
  345. OkayBtnTitle.Name = "OkayBtnTitle"
  346. OkayBtnTitle.Parent = OkayBtn
  347. OkayBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  348. OkayBtnTitle.BackgroundTransparency = 1.000
  349. OkayBtnTitle.Position = UDim2.new(0.0763888881, 0, 0, 0)
  350. OkayBtnTitle.Size = UDim2.new(0, 181, 0, 42)
  351. OkayBtnTitle.Font = Enum.Font.Gotham
  352. OkayBtnTitle.Text = textbtn
  353. OkayBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  354. OkayBtnTitle.TextSize = 14.000
  355. OkayBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  356.  
  357. NotificationTitle.Name = "NotificationTitle"
  358. NotificationTitle.Parent = NotificationFrame
  359. NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  360. NotificationTitle.BackgroundTransparency = 1.000
  361. NotificationTitle.Position = UDim2.new(0.0670731738, 0, 0.0829015523, 0)
  362. NotificationTitle.Size = UDim2.new(0, 143, 0, 26)
  363. NotificationTitle.Font = Enum.Font.Gotham
  364. NotificationTitle.Text = texttitle
  365. NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  366. NotificationTitle.TextSize = 18.000
  367. NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left
  368.  
  369. NotificationDesc.Name = "NotificationDesc"
  370. NotificationDesc.Parent = NotificationFrame
  371. NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  372. NotificationDesc.BackgroundTransparency = 1.000
  373. NotificationDesc.Position = UDim2.new(0.0670000017, 0, 0.218999997, 0)
  374. NotificationDesc.Size = UDim2.new(0, 143, 0, 91)
  375. NotificationDesc.Font = Enum.Font.Gotham
  376. NotificationDesc.Text = textdesc
  377. NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
  378. NotificationDesc.TextSize = 15.000
  379. NotificationDesc.TextWrapped = true
  380. NotificationDesc.TextXAlignment = Enum.TextXAlignment.Left
  381. NotificationDesc.TextYAlignment = Enum.TextYAlignment.Top
  382.  
  383. OkayBtn.MouseEnter:Connect(function()
  384. TweenService:Create(
  385. OkayBtn,
  386. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  387. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  388. ):Play()
  389. end)
  390.  
  391. OkayBtn.MouseLeave:Connect(function()
  392. TweenService:Create(
  393. OkayBtn,
  394. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  395. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  396. ):Play()
  397. end)
  398.  
  399. OkayBtn.MouseButton1Click:Connect(function()
  400. NotificationFrame:TweenSize(UDim2.new(0, 0,0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  401.  
  402. wait(0.4)
  403.  
  404. TweenService:Create(
  405. NotificationHold,
  406. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  407. {BackgroundTransparency = 1}
  408. ):Play()
  409.  
  410. wait(.3)
  411.  
  412. NotificationHold:Destroy()
  413. end)
  414. end
  415. local tabhold = {}
  416. function tabhold:Tab(text)
  417. local TabBtn = Instance.new("TextButton")
  418. local TabTitle = Instance.new("TextLabel")
  419. local TabBtnIndicator = Instance.new("Frame")
  420. local TabBtnIndicatorCorner = Instance.new("UICorner")
  421.  
  422. TabBtn.Name = "TabBtn"
  423. TabBtn.Parent = TabHold
  424. TabBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  425. TabBtn.BackgroundTransparency = 1.000
  426. TabBtn.Size = UDim2.new(0, 107, 0, 21)
  427. TabBtn.Font = Enum.Font.SourceSans
  428. TabBtn.Text = ""
  429. TabBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  430. TabBtn.TextSize = 14.000
  431.  
  432. TabTitle.Name = "TabTitle"
  433. TabTitle.Parent = TabBtn
  434. TabTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  435. TabTitle.BackgroundTransparency = 1.000
  436. TabTitle.Size = UDim2.new(0, 107, 0, 21)
  437. TabTitle.Font = Enum.Font.Gotham
  438. TabTitle.Text = text
  439. TabTitle.TextColor3 = Color3.fromRGB(150, 150, 150)
  440. TabTitle.TextSize = 14.000
  441. TabTitle.TextXAlignment = Enum.TextXAlignment.Left
  442.  
  443. TabBtnIndicator.Name = "TabBtnIndicator"
  444. TabBtnIndicator.Parent = TabBtn
  445. TabBtnIndicator.BackgroundColor3 = PresetColor
  446. TabBtnIndicator.BorderSizePixel = 0
  447. TabBtnIndicator.Position = UDim2.new(0, 0, 1, 0)
  448. TabBtnIndicator.Size = UDim2.new(0, 0, 0, 2)
  449.  
  450. TabBtnIndicatorCorner.Name = "TabBtnIndicatorCorner"
  451. TabBtnIndicatorCorner.Parent = TabBtnIndicator
  452.  
  453. coroutine.wrap(
  454. function()
  455. while wait() do
  456. TabBtnIndicator.BackgroundColor3 = PresetColor
  457. end
  458. end
  459. )()
  460.  
  461.  
  462. local Tab = Instance.new("ScrollingFrame")
  463. local TabLayout = Instance.new("UIListLayout")
  464.  
  465. Tab.Name = "Tab"
  466. Tab.Parent = TabFolder
  467. Tab.Active = true
  468. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  469. Tab.BackgroundTransparency = 1.000
  470. Tab.BorderSizePixel = 0
  471. Tab.Position = UDim2.new(0.31400001, 0, 0.147, 0)
  472. Tab.Size = UDim2.new(0, 373, 0, 254)
  473. Tab.CanvasSize = UDim2.new(0, 0, 0, 0)
  474. Tab.ScrollBarThickness = 3
  475. Tab.Visible = false
  476.  
  477. TabLayout.Name = "TabLayout"
  478. TabLayout.Parent = Tab
  479. TabLayout.SortOrder = Enum.SortOrder.LayoutOrder
  480. TabLayout.Padding = UDim.new(0, 6)
  481.  
  482. if fs == false then
  483. fs = true
  484. TabBtnIndicator.Size = UDim2.new(0, 13, 0, 2)
  485. TabTitle.TextColor3 = Color3.fromRGB(255,255,255)
  486. Tab.Visible = true
  487. end
  488.  
  489. TabBtn.MouseButton1Click:Connect(function()
  490. for i, v in next, TabFolder:GetChildren() do
  491. if v.Name == "Tab" then
  492. v.Visible = false
  493. end
  494. Tab.Visible = true
  495. end
  496. for i, v in next, TabHold:GetChildren() do
  497. if v.Name == "TabBtn" then
  498. v.TabBtnIndicator:TweenSize(UDim2.new(0, 0, 0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  499. TabBtnIndicator:TweenSize(UDim2.new(0, 13, 0, 2), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  500. TweenService:Create(
  501. v.TabTitle,
  502. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  503. {TextColor3 = Color3.fromRGB(150,150,150)}
  504. ):Play()
  505. TweenService:Create(
  506. TabTitle,
  507. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  508. {TextColor3 = Color3.fromRGB(255,255,255)}
  509. ):Play()
  510. end
  511. end
  512. end)
  513. local tabcontent = {}
  514. function tabcontent:Button(text, callback)
  515. local Button = Instance.new("TextButton")
  516. local ButtonCorner = Instance.new("UICorner")
  517. local ButtonTitle = Instance.new("TextLabel")
  518.  
  519. Button.Name = "Button"
  520. Button.Parent = Tab
  521. Button.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  522. Button.Size = UDim2.new(0, 363, 0, 42)
  523. Button.AutoButtonColor = false
  524. Button.Font = Enum.Font.SourceSans
  525. Button.Text = ""
  526. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  527. Button.TextSize = 14.000
  528.  
  529. ButtonCorner.CornerRadius = UDim.new(0, 5)
  530. ButtonCorner.Name = "ButtonCorner"
  531. ButtonCorner.Parent = Button
  532.  
  533. ButtonTitle.Name = "ButtonTitle"
  534. ButtonTitle.Parent = Button
  535. ButtonTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  536. ButtonTitle.BackgroundTransparency = 1.000
  537. ButtonTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  538. ButtonTitle.Size = UDim2.new(0, 187, 0, 42)
  539. ButtonTitle.Font = Enum.Font.Gotham
  540. ButtonTitle.Text = text
  541. ButtonTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  542. ButtonTitle.TextSize = 14.000
  543. ButtonTitle.TextXAlignment = Enum.TextXAlignment.Left
  544.  
  545. Button.MouseEnter:Connect(function()
  546. TweenService:Create(
  547. Button,
  548. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  549. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  550. ):Play()
  551. end)
  552.  
  553. Button.MouseLeave:Connect(function()
  554. TweenService:Create(
  555. Button,
  556. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  557. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  558. ):Play()
  559. end)
  560.  
  561. Button.MouseButton1Click:Connect(function()
  562. pcall(callback)
  563. end)
  564.  
  565. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  566. end
  567. function tabcontent:Toggle(text, default, callback)
  568. local toggled = false
  569.  
  570. local Toggle = Instance.new("TextButton")
  571. local ToggleCorner = Instance.new("UICorner")
  572. local ToggleTitle = Instance.new("TextLabel")
  573. local FrameToggle1 = Instance.new("Frame")
  574. local FrameToggle1Corner = Instance.new("UICorner")
  575. local FrameToggle2 = Instance.new("Frame")
  576. local FrameToggle2Corner = Instance.new("UICorner")
  577. local FrameToggle3 = Instance.new("Frame")
  578. local FrameToggle3Corner = Instance.new("UICorner")
  579. local FrameToggleCircle = Instance.new("Frame")
  580. local FrameToggleCircleCorner = Instance.new("UICorner")
  581.  
  582.  
  583. Toggle.Name = "Toggle"
  584. Toggle.Parent = Tab
  585. Toggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  586. Toggle.Position = UDim2.new(0.215625003, 0, 0.446271926, 0)
  587. Toggle.Size = UDim2.new(0, 363, 0, 42)
  588. Toggle.AutoButtonColor = false
  589. Toggle.Font = Enum.Font.SourceSans
  590. Toggle.Text = ""
  591. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  592. Toggle.TextSize = 14.000
  593.  
  594. ToggleCorner.CornerRadius = UDim.new(0, 5)
  595. ToggleCorner.Name = "ToggleCorner"
  596. ToggleCorner.Parent = Toggle
  597.  
  598. ToggleTitle.Name = "ToggleTitle"
  599. ToggleTitle.Parent = Toggle
  600. ToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  601. ToggleTitle.BackgroundTransparency = 1.000
  602. ToggleTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  603. ToggleTitle.Size = UDim2.new(0, 187, 0, 42)
  604. ToggleTitle.Font = Enum.Font.Gotham
  605. ToggleTitle.Text = text
  606. ToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  607. ToggleTitle.TextSize = 14.000
  608. ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  609.  
  610. FrameToggle1.Name = "FrameToggle1"
  611. FrameToggle1.Parent = Toggle
  612. FrameToggle1.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  613. FrameToggle1.Position = UDim2.new(0.859504104, 0, 0.285714298, 0)
  614. FrameToggle1.Size = UDim2.new(0, 37, 0, 18)
  615.  
  616. FrameToggle1Corner.Name = "FrameToggle1Corner"
  617. FrameToggle1Corner.Parent = FrameToggle1
  618.  
  619. FrameToggle2.Name = "FrameToggle2"
  620. FrameToggle2.Parent = FrameToggle1
  621. FrameToggle2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  622. FrameToggle2.Position = UDim2.new(0.0489999987, 0, 0.0930000022, 0)
  623. FrameToggle2.Size = UDim2.new(0, 33, 0, 14)
  624.  
  625. FrameToggle2Corner.Name = "FrameToggle2Corner"
  626. FrameToggle2Corner.Parent = FrameToggle2
  627.  
  628. FrameToggle3.Name = "FrameToggle3"
  629. FrameToggle3.Parent = FrameToggle1
  630. FrameToggle3.BackgroundColor3 = PresetColor
  631. FrameToggle3.BackgroundTransparency = 1.000
  632. FrameToggle3.Size = UDim2.new(0, 37, 0, 18)
  633.  
  634. FrameToggle3Corner.Name = "FrameToggle3Corner"
  635. FrameToggle3Corner.Parent = FrameToggle3
  636.  
  637. FrameToggleCircle.Name = "FrameToggleCircle"
  638. FrameToggleCircle.Parent = FrameToggle1
  639. FrameToggleCircle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  640. FrameToggleCircle.Position = UDim2.new(0.127000004, 0, 0.222000003, 0)
  641. FrameToggleCircle.Size = UDim2.new(0, 10, 0, 10)
  642.  
  643. FrameToggleCircleCorner.Name = "FrameToggleCircleCorner"
  644. FrameToggleCircleCorner.Parent = FrameToggleCircle
  645.  
  646. coroutine.wrap(
  647. function()
  648. while wait() do
  649. FrameToggle3.BackgroundColor3 = PresetColor
  650. end
  651. end
  652. )()
  653.  
  654.  
  655.  
  656.  
  657. Toggle.MouseButton1Click:Connect(function()
  658. if toggled == false then
  659. TweenService:Create(
  660. Toggle,
  661. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  662. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  663. ):Play()
  664. TweenService:Create(
  665. FrameToggle1,
  666. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  667. {BackgroundTransparency = 1}
  668. ):Play()
  669. TweenService:Create(
  670. FrameToggle2,
  671. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  672. {BackgroundTransparency = 1}
  673. ):Play()
  674. TweenService:Create(
  675. FrameToggle3,
  676. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  677. {BackgroundTransparency = 0}
  678. ):Play()
  679. TweenService:Create(
  680. FrameToggleCircle,
  681. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  682. {BackgroundColor3 = Color3.fromRGB(255,255,255)}
  683. ):Play()
  684. FrameToggleCircle:TweenPosition(UDim2.new(0.587, 0, 0.222000003, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  685. else
  686. TweenService:Create(
  687. Toggle,
  688. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  689. {BackgroundColor3 = Color3.fromRGB(34,34,34)}
  690. ):Play()
  691. TweenService:Create(
  692. FrameToggle1,
  693. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  694. {BackgroundTransparency = 0}
  695. ):Play()
  696. TweenService:Create(
  697. FrameToggle2,
  698. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  699. {BackgroundTransparency = 0}
  700. ):Play()
  701. TweenService:Create(
  702. FrameToggle3,
  703. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  704. {BackgroundTransparency = 1}
  705. ):Play()
  706. TweenService:Create(
  707. FrameToggleCircle,
  708. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  709. {BackgroundColor3 = Color3.fromRGB(50,50,50)}
  710. ):Play()
  711. FrameToggleCircle:TweenPosition(UDim2.new(0.127000004, 0, 0.222000003, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  712. end
  713. toggled = not toggled
  714. pcall(callback, toggled)
  715. end)
  716.  
  717. if default == true then
  718. TweenService:Create(
  719. Toggle,
  720. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  721. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  722. ):Play()
  723. TweenService:Create(
  724. FrameToggle1,
  725. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  726. {BackgroundTransparency = 1}
  727. ):Play()
  728. TweenService:Create(
  729. FrameToggle2,
  730. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  731. {BackgroundTransparency = 1}
  732. ):Play()
  733. TweenService:Create(
  734. FrameToggle3,
  735. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  736. {BackgroundTransparency = 0}
  737. ):Play()
  738. TweenService:Create(
  739. FrameToggleCircle,
  740. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  741. {BackgroundColor3 = Color3.fromRGB(255,255,255)}
  742. ):Play()
  743. FrameToggleCircle:TweenPosition(UDim2.new(0.587, 0, 0.222000003, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  744. toggled = not toggled
  745. end
  746.  
  747. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  748. end
  749. function tabcontent:Slider(text, min,max,start,callback)
  750. local dragging = false
  751. local Slider = Instance.new("TextButton")
  752. local SliderCorner = Instance.new("UICorner")
  753. local SliderTitle = Instance.new("TextLabel")
  754. local SliderValue = Instance.new("TextLabel")
  755. local SlideFrame = Instance.new("Frame")
  756. local CurrentValueFrame = Instance.new("Frame")
  757. local SlideCircle = Instance.new("ImageButton")
  758.  
  759. Slider.Name = "Slider"
  760. Slider.Parent = Tab
  761. Slider.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  762. Slider.Position = UDim2.new(-0.48035714, 0, -0.570532918, 0)
  763. Slider.Size = UDim2.new(0, 363, 0, 60)
  764. Slider.AutoButtonColor = false
  765. Slider.Font = Enum.Font.SourceSans
  766. Slider.Text = ""
  767. Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
  768. Slider.TextSize = 14.000
  769.  
  770. SliderCorner.CornerRadius = UDim.new(0, 5)
  771. SliderCorner.Name = "SliderCorner"
  772. SliderCorner.Parent = Slider
  773.  
  774. SliderTitle.Name = "SliderTitle"
  775. SliderTitle.Parent = Slider
  776. SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  777. SliderTitle.BackgroundTransparency = 1.000
  778. SliderTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  779. SliderTitle.Size = UDim2.new(0, 187, 0, 42)
  780. SliderTitle.Font = Enum.Font.Gotham
  781. SliderTitle.Text = text
  782. SliderTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  783. SliderTitle.TextSize = 14.000
  784. SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  785.  
  786. SliderValue.Name = "SliderValue"
  787. SliderValue.Parent = Slider
  788. SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  789. SliderValue.BackgroundTransparency = 1.000
  790. SliderValue.Position = UDim2.new(0.0358126722, 0, 0, 0)
  791. SliderValue.Size = UDim2.new(0, 335, 0, 42)
  792. SliderValue.Font = Enum.Font.Gotham
  793. SliderValue.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  794. SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  795. SliderValue.TextSize = 14.000
  796. SliderValue.TextXAlignment = Enum.TextXAlignment.Right
  797.  
  798. SlideFrame.Name = "SlideFrame"
  799. SlideFrame.Parent = Slider
  800. SlideFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  801. SlideFrame.BorderSizePixel = 0
  802. SlideFrame.Position = UDim2.new(0.0342647657, 0, 0.686091602, 0)
  803. SlideFrame.Size = UDim2.new(0, 335, 0, 3)
  804.  
  805. CurrentValueFrame.Name = "CurrentValueFrame"
  806. CurrentValueFrame.Parent = SlideFrame
  807. CurrentValueFrame.BackgroundColor3 = PresetColor
  808. CurrentValueFrame.BorderSizePixel = 0
  809. CurrentValueFrame.Size = UDim2.new((start or 0) / max, 0, 0, 3)
  810.  
  811. SlideCircle.Name = "SlideCircle"
  812. SlideCircle.Parent = SlideFrame
  813. SlideCircle.BackgroundColor3 = PresetColor
  814. SlideCircle.BackgroundTransparency = 1.000
  815. SlideCircle.Position = UDim2.new((start or 0)/max, -6,-1.30499995, 0)
  816. SlideCircle.Size = UDim2.new(0, 11, 0, 11)
  817. SlideCircle.Image = "rbxassetid://3570695787"
  818. SlideCircle.ImageColor3 = PresetColor
  819.  
  820. coroutine.wrap(
  821. function()
  822. while wait() do
  823. CurrentValueFrame.BackgroundColor3 = PresetColor
  824. SlideCircle.ImageColor3 = PresetColor
  825. end
  826. end
  827. )()
  828.  
  829. local function move(input)
  830. local pos =
  831. UDim2.new(
  832. math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  833. -6,
  834. -1.30499995,
  835. 0
  836. )
  837. local pos1 =
  838. UDim2.new(
  839. math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  840. 0,
  841. 0,
  842. 3
  843. )
  844. CurrentValueFrame:TweenSize(pos1, "Out", "Sine", 0.1, true)
  845. SlideCircle:TweenPosition(pos, "Out", "Sine", 0.1, true)
  846. local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  847. SliderValue.Text = tostring(value)
  848. pcall(callback, value)
  849. end
  850. SlideCircle.InputBegan:Connect(
  851. function(input)
  852. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  853. dragging = true
  854. end
  855. end
  856. )
  857. SlideCircle.InputEnded:Connect(
  858. function(input)
  859. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  860. dragging = false
  861. end
  862. end
  863. )
  864. game:GetService("UserInputService").InputChanged:Connect(
  865. function(input)
  866. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  867. move(input)
  868. end
  869. end
  870. )
  871. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  872. end
  873. function tabcontent:Dropdown(text, list, callback)
  874. local droptog = false
  875. local framesize = 0
  876. local itemcount = 0
  877.  
  878. local Dropdown = Instance.new("Frame")
  879. local DropdownCorner = Instance.new("UICorner")
  880. local DropdownBtn = Instance.new("TextButton")
  881. local DropdownTitle = Instance.new("TextLabel")
  882. local ArrowImg = Instance.new("ImageLabel")
  883. local DropItemHolder = Instance.new("ScrollingFrame")
  884. local DropLayout = Instance.new("UIListLayout")
  885.  
  886. Dropdown.Name = "Dropdown"
  887. Dropdown.Parent = Tab
  888. Dropdown.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  889. Dropdown.ClipsDescendants = true
  890. Dropdown.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  891. Dropdown.Size = UDim2.new(0, 363, 0, 42)
  892.  
  893. DropdownCorner.CornerRadius = UDim.new(0, 5)
  894. DropdownCorner.Name = "DropdownCorner"
  895. DropdownCorner.Parent = Dropdown
  896.  
  897. DropdownBtn.Name = "DropdownBtn"
  898. DropdownBtn.Parent = Dropdown
  899. DropdownBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  900. DropdownBtn.BackgroundTransparency = 1.000
  901. DropdownBtn.Size = UDim2.new(0, 363, 0, 42)
  902. DropdownBtn.Font = Enum.Font.SourceSans
  903. DropdownBtn.Text = ""
  904. DropdownBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  905. DropdownBtn.TextSize = 14.000
  906.  
  907. DropdownTitle.Name = "DropdownTitle"
  908. DropdownTitle.Parent = Dropdown
  909. DropdownTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  910. DropdownTitle.BackgroundTransparency = 1.000
  911. DropdownTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  912. DropdownTitle.Size = UDim2.new(0, 187, 0, 42)
  913. DropdownTitle.Font = Enum.Font.Gotham
  914. DropdownTitle.Text = text
  915. DropdownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  916. DropdownTitle.TextSize = 14.000
  917. DropdownTitle.TextXAlignment = Enum.TextXAlignment.Left
  918.  
  919. ArrowImg.Name = "ArrowImg"
  920. ArrowImg.Parent = DropdownTitle
  921. ArrowImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  922. ArrowImg.BackgroundTransparency = 1.000
  923. ArrowImg.Position = UDim2.new(1.65240645, 0, 0.190476194, 0)
  924. ArrowImg.Size = UDim2.new(0, 26, 0, 26)
  925. ArrowImg.Image = "http://www.roblox.com/asset/?id=6034818375"
  926.  
  927. DropItemHolder.Name = "DropItemHolder"
  928. DropItemHolder.Parent = DropdownTitle
  929. DropItemHolder.Active = true
  930. DropItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  931. DropItemHolder.BackgroundTransparency = 1.000
  932. DropItemHolder.BorderSizePixel = 0
  933. DropItemHolder.Position = UDim2.new(-0.00400000019, 0, 1.04999995, 0)
  934. DropItemHolder.Size = UDim2.new(0, 342, 0, 0)
  935. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  936. DropItemHolder.ScrollBarThickness = 3
  937.  
  938. DropLayout.Name = "DropLayout"
  939. DropLayout.Parent = DropItemHolder
  940. DropLayout.SortOrder = Enum.SortOrder.LayoutOrder
  941.  
  942. DropdownBtn.MouseButton1Click:Connect(function()
  943. if droptog == false then
  944. Dropdown:TweenSize(UDim2.new(0, 363, 0, 55 + framesize), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  945. TweenService:Create(
  946. ArrowImg,
  947. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  948. {Rotation = 270}
  949. ):Play()
  950. wait(.2)
  951. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  952. else
  953. Dropdown:TweenSize(UDim2.new(0, 363, 0, 42), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  954. TweenService:Create(
  955. ArrowImg,
  956. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  957. {Rotation = 0}
  958. ):Play()
  959. wait(.2)
  960. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  961. end
  962. droptog = not droptog
  963. end)
  964.  
  965. for i,v in next, list do
  966. itemcount = itemcount + 1
  967. if itemcount <= 3 then
  968. framesize = framesize + 26
  969. DropItemHolder.Size = UDim2.new(0, 342, 0, framesize)
  970. end
  971. local Item = Instance.new("TextButton")
  972. local ItemCorner = Instance.new("UICorner")
  973.  
  974. Item.Name = "Item"
  975. Item.Parent = DropItemHolder
  976. Item.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  977. Item.ClipsDescendants = true
  978. Item.Size = UDim2.new(0, 335, 0, 25)
  979. Item.AutoButtonColor = false
  980. Item.Font = Enum.Font.Gotham
  981. Item.Text = v
  982. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  983. Item.TextSize = 15.000
  984.  
  985. ItemCorner.CornerRadius = UDim.new(0, 4)
  986. ItemCorner.Name = "ItemCorner"
  987. ItemCorner.Parent = Item
  988.  
  989. Item.MouseEnter:Connect(function()
  990. TweenService:Create(
  991. Item,
  992. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  993. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  994. ):Play()
  995. end)
  996.  
  997. Item.MouseLeave:Connect(function()
  998. TweenService:Create(
  999. Item,
  1000. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1001. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  1002. ):Play()
  1003. end)
  1004.  
  1005. Item.MouseButton1Click:Connect(function()
  1006. droptog = not droptog
  1007. DropdownTitle.Text = text .. " - " .. v
  1008. pcall(callback, v)
  1009. Dropdown:TweenSize(UDim2.new(0, 363, 0, 42), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1010. TweenService:Create(
  1011. ArrowImg,
  1012. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1013. {Rotation = 0}
  1014. ):Play()
  1015. wait(.2)
  1016. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1017. end)
  1018.  
  1019. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y)
  1020. end
  1021. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1022. end
  1023. function tabcontent:Colorpicker(text, preset, callback)
  1024. local ColorPickerToggled = false
  1025. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  1026. local OldColor = Color3.fromRGB(0, 0, 0)
  1027. local OldColorSelectionPosition = nil
  1028. local OldHueSelectionPosition = nil
  1029. local ColorH, ColorS, ColorV = 1, 1, 1
  1030. local RainbowColorPicker = false
  1031. local ColorPickerInput = nil
  1032. local ColorInput = nil
  1033. local HueInput = nil
  1034.  
  1035. local Colorpicker = Instance.new("Frame")
  1036. local ColorpickerCorner = Instance.new("UICorner")
  1037. local ColorpickerTitle = Instance.new("TextLabel")
  1038. local BoxColor = Instance.new("Frame")
  1039. local BoxColorCorner = Instance.new("UICorner")
  1040. local ConfirmBtn = Instance.new("TextButton")
  1041. local ConfirmBtnCorner = Instance.new("UICorner")
  1042. local ConfirmBtnTitle = Instance.new("TextLabel")
  1043. local ColorpickerBtn = Instance.new("TextButton")
  1044. local RainbowToggle = Instance.new("TextButton")
  1045. local RainbowToggleCorner = Instance.new("UICorner")
  1046. local RainbowToggleTitle = Instance.new("TextLabel")
  1047. local FrameRainbowToggle1 = Instance.new("Frame")
  1048. local FrameRainbowToggle1Corner = Instance.new("UICorner")
  1049. local FrameRainbowToggle2 = Instance.new("Frame")
  1050. local FrameRainbowToggle2_2 = Instance.new("UICorner")
  1051. local FrameRainbowToggle3 = Instance.new("Frame")
  1052. local FrameToggle3 = Instance.new("UICorner")
  1053. local FrameRainbowToggleCircle = Instance.new("Frame")
  1054. local FrameRainbowToggleCircleCorner = Instance.new("UICorner")
  1055. local Color = Instance.new("ImageLabel")
  1056. local ColorCorner = Instance.new("UICorner")
  1057. local ColorSelection = Instance.new("ImageLabel")
  1058. local Hue = Instance.new("ImageLabel")
  1059. local HueCorner = Instance.new("UICorner")
  1060. local HueGradient = Instance.new("UIGradient")
  1061. local HueSelection = Instance.new("ImageLabel")
  1062.  
  1063.  
  1064. Colorpicker.Name = "Colorpicker"
  1065. Colorpicker.Parent = Tab
  1066. Colorpicker.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1067. Colorpicker.ClipsDescendants = true
  1068. Colorpicker.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1069. Colorpicker.Size = UDim2.new(0, 363, 0, 42)
  1070.  
  1071. ColorpickerCorner.CornerRadius = UDim.new(0, 5)
  1072. ColorpickerCorner.Name = "ColorpickerCorner"
  1073. ColorpickerCorner.Parent = Colorpicker
  1074.  
  1075. ColorpickerTitle.Name = "ColorpickerTitle"
  1076. ColorpickerTitle.Parent = Colorpicker
  1077. ColorpickerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1078. ColorpickerTitle.BackgroundTransparency = 1.000
  1079. ColorpickerTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1080. ColorpickerTitle.Size = UDim2.new(0, 187, 0, 42)
  1081. ColorpickerTitle.Font = Enum.Font.Gotham
  1082. ColorpickerTitle.Text = text
  1083. ColorpickerTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1084. ColorpickerTitle.TextSize = 14.000
  1085. ColorpickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  1086.  
  1087. BoxColor.Name = "BoxColor"
  1088. BoxColor.Parent = ColorpickerTitle
  1089. BoxColor.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1090. BoxColor.Position = UDim2.new(1.60427809, 0, 0.214285716, 0)
  1091. BoxColor.Size = UDim2.new(0, 41, 0, 23)
  1092.  
  1093. BoxColorCorner.CornerRadius = UDim.new(0, 5)
  1094. BoxColorCorner.Name = "BoxColorCorner"
  1095. BoxColorCorner.Parent = BoxColor
  1096.  
  1097. ConfirmBtn.Name = "ConfirmBtn"
  1098. ConfirmBtn.Parent = ColorpickerTitle
  1099. ConfirmBtn.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1100. ConfirmBtn.Position = UDim2.new(1.25814295, 0, 1.09037197, 0)
  1101. ConfirmBtn.Size = UDim2.new(0, 105, 0, 32)
  1102. ConfirmBtn.AutoButtonColor = false
  1103. ConfirmBtn.Font = Enum.Font.SourceSans
  1104. ConfirmBtn.Text = ""
  1105. ConfirmBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1106. ConfirmBtn.TextSize = 14.000
  1107.  
  1108. ConfirmBtnCorner.CornerRadius = UDim.new(0, 5)
  1109. ConfirmBtnCorner.Name = "ConfirmBtnCorner"
  1110. ConfirmBtnCorner.Parent = ConfirmBtn
  1111.  
  1112. ConfirmBtnTitle.Name = "ConfirmBtnTitle"
  1113. ConfirmBtnTitle.Parent = ConfirmBtn
  1114. ConfirmBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1115. ConfirmBtnTitle.BackgroundTransparency = 1.000
  1116. ConfirmBtnTitle.Size = UDim2.new(0, 33, 0, 32)
  1117. ConfirmBtnTitle.Font = Enum.Font.Gotham
  1118. ConfirmBtnTitle.Text = "Confirm"
  1119. ConfirmBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1120. ConfirmBtnTitle.TextSize = 14.000
  1121. ConfirmBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  1122.  
  1123. ColorpickerBtn.Name = "ColorpickerBtn"
  1124. ColorpickerBtn.Parent = ColorpickerTitle
  1125. ColorpickerBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1126. ColorpickerBtn.BackgroundTransparency = 1.000
  1127. ColorpickerBtn.Size = UDim2.new(0, 363, 0, 42)
  1128. ColorpickerBtn.Font = Enum.Font.SourceSans
  1129. ColorpickerBtn.Text = ""
  1130. ColorpickerBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1131. ColorpickerBtn.TextSize = 14.000
  1132.  
  1133. RainbowToggle.Name = "RainbowToggle"
  1134. RainbowToggle.Parent = ColorpickerTitle
  1135. RainbowToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1136. RainbowToggle.Position = UDim2.new(1.26349044, 0, 2.12684202, 0)
  1137. RainbowToggle.Size = UDim2.new(0, 104, 0, 32)
  1138. RainbowToggle.AutoButtonColor = false
  1139. RainbowToggle.Font = Enum.Font.SourceSans
  1140. RainbowToggle.Text = ""
  1141. RainbowToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1142. RainbowToggle.TextSize = 14.000
  1143.  
  1144. RainbowToggleCorner.CornerRadius = UDim.new(0, 5)
  1145. RainbowToggleCorner.Name = "RainbowToggleCorner"
  1146. RainbowToggleCorner.Parent = RainbowToggle
  1147.  
  1148. RainbowToggleTitle.Name = "RainbowToggleTitle"
  1149. RainbowToggleTitle.Parent = RainbowToggle
  1150. RainbowToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1151. RainbowToggleTitle.BackgroundTransparency = 1.000
  1152. RainbowToggleTitle.Size = UDim2.new(0, 33, 0, 32)
  1153. RainbowToggleTitle.Font = Enum.Font.Gotham
  1154. RainbowToggleTitle.Text = "Rainbow"
  1155. RainbowToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1156. RainbowToggleTitle.TextSize = 14.000
  1157. RainbowToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  1158.  
  1159. FrameRainbowToggle1.Name = "FrameRainbowToggle1"
  1160. FrameRainbowToggle1.Parent = RainbowToggle
  1161. FrameRainbowToggle1.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1162. FrameRainbowToggle1.Position = UDim2.new(0.649999976, 0, 0.186000004, 0)
  1163. FrameRainbowToggle1.Size = UDim2.new(0, 37, 0, 18)
  1164.  
  1165. FrameRainbowToggle1Corner.Name = "FrameRainbowToggle1Corner"
  1166. FrameRainbowToggle1Corner.Parent = FrameRainbowToggle1
  1167.  
  1168. FrameRainbowToggle2.Name = "FrameRainbowToggle2"
  1169. FrameRainbowToggle2.Parent = FrameRainbowToggle1
  1170. FrameRainbowToggle2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1171. FrameRainbowToggle2.Position = UDim2.new(0.0590000004, 0, 0.112999998, 0)
  1172. FrameRainbowToggle2.Size = UDim2.new(0, 33, 0, 14)
  1173.  
  1174. FrameRainbowToggle2_2.Name = "FrameRainbowToggle2"
  1175. FrameRainbowToggle2_2.Parent = FrameRainbowToggle2
  1176.  
  1177. FrameRainbowToggle3.Name = "FrameRainbowToggle3"
  1178. FrameRainbowToggle3.Parent = FrameRainbowToggle1
  1179. FrameRainbowToggle3.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1180. FrameRainbowToggle3.BackgroundTransparency = 1.000
  1181. FrameRainbowToggle3.Size = UDim2.new(0, 37, 0, 18)
  1182.  
  1183. FrameToggle3.Name = "FrameToggle3"
  1184. FrameToggle3.Parent = FrameRainbowToggle3
  1185.  
  1186. FrameRainbowToggleCircle.Name = "FrameRainbowToggleCircle"
  1187. FrameRainbowToggleCircle.Parent = FrameRainbowToggle1
  1188. FrameRainbowToggleCircle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1189. FrameRainbowToggleCircle.Position = UDim2.new(0.127000004, 0, 0.222000003, 0)
  1190. FrameRainbowToggleCircle.Size = UDim2.new(0, 10, 0, 10)
  1191.  
  1192. FrameRainbowToggleCircleCorner.Name = "FrameRainbowToggleCircleCorner"
  1193. FrameRainbowToggleCircleCorner.Parent = FrameRainbowToggleCircle
  1194.  
  1195. Color.Name = "Color"
  1196. Color.Parent = ColorpickerTitle
  1197. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1198. Color.Position = UDim2.new(0, 0, 0, 42)
  1199. Color.Size = UDim2.new(0, 194, 0, 80)
  1200. Color.ZIndex = 10
  1201. Color.Image = "rbxassetid://4155801252"
  1202.  
  1203. ColorCorner.CornerRadius = UDim.new(0, 3)
  1204. ColorCorner.Name = "ColorCorner"
  1205. ColorCorner.Parent = Color
  1206.  
  1207. ColorSelection.Name = "ColorSelection"
  1208. ColorSelection.Parent = Color
  1209. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1210. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1211. ColorSelection.BackgroundTransparency = 1.000
  1212. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1213. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1214. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1215. ColorSelection.ScaleType = Enum.ScaleType.Fit
  1216. ColorSelection.Visible = false
  1217.  
  1218. Hue.Name = "Hue"
  1219. Hue.Parent = ColorpickerTitle
  1220. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1221. Hue.Position = UDim2.new(0, 202, 0, 42)
  1222. Hue.Size = UDim2.new(0, 25, 0, 80)
  1223.  
  1224. HueCorner.CornerRadius = UDim.new(0, 3)
  1225. HueCorner.Name = "HueCorner"
  1226. HueCorner.Parent = Hue
  1227.  
  1228. HueGradient.Color = ColorSequence.new {
  1229. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1230. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1231. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1232. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1233. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1234. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1235. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1236. } HueGradient.Rotation = 270
  1237. HueGradient.Name = "HueGradient"
  1238. HueGradient.Parent = Hue
  1239.  
  1240. HueSelection.Name = "HueSelection"
  1241. HueSelection.Parent = Hue
  1242. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1243. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1244. HueSelection.BackgroundTransparency = 1.000
  1245. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1246. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1247. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1248. HueSelection.Visible = false
  1249.  
  1250. coroutine.wrap(
  1251. function()
  1252. while wait() do
  1253. FrameRainbowToggle3.BackgroundColor3 = PresetColor
  1254. end
  1255. end
  1256. )()
  1257.  
  1258. ColorpickerBtn.MouseButton1Click:Connect(function()
  1259. if ColorPickerToggled == false then
  1260. ColorSelection.Visible = true
  1261. HueSelection.Visible = true
  1262. Colorpicker:TweenSize(UDim2.new(0, 363, 0, 132), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1263. wait(.2)
  1264. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1265.  
  1266. else
  1267. ColorSelection.Visible = false
  1268. HueSelection.Visible = false
  1269. Colorpicker:TweenSize(UDim2.new(0, 363, 0, 42), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1270. wait(.2)
  1271. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1272. end
  1273. ColorPickerToggled = not ColorPickerToggled
  1274. end)
  1275.  
  1276.  
  1277. local function UpdateColorPicker(nope)
  1278. BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1279. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1280.  
  1281. pcall(callback, BoxColor.BackgroundColor3)
  1282. end
  1283.  
  1284. ColorH =
  1285. 1 -
  1286. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1287. Hue.AbsoluteSize.Y)
  1288. ColorS =
  1289. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1290. Color.AbsoluteSize.X)
  1291. ColorV =
  1292. 1 -
  1293. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1294. Color.AbsoluteSize.Y)
  1295.  
  1296. BoxColor.BackgroundColor3 = preset
  1297. Color.BackgroundColor3 = preset
  1298. pcall(callback, BoxColor.BackgroundColor3)
  1299.  
  1300. Color.InputBegan:Connect(
  1301. function(input)
  1302. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1303. if RainbowColorPicker then
  1304. return
  1305. end
  1306.  
  1307. if ColorInput then
  1308. ColorInput:Disconnect()
  1309. end
  1310.  
  1311. ColorInput =
  1312. RunService.RenderStepped:Connect(
  1313. function()
  1314. local ColorX =
  1315. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1316. Color.AbsoluteSize.X)
  1317. local ColorY =
  1318. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1319. Color.AbsoluteSize.Y)
  1320.  
  1321. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1322. ColorS = ColorX
  1323. ColorV = 1 - ColorY
  1324.  
  1325. UpdateColorPicker(true)
  1326. end
  1327. )
  1328. end
  1329. end
  1330. )
  1331.  
  1332. Color.InputEnded:Connect(
  1333. function(input)
  1334. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1335. if ColorInput then
  1336. ColorInput:Disconnect()
  1337. end
  1338. end
  1339. end
  1340. )
  1341.  
  1342. Hue.InputBegan:Connect(
  1343. function(input)
  1344. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1345. if RainbowColorPicker then
  1346. return
  1347. end
  1348.  
  1349. if HueInput then
  1350. HueInput:Disconnect()
  1351. end
  1352.  
  1353. HueInput =
  1354. RunService.RenderStepped:Connect(
  1355. function()
  1356. local HueY =
  1357. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1358. Hue.AbsoluteSize.Y)
  1359.  
  1360. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1361. ColorH = 1 - HueY
  1362.  
  1363. UpdateColorPicker(true)
  1364. end
  1365. )
  1366. end
  1367. end
  1368. )
  1369.  
  1370. Hue.InputEnded:Connect(
  1371. function(input)
  1372. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1373. if HueInput then
  1374. HueInput:Disconnect()
  1375. end
  1376. end
  1377. end
  1378. )
  1379.  
  1380. RainbowToggle.MouseButton1Down:Connect(
  1381. function()
  1382. RainbowColorPicker = not RainbowColorPicker
  1383.  
  1384. if ColorInput then
  1385. ColorInput:Disconnect()
  1386. end
  1387.  
  1388. if HueInput then
  1389. HueInput:Disconnect()
  1390. end
  1391.  
  1392. if RainbowColorPicker then
  1393. TweenService:Create(
  1394. FrameRainbowToggle1,
  1395. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1396. {BackgroundTransparency = 1}
  1397. ):Play()
  1398. TweenService:Create(
  1399. FrameRainbowToggle2,
  1400. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1401. {BackgroundTransparency = 1}
  1402. ):Play()
  1403. TweenService:Create(
  1404. FrameRainbowToggle3,
  1405. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1406. {BackgroundTransparency = 0}
  1407. ):Play()
  1408. TweenService:Create(
  1409. FrameRainbowToggleCircle,
  1410. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1411. {BackgroundColor3 = Color3.fromRGB(255,255,255)}
  1412. ):Play()
  1413. FrameRainbowToggleCircle:TweenPosition(UDim2.new(0.587, 0, 0.222000003, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1414.  
  1415. OldToggleColor = BoxColor.BackgroundColor3
  1416. OldColor = Color.BackgroundColor3
  1417. OldColorSelectionPosition = ColorSelection.Position
  1418. OldHueSelectionPosition = HueSelection.Position
  1419.  
  1420. while RainbowColorPicker do
  1421. BoxColor.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1422. Color.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1423.  
  1424. ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1425. HueSelection.Position = UDim2.new(0.48, 0, 0, lib.HueSelectionPosition)
  1426.  
  1427. pcall(callback, BoxColor.BackgroundColor3)
  1428. wait()
  1429. end
  1430. elseif not RainbowColorPicker then
  1431. TweenService:Create(
  1432. FrameRainbowToggle1,
  1433. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1434. {BackgroundTransparency = 0}
  1435. ):Play()
  1436. TweenService:Create(
  1437. FrameRainbowToggle2,
  1438. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1439. {BackgroundTransparency = 0}
  1440. ):Play()
  1441. TweenService:Create(
  1442. FrameRainbowToggle3,
  1443. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1444. {BackgroundTransparency = 1}
  1445. ):Play()
  1446. TweenService:Create(
  1447. FrameRainbowToggleCircle,
  1448. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1449. {BackgroundColor3 = Color3.fromRGB(50,50,50)}
  1450. ):Play()
  1451. FrameRainbowToggleCircle:TweenPosition(UDim2.new(0.127000004, 0, 0.222000003, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1452.  
  1453. BoxColor.BackgroundColor3 = OldToggleColor
  1454. Color.BackgroundColor3 = OldColor
  1455.  
  1456. ColorSelection.Position = OldColorSelectionPosition
  1457. HueSelection.Position = OldHueSelectionPosition
  1458.  
  1459. pcall(callback, BoxColor.BackgroundColor3)
  1460. end
  1461. end
  1462. )
  1463.  
  1464. ConfirmBtn.MouseButton1Click:Connect(
  1465. function()
  1466. ColorSelection.Visible = false
  1467. HueSelection.Visible = false
  1468. Colorpicker:TweenSize(UDim2.new(0, 363, 0, 42), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1469. wait(.2)
  1470. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1471. end
  1472. )
  1473. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1474. end
  1475. function tabcontent:Label(text)
  1476. local Label = Instance.new("TextButton")
  1477. local LabelCorner = Instance.new("UICorner")
  1478. local LabelTitle = Instance.new("TextLabel")
  1479.  
  1480. Label.Name = "Button"
  1481. Label.Parent = Tab
  1482. Label.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1483. Label.Size = UDim2.new(0, 363, 0, 42)
  1484. Label.AutoButtonColor = false
  1485. Label.Font = Enum.Font.SourceSans
  1486. Label.Text = ""
  1487. Label.TextColor3 = Color3.fromRGB(0, 0, 0)
  1488. Label.TextSize = 14.000
  1489.  
  1490. LabelCorner.CornerRadius = UDim.new(0, 5)
  1491. LabelCorner.Name = "ButtonCorner"
  1492. LabelCorner.Parent = Label
  1493.  
  1494. LabelTitle.Name = "ButtonTitle"
  1495. LabelTitle.Parent =Label
  1496. LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1497. LabelTitle.BackgroundTransparency = 1.000
  1498. LabelTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1499. LabelTitle.Size = UDim2.new(0, 187, 0, 42)
  1500. LabelTitle.Font = Enum.Font.Gotham
  1501. LabelTitle.Text = text
  1502. LabelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1503. LabelTitle.TextSize = 14.000
  1504. LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
  1505.  
  1506. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1507. end
  1508. function tabcontent:Textbox(text,disapper, callback)
  1509. local Textbox = Instance.new("Frame")
  1510. local TextboxCorner = Instance.new("UICorner")
  1511. local TextboxTitle = Instance.new("TextLabel")
  1512. local TextboxFrame = Instance.new("Frame")
  1513. local TextboxFrameCorner = Instance.new("UICorner")
  1514. local TextBox = Instance.new("TextBox")
  1515.  
  1516. Textbox.Name = "Textbox"
  1517. Textbox.Parent = Tab
  1518. Textbox.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1519. Textbox.ClipsDescendants = true
  1520. Textbox.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1521. Textbox.Size = UDim2.new(0, 363, 0, 42)
  1522.  
  1523. TextboxCorner.CornerRadius = UDim.new(0, 5)
  1524. TextboxCorner.Name = "TextboxCorner"
  1525. TextboxCorner.Parent = Textbox
  1526.  
  1527. TextboxTitle.Name = "TextboxTitle"
  1528. TextboxTitle.Parent = Textbox
  1529. TextboxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1530. TextboxTitle.BackgroundTransparency = 1.000
  1531. TextboxTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1532. TextboxTitle.Size = UDim2.new(0, 187, 0, 42)
  1533. TextboxTitle.Font = Enum.Font.Gotham
  1534. TextboxTitle.Text = text
  1535. TextboxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1536. TextboxTitle.TextSize = 14.000
  1537. TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
  1538.  
  1539. TextboxFrame.Name = "TextboxFrame"
  1540. TextboxFrame.Parent = TextboxTitle
  1541. TextboxFrame.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
  1542. TextboxFrame.Position = UDim2.new(1.28877008, 0, 0.214285716, 0)
  1543. TextboxFrame.Size = UDim2.new(0, 100, 0, 23)
  1544.  
  1545. TextboxFrameCorner.CornerRadius = UDim.new(0, 5)
  1546. TextboxFrameCorner.Name = "TextboxFrameCorner"
  1547. TextboxFrameCorner.Parent = TextboxFrame
  1548.  
  1549. TextBox.Parent = TextboxFrame
  1550. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1551. TextBox.BackgroundTransparency = 1.000
  1552. TextBox.Size = UDim2.new(0, 100, 0, 23)
  1553. TextBox.Font = Enum.Font.Gotham
  1554. TextBox.Text = ""
  1555. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1556. TextBox.TextSize = 14.000
  1557.  
  1558. TextBox.FocusLost:Connect(
  1559. function(ep)
  1560. if ep then
  1561. if #TextBox.Text > 0 then
  1562. pcall(callback, TextBox.Text)
  1563. if disapper then
  1564. TextBox.Text = ""
  1565. end
  1566. end
  1567. end
  1568. end
  1569. )
  1570. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1571. end
  1572. function tabcontent:Bind(text, keypreset, callback)
  1573. local binding = false
  1574. local Key = keypreset.Name
  1575. local Bind = Instance.new("TextButton")
  1576. local BindCorner = Instance.new("UICorner")
  1577. local BindTitle = Instance.new("TextLabel")
  1578. local BindText = Instance.new("TextLabel")
  1579.  
  1580. Bind.Name = "Bind"
  1581. Bind.Parent = Tab
  1582. Bind.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1583. Bind.Size = UDim2.new(0, 363, 0, 42)
  1584. Bind.AutoButtonColor = false
  1585. Bind.Font = Enum.Font.SourceSans
  1586. Bind.Text = ""
  1587. Bind.TextColor3 = Color3.fromRGB(0, 0, 0)
  1588. Bind.TextSize = 14.000
  1589.  
  1590. BindCorner.CornerRadius = UDim.new(0, 5)
  1591. BindCorner.Name = "BindCorner"
  1592. BindCorner.Parent = Bind
  1593.  
  1594. BindTitle.Name = "BindTitle"
  1595. BindTitle.Parent = Bind
  1596. BindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1597. BindTitle.BackgroundTransparency = 1.000
  1598. BindTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1599. BindTitle.Size = UDim2.new(0, 187, 0, 42)
  1600. BindTitle.Font = Enum.Font.Gotham
  1601. BindTitle.Text = text
  1602. BindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1603. BindTitle.TextSize = 14.000
  1604. BindTitle.TextXAlignment = Enum.TextXAlignment.Left
  1605.  
  1606. BindText.Name = "BindText"
  1607. BindText.Parent = Bind
  1608. BindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1609. BindText.BackgroundTransparency = 1.000
  1610. BindText.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1611. BindText.Size = UDim2.new(0, 337, 0, 42)
  1612. BindText.Font = Enum.Font.Gotham
  1613. BindText.Text = Key
  1614. BindText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1615. BindText.TextSize = 14.000
  1616. BindText.TextXAlignment = Enum.TextXAlignment.Right
  1617.  
  1618. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1619.  
  1620. Bind.MouseButton1Click:Connect(function()
  1621. BindText.Text = "..."
  1622. binding = true
  1623. local inputwait = game:GetService("UserInputService").InputBegan:wait()
  1624. if inputwait.KeyCode.Name ~= "Unknown" then
  1625. BindText.Text = inputwait .KeyCode.Name
  1626. Key = inputwait.KeyCode.Name
  1627. binding = false
  1628. else
  1629. binding = false
  1630. end
  1631. end)
  1632.  
  1633. game:GetService("UserInputService").InputBegan:connect(
  1634. function(current, pressed)
  1635. if not pressed then
  1636. if current.KeyCode.Name == Key and binding == false then
  1637. pcall(callback)
  1638. end
  1639. end
  1640. end
  1641. )
  1642. end
  1643. return tabcontent
  1644. end
  1645. return tabhold
  1646. end
  1647. return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement