M0nkePr0

Untitled

Jul 6th, 2022 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.94 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. local 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(function(input)
  798. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  799. move(input)
  800. end
  801. end)
  802. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  803. end
  804. function tabcontent:Dropdown(text, list, callback)
  805. local droptog = false
  806. local framesize = 0
  807. local itemcount = 0
  808.  
  809. local Dropdown = Instance.new("Frame")
  810. local DropdownCorner = Instance.new("UICorner")
  811. local DropdownBtn = Instance.new("TextButton")
  812. local DropdownTitle = Instance.new("TextLabel")
  813. local ArrowImg = Instance.new("ImageLabel")
  814. local DropItemHolder = Instance.new("ScrollingFrame")
  815. local DropLayout = Instance.new("UIListLayout")
  816.  
  817. Dropdown.Name = "Dropdown"
  818. Dropdown.Parent = Tab
  819. Dropdown.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  820. Dropdown.ClipsDescendants = true
  821. Dropdown.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  822. Dropdown.Size = UDim2.new(0, 363, 0, 42)
  823.  
  824. DropdownCorner.CornerRadius = UDim.new(0, 5)
  825. DropdownCorner.Name = "DropdownCorner"
  826. DropdownCorner.Parent = Dropdown
  827.  
  828. DropdownBtn.Name = "DropdownBtn"
  829. DropdownBtn.Parent = Dropdown
  830. DropdownBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  831. DropdownBtn.BackgroundTransparency = 1.000
  832. DropdownBtn.Size = UDim2.new(0, 363, 0, 42)
  833. DropdownBtn.Font = Enum.Font.SourceSans
  834. DropdownBtn.Text = ""
  835. DropdownBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  836. DropdownBtn.TextSize = 14.000
  837.  
  838. DropdownTitle.Name = "DropdownTitle"
  839. DropdownTitle.Parent = Dropdown
  840. DropdownTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  841. DropdownTitle.BackgroundTransparency = 1.000
  842. DropdownTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  843. DropdownTitle.Size = UDim2.new(0, 187, 0, 42)
  844. DropdownTitle.Font = Enum.Font.Gotham
  845. DropdownTitle.Text = text
  846. DropdownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  847. DropdownTitle.TextSize = 14.000
  848. DropdownTitle.TextXAlignment = Enum.TextXAlignment.Left
  849.  
  850. ArrowImg.Name = "ArrowImg"
  851. ArrowImg.Parent = DropdownTitle
  852. ArrowImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  853. ArrowImg.BackgroundTransparency = 1.000
  854. ArrowImg.Position = UDim2.new(1.65240645, 0, 0.190476194, 0)
  855. ArrowImg.Size = UDim2.new(0, 26, 0, 26)
  856. ArrowImg.Image = "http://www.roblox.com/asset/?id=6034818375"
  857.  
  858. DropItemHolder.Name = "DropItemHolder"
  859. DropItemHolder.Parent = DropdownTitle
  860. DropItemHolder.Active = true
  861. DropItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  862. DropItemHolder.BackgroundTransparency = 1.000
  863. DropItemHolder.BorderSizePixel = 0
  864. DropItemHolder.Position = UDim2.new(-0.00400000019, 0, 1.04999995, 0)
  865. DropItemHolder.Size = UDim2.new(0, 342, 0, 0)
  866. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  867. DropItemHolder.ScrollBarThickness = 3
  868.  
  869. DropLayout.Name = "DropLayout"
  870. DropLayout.Parent = DropItemHolder
  871. DropLayout.SortOrder = Enum.SortOrder.LayoutOrder
  872.  
  873. DropdownBtn.MouseButton1Click:Connect(
  874. function()
  875. if droptog == false then
  876. Dropdown:TweenSize(
  877. UDim2.new(0, 363, 0, 55 + framesize),
  878. Enum.EasingDirection.Out,
  879. Enum.EasingStyle.Quart,
  880. .2,
  881. true
  882. )
  883. TweenService:Create(
  884. ArrowImg,
  885. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  886. {Rotation = 270}
  887. ):Play()
  888. wait(.2)
  889. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  890. else
  891. Dropdown:TweenSize(
  892. UDim2.new(0, 363, 0, 42),
  893. Enum.EasingDirection.Out,
  894. Enum.EasingStyle.Quart,
  895. .2,
  896. true
  897. )
  898. TweenService:Create(
  899. ArrowImg,
  900. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  901. {Rotation = 0}
  902. ):Play()
  903. wait(.2)
  904. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  905. end
  906. droptog = not droptog
  907. end
  908. )
  909.  
  910. for i, v in next, list do
  911. itemcount = itemcount + 1
  912. if itemcount <= 3 then
  913. framesize = framesize + 26
  914. DropItemHolder.Size = UDim2.new(0, 342, 0, framesize)
  915. end
  916. local Item = Instance.new("TextButton")
  917. local ItemCorner = Instance.new("UICorner")
  918.  
  919. Item.Name = "Item"
  920. Item.Parent = DropItemHolder
  921. Item.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  922. Item.ClipsDescendants = true
  923. Item.Size = UDim2.new(0, 335, 0, 25)
  924. Item.AutoButtonColor = false
  925. Item.Font = Enum.Font.Gotham
  926. Item.Text = v
  927. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  928. Item.TextSize = 15.000
  929.  
  930. ItemCorner.CornerRadius = UDim.new(0, 4)
  931. ItemCorner.Name = "ItemCorner"
  932. ItemCorner.Parent = Item
  933.  
  934. Item.MouseEnter:Connect(
  935. function()
  936. TweenService:Create(
  937. Item,
  938. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  939. {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  940. ):Play()
  941. end
  942. )
  943.  
  944. Item.MouseLeave:Connect(
  945. function()
  946. TweenService:Create(
  947. Item,
  948. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  949. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  950. ):Play()
  951. end
  952. )
  953.  
  954. Item.MouseButton1Click:Connect(
  955. function()
  956. droptog = not droptog
  957. DropdownTitle.Text = text .. " - " .. v
  958. pcall(callback, v)
  959. Dropdown:TweenSize(
  960. UDim2.new(0, 363, 0, 42),
  961. Enum.EasingDirection.Out,
  962. Enum.EasingStyle.Quart,
  963. .2,
  964. true
  965. )
  966. TweenService:Create(
  967. ArrowImg,
  968. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  969. {Rotation = 0}
  970. ):Play()
  971. wait(.2)
  972. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  973. end
  974. )
  975.  
  976. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y)
  977. end
  978. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  979. end
  980. function tabcontent:Colorpicker(text, preset, callback)
  981. local ColorPickerToggled = false
  982. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  983. local OldColor = Color3.fromRGB(0, 0, 0)
  984. local OldColorSelectionPosition = nil
  985. local OldHueSelectionPosition = nil
  986. local ColorH, ColorS, ColorV = 1, 1, 1
  987. local RainbowColorPicker = false
  988. local ColorPickerInput = nil
  989. local ColorInput = nil
  990. local HueInput = nil
  991.  
  992. local Colorpicker = Instance.new("Frame")
  993. local ColorpickerCorner = Instance.new("UICorner")
  994. local ColorpickerTitle = Instance.new("TextLabel")
  995. local BoxColor = Instance.new("Frame")
  996. local BoxColorCorner = Instance.new("UICorner")
  997. local ConfirmBtn = Instance.new("TextButton")
  998. local ConfirmBtnCorner = Instance.new("UICorner")
  999. local ConfirmBtnTitle = Instance.new("TextLabel")
  1000. local ColorpickerBtn = Instance.new("TextButton")
  1001. local RainbowToggle = Instance.new("TextButton")
  1002. local RainbowToggleCorner = Instance.new("UICorner")
  1003. local RainbowToggleTitle = Instance.new("TextLabel")
  1004. local FrameRainbowToggle1 = Instance.new("Frame")
  1005. local FrameRainbowToggle1Corner = Instance.new("UICorner")
  1006. local FrameRainbowToggle2 = Instance.new("Frame")
  1007. local FrameRainbowToggle2_2 = Instance.new("UICorner")
  1008. local FrameRainbowToggle3 = Instance.new("Frame")
  1009. local FrameToggle3 = Instance.new("UICorner")
  1010. local FrameRainbowToggleCircle = Instance.new("Frame")
  1011. local FrameRainbowToggleCircleCorner = Instance.new("UICorner")
  1012. local Color = Instance.new("ImageLabel")
  1013. local ColorCorner = Instance.new("UICorner")
  1014. local ColorSelection = Instance.new("ImageLabel")
  1015. local Hue = Instance.new("ImageLabel")
  1016. local HueCorner = Instance.new("UICorner")
  1017. local HueGradient = Instance.new("UIGradient")
  1018. local HueSelection = Instance.new("ImageLabel")
  1019.  
  1020. Colorpicker.Name = "Colorpicker"
  1021. Colorpicker.Parent = Tab
  1022. Colorpicker.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1023. Colorpicker.ClipsDescendants = true
  1024. Colorpicker.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1025. Colorpicker.Size = UDim2.new(0, 363, 0, 42)
  1026.  
  1027. ColorpickerCorner.CornerRadius = UDim.new(0, 5)
  1028. ColorpickerCorner.Name = "ColorpickerCorner"
  1029. ColorpickerCorner.Parent = Colorpicker
  1030.  
  1031. ColorpickerTitle.Name = "ColorpickerTitle"
  1032. ColorpickerTitle.Parent = Colorpicker
  1033. ColorpickerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1034. ColorpickerTitle.BackgroundTransparency = 1.000
  1035. ColorpickerTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1036. ColorpickerTitle.Size = UDim2.new(0, 187, 0, 42)
  1037. ColorpickerTitle.Font = Enum.Font.Gotham
  1038. ColorpickerTitle.Text = text
  1039. ColorpickerTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1040. ColorpickerTitle.TextSize = 14.000
  1041. ColorpickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  1042.  
  1043. BoxColor.Name = "BoxColor"
  1044. BoxColor.Parent = ColorpickerTitle
  1045. BoxColor.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1046. BoxColor.Position = UDim2.new(1.60427809, 0, 0.214285716, 0)
  1047. BoxColor.Size = UDim2.new(0, 41, 0, 23)
  1048.  
  1049. BoxColorCorner.CornerRadius = UDim.new(0, 5)
  1050. BoxColorCorner.Name = "BoxColorCorner"
  1051. BoxColorCorner.Parent = BoxColor
  1052.  
  1053. ConfirmBtn.Name = "ConfirmBtn"
  1054. ConfirmBtn.Parent = ColorpickerTitle
  1055. ConfirmBtn.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1056. ConfirmBtn.Position = UDim2.new(1.25814295, 0, 1.09037197, 0)
  1057. ConfirmBtn.Size = UDim2.new(0, 105, 0, 32)
  1058. ConfirmBtn.AutoButtonColor = false
  1059. ConfirmBtn.Font = Enum.Font.SourceSans
  1060. ConfirmBtn.Text = ""
  1061. ConfirmBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1062. ConfirmBtn.TextSize = 14.000
  1063.  
  1064. ConfirmBtnCorner.CornerRadius = UDim.new(0, 5)
  1065. ConfirmBtnCorner.Name = "ConfirmBtnCorner"
  1066. ConfirmBtnCorner.Parent = ConfirmBtn
  1067.  
  1068. ConfirmBtnTitle.Name = "ConfirmBtnTitle"
  1069. ConfirmBtnTitle.Parent = ConfirmBtn
  1070. ConfirmBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1071. ConfirmBtnTitle.BackgroundTransparency = 1.000
  1072. ConfirmBtnTitle.Size = UDim2.new(0, 33, 0, 32)
  1073. ConfirmBtnTitle.Font = Enum.Font.Gotham
  1074. ConfirmBtnTitle.Text = "Confirm"
  1075. ConfirmBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1076. ConfirmBtnTitle.TextSize = 14.000
  1077. ConfirmBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  1078.  
  1079. ColorpickerBtn.Name = "ColorpickerBtn"
  1080. ColorpickerBtn.Parent = ColorpickerTitle
  1081. ColorpickerBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1082. ColorpickerBtn.BackgroundTransparency = 1.000
  1083. ColorpickerBtn.Size = UDim2.new(0, 363, 0, 42)
  1084. ColorpickerBtn.Font = Enum.Font.SourceSans
  1085. ColorpickerBtn.Text = ""
  1086. ColorpickerBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1087. ColorpickerBtn.TextSize = 14.000
  1088.  
  1089. RainbowToggle.Name = "RainbowToggle"
  1090. RainbowToggle.Parent = ColorpickerTitle
  1091. RainbowToggle.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1092. RainbowToggle.Position = UDim2.new(1.26349044, 0, 2.12684202, 0)
  1093. RainbowToggle.Size = UDim2.new(0, 104, 0, 32)
  1094. RainbowToggle.AutoButtonColor = false
  1095. RainbowToggle.Font = Enum.Font.SourceSans
  1096. RainbowToggle.Text = ""
  1097. RainbowToggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  1098. RainbowToggle.TextSize = 14.000
  1099.  
  1100. RainbowToggleCorner.CornerRadius = UDim.new(0, 5)
  1101. RainbowToggleCorner.Name = "RainbowToggleCorner"
  1102. RainbowToggleCorner.Parent = RainbowToggle
  1103.  
  1104. RainbowToggleTitle.Name = "RainbowToggleTitle"
  1105. RainbowToggleTitle.Parent = RainbowToggle
  1106. RainbowToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1107. RainbowToggleTitle.BackgroundTransparency = 1.000
  1108. RainbowToggleTitle.Size = UDim2.new(0, 33, 0, 32)
  1109. RainbowToggleTitle.Font = Enum.Font.Gotham
  1110. RainbowToggleTitle.Text = "Rainbow"
  1111. RainbowToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1112. RainbowToggleTitle.TextSize = 14.000
  1113. RainbowToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  1114.  
  1115. FrameRainbowToggle1.Name = "FrameRainbowToggle1"
  1116. FrameRainbowToggle1.Parent = RainbowToggle
  1117. FrameRainbowToggle1.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1118. FrameRainbowToggle1.Position = UDim2.new(0.649999976, 0, 0.186000004, 0)
  1119. FrameRainbowToggle1.Size = UDim2.new(0, 37, 0, 18)
  1120.  
  1121. FrameRainbowToggle1Corner.Name = "FrameRainbowToggle1Corner"
  1122. FrameRainbowToggle1Corner.Parent = FrameRainbowToggle1
  1123.  
  1124. FrameRainbowToggle2.Name = "FrameRainbowToggle2"
  1125. FrameRainbowToggle2.Parent = FrameRainbowToggle1
  1126. FrameRainbowToggle2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1127. FrameRainbowToggle2.Position = UDim2.new(0.0590000004, 0, 0.112999998, 0)
  1128. FrameRainbowToggle2.Size = UDim2.new(0, 33, 0, 14)
  1129.  
  1130. FrameRainbowToggle2_2.Name = "FrameRainbowToggle2"
  1131. FrameRainbowToggle2_2.Parent = FrameRainbowToggle2
  1132.  
  1133. FrameRainbowToggle3.Name = "FrameRainbowToggle3"
  1134. FrameRainbowToggle3.Parent = FrameRainbowToggle1
  1135. FrameRainbowToggle3.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1136. FrameRainbowToggle3.BackgroundTransparency = 1.000
  1137. FrameRainbowToggle3.Size = UDim2.new(0, 37, 0, 18)
  1138.  
  1139. FrameToggle3.Name = "FrameToggle3"
  1140. FrameToggle3.Parent = FrameRainbowToggle3
  1141.  
  1142. FrameRainbowToggleCircle.Name = "FrameRainbowToggleCircle"
  1143. FrameRainbowToggleCircle.Parent = FrameRainbowToggle1
  1144. FrameRainbowToggleCircle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1145. FrameRainbowToggleCircle.Position = UDim2.new(0.127000004, 0, 0.222000003, 0)
  1146. FrameRainbowToggleCircle.Size = UDim2.new(0, 10, 0, 10)
  1147.  
  1148. FrameRainbowToggleCircleCorner.Name = "FrameRainbowToggleCircleCorner"
  1149. FrameRainbowToggleCircleCorner.Parent = FrameRainbowToggleCircle
  1150.  
  1151. Color.Name = "Color"
  1152. Color.Parent = ColorpickerTitle
  1153. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1154. Color.Position = UDim2.new(0, 0, 0, 42)
  1155. Color.Size = UDim2.new(0, 194, 0, 80)
  1156. Color.ZIndex = 10
  1157. Color.Image = "rbxassetid://4155801252"
  1158.  
  1159. ColorCorner.CornerRadius = UDim.new(0, 3)
  1160. ColorCorner.Name = "ColorCorner"
  1161. ColorCorner.Parent = Color
  1162.  
  1163. ColorSelection.Name = "ColorSelection"
  1164. ColorSelection.Parent = Color
  1165. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1166. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1167. ColorSelection.BackgroundTransparency = 1.000
  1168. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1169. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1170. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1171. ColorSelection.ScaleType = Enum.ScaleType.Fit
  1172. ColorSelection.Visible = false
  1173.  
  1174. Hue.Name = "Hue"
  1175. Hue.Parent = ColorpickerTitle
  1176. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1177. Hue.Position = UDim2.new(0, 202, 0, 42)
  1178. Hue.Size = UDim2.new(0, 25, 0, 80)
  1179.  
  1180. HueCorner.CornerRadius = UDim.new(0, 3)
  1181. HueCorner.Name = "HueCorner"
  1182. HueCorner.Parent = Hue
  1183.  
  1184. HueGradient.Color =
  1185. ColorSequence.new {
  1186. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1187. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1188. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1189. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1190. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1191. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1192. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1193. }
  1194. HueGradient.Rotation = 270
  1195. HueGradient.Name = "HueGradient"
  1196. HueGradient.Parent = Hue
  1197.  
  1198. HueSelection.Name = "HueSelection"
  1199. HueSelection.Parent = Hue
  1200. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1201. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1202. HueSelection.BackgroundTransparency = 1.000
  1203. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1204. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1205. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1206. HueSelection.Visible = false
  1207.  
  1208. coroutine.wrap(
  1209. function()
  1210. while wait() do
  1211. FrameRainbowToggle3.BackgroundColor3 = PresetColor
  1212. end
  1213. end
  1214. )()
  1215.  
  1216. ColorpickerBtn.MouseButton1Click:Connect(
  1217. function()
  1218. if ColorPickerToggled == false then
  1219. ColorSelection.Visible = true
  1220. HueSelection.Visible = true
  1221. Colorpicker:TweenSize(
  1222. UDim2.new(0, 363, 0, 132),
  1223. Enum.EasingDirection.Out,
  1224. Enum.EasingStyle.Quart,
  1225. .2,
  1226. true
  1227. )
  1228. wait(.2)
  1229. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1230. else
  1231. ColorSelection.Visible = false
  1232. HueSelection.Visible = false
  1233. Colorpicker:TweenSize(
  1234. UDim2.new(0, 363, 0, 42),
  1235. Enum.EasingDirection.Out,
  1236. Enum.EasingStyle.Quart,
  1237. .2,
  1238. true
  1239. )
  1240. wait(.2)
  1241. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1242. end
  1243. ColorPickerToggled = not ColorPickerToggled
  1244. end
  1245. )
  1246.  
  1247. local function UpdateColorPicker(nope)
  1248. BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1249. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1250.  
  1251. pcall(callback, BoxColor.BackgroundColor3)
  1252. end
  1253.  
  1254. ColorH =
  1255. 1 -
  1256. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1257. Hue.AbsoluteSize.Y)
  1258. ColorS =
  1259. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1260. Color.AbsoluteSize.X)
  1261. ColorV =
  1262. 1 -
  1263. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1264. Color.AbsoluteSize.Y)
  1265.  
  1266. BoxColor.BackgroundColor3 = preset
  1267. Color.BackgroundColor3 = preset
  1268. pcall(callback, BoxColor.BackgroundColor3)
  1269.  
  1270. Color.InputBegan:Connect(
  1271. function(input)
  1272. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1273. if RainbowColorPicker then
  1274. return
  1275. end
  1276.  
  1277. if ColorInput then
  1278. ColorInput:Disconnect()
  1279. end
  1280.  
  1281. ColorInput =
  1282. RunService.RenderStepped:Connect(
  1283. function()
  1284. local ColorX =
  1285. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1286. Color.AbsoluteSize.X)
  1287. local ColorY =
  1288. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1289. Color.AbsoluteSize.Y)
  1290.  
  1291. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1292. ColorS = ColorX
  1293. ColorV = 1 - ColorY
  1294.  
  1295. UpdateColorPicker(true)
  1296. end
  1297. )
  1298. end
  1299. end
  1300. )
  1301.  
  1302. Color.InputEnded:Connect(
  1303. function(input)
  1304. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1305. if ColorInput then
  1306. ColorInput:Disconnect()
  1307. end
  1308. end
  1309. end
  1310. )
  1311.  
  1312. Hue.InputBegan:Connect(
  1313. function(input)
  1314. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1315. if RainbowColorPicker then
  1316. return
  1317. end
  1318.  
  1319. if HueInput then
  1320. HueInput:Disconnect()
  1321. end
  1322.  
  1323. HueInput =
  1324. RunService.RenderStepped:Connect(
  1325. function()
  1326. local HueY =
  1327. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1328. Hue.AbsoluteSize.Y)
  1329.  
  1330. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1331. ColorH = 1 - HueY
  1332.  
  1333. UpdateColorPicker(true)
  1334. end
  1335. )
  1336. end
  1337. end
  1338. )
  1339.  
  1340. Hue.InputEnded:Connect(
  1341. function(input)
  1342. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1343. if HueInput then
  1344. HueInput:Disconnect()
  1345. end
  1346. end
  1347. end
  1348. )
  1349.  
  1350. RainbowToggle.MouseButton1Down:Connect(
  1351. function()
  1352. RainbowColorPicker = not RainbowColorPicker
  1353.  
  1354. if ColorInput then
  1355. ColorInput:Disconnect()
  1356. end
  1357.  
  1358. if HueInput then
  1359. HueInput:Disconnect()
  1360. end
  1361.  
  1362. if RainbowColorPicker then
  1363. TweenService:Create(
  1364. FrameRainbowToggle1,
  1365. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1366. {BackgroundTransparency = 1}
  1367. ):Play()
  1368. TweenService:Create(
  1369. FrameRainbowToggle2,
  1370. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1371. {BackgroundTransparency = 1}
  1372. ):Play()
  1373. TweenService:Create(
  1374. FrameRainbowToggle3,
  1375. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1376. {BackgroundTransparency = 0}
  1377. ):Play()
  1378. TweenService:Create(
  1379. FrameRainbowToggleCircle,
  1380. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1381. {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}
  1382. ):Play()
  1383. FrameRainbowToggleCircle:TweenPosition(
  1384. UDim2.new(0.587, 0, 0.222000003, 0),
  1385. Enum.EasingDirection.Out,
  1386. Enum.EasingStyle.Quart,
  1387. .2,
  1388. true
  1389. )
  1390.  
  1391. OldToggleColor = BoxColor.BackgroundColor3
  1392. OldColor = Color.BackgroundColor3
  1393. OldColorSelectionPosition = ColorSelection.Position
  1394. OldHueSelectionPosition = HueSelection.Position
  1395.  
  1396. while RainbowColorPicker do
  1397. BoxColor.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1398. Color.BackgroundColor3 = Color3.fromHSV(lib.RainbowColorValue, 1, 1)
  1399.  
  1400. ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1401. HueSelection.Position = UDim2.new(0.48, 0, 0, lib.HueSelectionPosition)
  1402.  
  1403. pcall(callback, BoxColor.BackgroundColor3)
  1404. wait()
  1405. end
  1406. elseif not RainbowColorPicker then
  1407. TweenService:Create(
  1408. FrameRainbowToggle1,
  1409. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1410. {BackgroundTransparency = 0}
  1411. ):Play()
  1412. TweenService:Create(
  1413. FrameRainbowToggle2,
  1414. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1415. {BackgroundTransparency = 0}
  1416. ):Play()
  1417. TweenService:Create(
  1418. FrameRainbowToggle3,
  1419. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1420. {BackgroundTransparency = 1}
  1421. ):Play()
  1422. TweenService:Create(
  1423. FrameRainbowToggleCircle,
  1424. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1425. {BackgroundColor3 = Color3.fromRGB(50, 50, 50)}
  1426. ):Play()
  1427. FrameRainbowToggleCircle:TweenPosition(
  1428. UDim2.new(0.127000004, 0, 0.222000003, 0),
  1429. Enum.EasingDirection.Out,
  1430. Enum.EasingStyle.Quart,
  1431. .2,
  1432. true
  1433. )
  1434.  
  1435. BoxColor.BackgroundColor3 = OldToggleColor
  1436. Color.BackgroundColor3 = OldColor
  1437.  
  1438. ColorSelection.Position = OldColorSelectionPosition
  1439. HueSelection.Position = OldHueSelectionPosition
  1440.  
  1441. pcall(callback, BoxColor.BackgroundColor3)
  1442. end
  1443. end
  1444. )
  1445.  
  1446. ConfirmBtn.MouseButton1Click:Connect(
  1447. function()
  1448. ColorSelection.Visible = false
  1449. HueSelection.Visible = false
  1450. Colorpicker:TweenSize(
  1451. UDim2.new(0, 363, 0, 42),
  1452. Enum.EasingDirection.Out,
  1453. Enum.EasingStyle.Quart,
  1454. .2,
  1455. true
  1456. )
  1457. wait(.2)
  1458. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1459. end
  1460. )
  1461. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1462. end
  1463. function tabcontent:Label(text)
  1464. local Label = Instance.new("TextButton")
  1465. local LabelCorner = Instance.new("UICorner")
  1466. local LabelTitle = Instance.new("TextLabel")
  1467.  
  1468. Label.Name = "Button"
  1469. Label.Parent = Tab
  1470. Label.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1471. Label.Size = UDim2.new(0, 363, 0, 42)
  1472. Label.AutoButtonColor = false
  1473. Label.Font = Enum.Font.SourceSans
  1474. Label.Text = ""
  1475. Label.TextColor3 = Color3.fromRGB(0, 0, 0)
  1476. Label.TextSize = 14.000
  1477.  
  1478. LabelCorner.CornerRadius = UDim.new(0, 5)
  1479. LabelCorner.Name = "ButtonCorner"
  1480. LabelCorner.Parent = Label
  1481.  
  1482. LabelTitle.Name = "ButtonTitle"
  1483. LabelTitle.Parent = Label
  1484. LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1485. LabelTitle.BackgroundTransparency = 1.000
  1486. LabelTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1487. LabelTitle.Size = UDim2.new(0, 187, 0, 42)
  1488. LabelTitle.Font = Enum.Font.Gotham
  1489. LabelTitle.Text = text
  1490. LabelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1491. LabelTitle.TextSize = 14.000
  1492. LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
  1493.  
  1494. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1495. end
  1496. function tabcontent:Textbox(text, disapper, callback)
  1497. local Textbox = Instance.new("Frame")
  1498. local TextboxCorner = Instance.new("UICorner")
  1499. local TextboxTitle = Instance.new("TextLabel")
  1500. local TextboxFrame = Instance.new("Frame")
  1501. local TextboxFrameCorner = Instance.new("UICorner")
  1502. local TextBox = Instance.new("TextBox")
  1503.  
  1504. Textbox.Name = "Textbox"
  1505. Textbox.Parent = Tab
  1506. Textbox.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1507. Textbox.ClipsDescendants = true
  1508. Textbox.Position = UDim2.new(-0.541071415, 0, -0.532915354, 0)
  1509. Textbox.Size = UDim2.new(0, 363, 0, 42)
  1510.  
  1511. TextboxCorner.CornerRadius = UDim.new(0, 5)
  1512. TextboxCorner.Name = "TextboxCorner"
  1513. TextboxCorner.Parent = Textbox
  1514.  
  1515. TextboxTitle.Name = "TextboxTitle"
  1516. TextboxTitle.Parent = Textbox
  1517. TextboxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1518. TextboxTitle.BackgroundTransparency = 1.000
  1519. TextboxTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1520. TextboxTitle.Size = UDim2.new(0, 187, 0, 42)
  1521. TextboxTitle.Font = Enum.Font.Gotham
  1522. TextboxTitle.Text = text
  1523. TextboxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1524. TextboxTitle.TextSize = 14.000
  1525. TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
  1526.  
  1527. TextboxFrame.Name = "TextboxFrame"
  1528. TextboxFrame.Parent = TextboxTitle
  1529. TextboxFrame.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
  1530. TextboxFrame.Position = UDim2.new(1.28877008, 0, 0.214285716, 0)
  1531. TextboxFrame.Size = UDim2.new(0, 100, 0, 23)
  1532.  
  1533. TextboxFrameCorner.CornerRadius = UDim.new(0, 5)
  1534. TextboxFrameCorner.Name = "TextboxFrameCorner"
  1535. TextboxFrameCorner.Parent = TextboxFrame
  1536.  
  1537. TextBox.Parent = TextboxFrame
  1538. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1539. TextBox.BackgroundTransparency = 1.000
  1540. TextBox.Size = UDim2.new(0, 100, 0, 23)
  1541. TextBox.Font = Enum.Font.Gotham
  1542. TextBox.Text = ""
  1543. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1544. TextBox.TextSize = 14.000
  1545.  
  1546. TextBox.FocusLost:Connect(
  1547. function(ep)
  1548. if ep then
  1549. if #TextBox.Text > 0 then
  1550. pcall(callback, TextBox.Text)
  1551. if disapper then
  1552. TextBox.Text = ""
  1553. end
  1554. end
  1555. end
  1556. end
  1557. )
  1558. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1559. end
  1560. function tabcontent:Bind(text, keypreset, callback)
  1561. local binding = false
  1562. local Key = keypreset.Name
  1563. local Bind = Instance.new("TextButton")
  1564. local BindCorner = Instance.new("UICorner")
  1565. local BindTitle = Instance.new("TextLabel")
  1566. local BindText = Instance.new("TextLabel")
  1567.  
  1568. Bind.Name = "Bind"
  1569. Bind.Parent = Tab
  1570. Bind.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  1571. Bind.Size = UDim2.new(0, 363, 0, 42)
  1572. Bind.AutoButtonColor = false
  1573. Bind.Font = Enum.Font.SourceSans
  1574. Bind.Text = ""
  1575. Bind.TextColor3 = Color3.fromRGB(0, 0, 0)
  1576. Bind.TextSize = 14.000
  1577.  
  1578. BindCorner.CornerRadius = UDim.new(0, 5)
  1579. BindCorner.Name = "BindCorner"
  1580. BindCorner.Parent = Bind
  1581.  
  1582. BindTitle.Name = "BindTitle"
  1583. BindTitle.Parent = Bind
  1584. BindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1585. BindTitle.BackgroundTransparency = 1.000
  1586. BindTitle.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1587. BindTitle.Size = UDim2.new(0, 187, 0, 42)
  1588. BindTitle.Font = Enum.Font.Gotham
  1589. BindTitle.Text = text
  1590. BindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1591. BindTitle.TextSize = 14.000
  1592. BindTitle.TextXAlignment = Enum.TextXAlignment.Left
  1593.  
  1594. BindText.Name = "BindText"
  1595. BindText.Parent = Bind
  1596. BindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1597. BindText.BackgroundTransparency = 1.000
  1598. BindText.Position = UDim2.new(0.0358126722, 0, 0, 0)
  1599. BindText.Size = UDim2.new(0, 337, 0, 42)
  1600. BindText.Font = Enum.Font.Gotham
  1601. BindText.Text = Key
  1602. BindText.TextColor3 = Color3.fromRGB(255, 255, 255)
  1603. BindText.TextSize = 14.000
  1604. BindText.TextXAlignment = Enum.TextXAlignment.Right
  1605.  
  1606. Tab.CanvasSize = UDim2.new(0, 0, 0, TabLayout.AbsoluteContentSize.Y)
  1607.  
  1608. Bind.MouseButton1Click:Connect(
  1609. function()
  1610. BindText.Text = "..."
  1611. binding = true
  1612. local inputwait = game:GetService("UserInputService").InputBegan:wait()
  1613. if inputwait.KeyCode.Name ~= "Unknown" then
  1614. BindText.Text = inputwait.KeyCode.Name
  1615. Key = inputwait.KeyCode.Name
  1616. binding = false
  1617. else
  1618. binding = false
  1619. end
  1620. end
  1621. )
  1622.  
  1623. game:GetService("UserInputService").InputBegan:connect(function(current, pressed)
  1624. if not pressed then
  1625. if current.KeyCode.Name == Key and binding == false then
  1626. pcall(callback)
  1627. end
  1628. end
  1629. end)
  1630. end
  1631. return tabcontent
  1632. end
  1633. return tabhold
  1634. end
  1635. return lib
Add Comment
Please, Sign In to add comment