MangoScripts

NEW UI LIBRARY

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