Advertisement
NightGolden

ddd

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