Advertisement
kooggy

Untitled

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