Advertisement
M0nkePr0

Vape UI Lib Fix

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