Advertisement
Guest User

Bacon hub

a guest
Dec 30th, 2021
3,398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.13 KB | None | 0 0
  1.  
  2. print("HavenRBX Is a qt")
  3. game:GetService("StarterGui"):SetCore("SendNotification",{
  4. Title = "CREDITS",
  5. Text = "GUI generated by HavenRBX's UI generator!",
  6. Button1 = "Ok!",
  7. Duration = 30
  8. })
  9. --Scripting is at the bottom - thx to mana64
  10. if game.CoreGui:FindFirstChild("Library") then
  11. game.CoreGui:FindFirstChild("Library"):Destroy()
  12. end
  13. local VLib = {RainbowColorValue = 0, HueSelectionPosition = 0}
  14. local UserInputService = game:GetService("UserInputService")
  15. local TweenService = game:GetService("TweenService")
  16. local RunService = game:GetService("RunService")
  17. local LocalPlayer = game:GetService("Players").LocalPlayer
  18. local Mouse = LocalPlayer:GetMouse()
  19.  
  20.  
  21. coroutine.wrap(
  22. function()
  23. while wait() do
  24. VLib.RainbowColorValue = VLib.RainbowColorValue + 1 / 255
  25. VLib.HueSelectionPosition = VLib.HueSelectionPosition + 1
  26.  
  27. if VLib.RainbowColorValue >= 1 then
  28. VLib.RainbowColorValue = 0
  29. end
  30.  
  31. if VLib.HueSelectionPosition == 80 then
  32. VLib.HueSelectionPosition = 0
  33. end
  34. end
  35. end
  36. )()
  37.  
  38. local function MakeDraggable(topbarobject, object)
  39. local Dragging = nil
  40. local DragInput = nil
  41. local DragStart = nil
  42. local StartPosition = nil
  43.  
  44. local function Update(input)
  45. local Delta = input.Position - DragStart
  46. local pos =
  47. UDim2.new(
  48. StartPosition.X.Scale,
  49. StartPosition.X.Offset + Delta.X,
  50. StartPosition.Y.Scale,
  51. StartPosition.Y.Offset + Delta.Y
  52. )
  53. local Tween = TweenService:Create(object, TweenInfo.new(0.2), {Position = pos})
  54. Tween:Play()
  55. end
  56.  
  57. topbarobject.InputBegan:Connect(
  58. function(input)
  59. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  60. Dragging = true
  61. DragStart = input.Position
  62. StartPosition = object.Position
  63.  
  64. input.Changed:Connect(
  65. function()
  66. if input.UserInputState == Enum.UserInputState.End then
  67. Dragging = false
  68. end
  69. end
  70. )
  71. end
  72. end
  73. )
  74.  
  75. topbarobject.InputChanged:Connect(
  76. function(input)
  77. if
  78. input.UserInputType == Enum.UserInputType.MouseMovement or
  79. input.UserInputType == Enum.UserInputType.Touch
  80. then
  81. DragInput = input
  82. end
  83. end
  84. )
  85.  
  86. UserInputService.InputChanged:Connect(
  87. function(input)
  88. if input == DragInput and Dragging then
  89. Update(input)
  90. end
  91. end
  92. )
  93. end
  94.  
  95. local Library = Instance.new("ScreenGui")
  96. Library.Name = "Library"
  97. Library.Parent = game.CoreGui
  98. Library.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  99.  
  100. local uitoggled = false
  101. UserInputService.InputBegan:Connect(
  102. function(io, p)
  103. if io.KeyCode == Enum.KeyCode.RightControl then
  104. if uitoggled == false then
  105. Library.Enabled = false
  106. uitoggled = true
  107. else
  108. Library.Enabled = true
  109. uitoggled = false
  110. end
  111. end
  112. end
  113. )
  114.  
  115. function VLib:Window(text, textgame, textcircle)
  116. local FirstTab = false
  117. local MainFrame = Instance.new("Frame")
  118. local MainCorner = Instance.new("UICorner")
  119. local LeftFrame = Instance.new("Frame")
  120. local LeftFrameCorner = Instance.new("UICorner")
  121. local MainTitle = Instance.new("TextLabel")
  122. local Circle = Instance.new("Frame")
  123. local CircleCorner = Instance.new("UICorner")
  124. local CircleName = Instance.new("TextLabel")
  125. local GameTitle = Instance.new("TextLabel")
  126. local TabHolder = Instance.new("Frame")
  127. local TabHoldLayout = Instance.new("UIListLayout")
  128. local RainbowLine = Instance.new("Frame")
  129. local RainbowLineCorner = Instance.new("UICorner")
  130. local ContainerHold = Instance.new("Folder")
  131. local DragFrame = Instance.new("Frame")
  132. local Glow = Instance.new("ImageLabel")
  133.  
  134. MainFrame.Name = "MainFrame"
  135. MainFrame.Parent = Library
  136. MainFrame.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  137. MainFrame.Position = UDim2.new(0.5, -325, 0.5, -250)
  138. MainFrame.Size = UDim2.new(0, 650, 0, 500)
  139.  
  140. MainCorner.CornerRadius = UDim.new(0, 5)
  141. MainCorner.Name = "MainCorner"
  142. MainCorner.Parent = MainFrame
  143.  
  144. LeftFrame.Name = "LeftFrame"
  145. LeftFrame.Parent = MainFrame
  146. LeftFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  147. LeftFrame.Position = UDim2.new(-0.000674468291, 0, -0.000149806539, 0)
  148. LeftFrame.Size = UDim2.new(0, 190, 0, 500)
  149.  
  150. LeftFrameCorner.CornerRadius = UDim.new(0, 5)
  151. LeftFrameCorner.Name = "LeftFrameCorner"
  152. LeftFrameCorner.Parent = LeftFrame
  153.  
  154. MainTitle.Name = "MainTitle"
  155. MainTitle.Parent = LeftFrame
  156. MainTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  157. MainTitle.BackgroundTransparency = 1.000
  158. MainTitle.Position = UDim2.new(0.168, 0, 0.043, 0)
  159. MainTitle.Size = UDim2.new(0, 71, 0, 20)
  160. MainTitle.Font = Enum.Font.Gotham
  161. MainTitle.Text = text
  162. MainTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  163. MainTitle.TextSize = 25.000
  164. MainTitle.TextXAlignment = Enum.TextXAlignment.Left
  165.  
  166.  
  167. GameTitle.Name = "GameTitle"
  168. GameTitle.Parent = LeftFrame
  169. GameTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  170. GameTitle.BackgroundTransparency = 1.000
  171. GameTitle.Position = UDim2.new(0.168, 0, 0.089, 6)
  172. GameTitle.Size = UDim2.new(0, 71, 0, 20)
  173. GameTitle.Font = Enum.Font.Gotham
  174. GameTitle.Text = textgame
  175. GameTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  176. GameTitle.TextSize = 17.000
  177. GameTitle.TextTransparency = 0.400
  178. GameTitle.TextXAlignment = Enum.TextXAlignment.Left
  179.  
  180. TabHolder.Name = "TabHolder"
  181. TabHolder.Parent = LeftFrame
  182. TabHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. TabHolder.BackgroundTransparency = 1.000
  184. TabHolder.Position = UDim2.new(0.0806451589, 0, 0.189360261, 0)
  185. TabHolder.Size = UDim2.new(0, 159, 0, 309)
  186.  
  187. TabHoldLayout.Name = "TabHoldLayout"
  188. TabHoldLayout.Parent = TabHolder
  189. TabHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  190. TabHoldLayout.Padding = UDim.new(0,5)
  191.  
  192. ContainerHold.Name = "ContainerHold"
  193. ContainerHold.Parent = MainFrame
  194.  
  195. DragFrame.Name = "DragFrame"
  196. DragFrame.Parent = MainFrame
  197. DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. DragFrame.BackgroundTransparency = 1.000
  199. DragFrame.Position = UDim2.new(0.30130294, 0, 0.00253164559, 0)
  200. DragFrame.Size = UDim2.new(0, 428, 0, 21)
  201.  
  202. Glow.Name = "Glow"
  203. Glow.Parent = LeftFrame
  204. Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  205. Glow.BackgroundTransparency = 1.000
  206. Glow.BorderSizePixel = 0
  207. Glow.Position = UDim2.new(0, -15, 0, -15)
  208. Glow.Size = UDim2.new(1, 30, 1, 30)
  209. Glow.ZIndex = 0
  210. Glow.Image = "rbxassetid://4996891970"
  211. Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  212. Glow.ScaleType = Enum.ScaleType.Slice
  213. Glow.SliceCenter = Rect.new(20, 20, 280, 280)
  214.  
  215. MakeDraggable(MainFrame, MainFrame)
  216.  
  217. function VLib:Notification(textdesc)
  218. local NotificationHold = Instance.new("TextButton")
  219. local NotificationFrame = Instance.new("Frame")
  220. local OkayBtn = Instance.new("TextButton")
  221. local OkayBtnCorner = Instance.new("UICorner")
  222. local OkayBtnTitle = Instance.new("TextLabel")
  223. local NotificationTitle = Instance.new("TextLabel")
  224. local NotificationDesc = Instance.new("TextLabel")
  225.  
  226. NotificationHold.Name = "NotificationHold"
  227. NotificationHold.Parent = MainFrame
  228. NotificationHold.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  229. NotificationHold.BackgroundTransparency = 0.700
  230. NotificationHold.BorderSizePixel = 0
  231. NotificationHold.Size = UDim2.new(0, 650, 0, 500)
  232. NotificationHold.AutoButtonColor = false
  233. NotificationHold.Font = Enum.Font.SourceSans
  234. NotificationHold.Text = ""
  235. NotificationHold.TextColor3 = Color3.fromRGB(0, 0, 0)
  236. NotificationHold.TextSize = 14.000
  237.  
  238. TweenService:Create(
  239. NotificationHold,
  240. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  241. {BackgroundTransparency = 0.7}
  242. ):Play()
  243. wait(0.4)
  244.  
  245. NotificationFrame.Name = "NotificationFrame"
  246. NotificationFrame.Parent = NotificationHold
  247. NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  248. NotificationFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  249. NotificationFrame.BorderSizePixel = 0
  250. NotificationFrame.ClipsDescendants = true
  251. NotificationFrame.Position = UDim2.new(0.5, 0, 0.498432577, 0)
  252. NotificationFrame.Size = UDim2.new(0, 0, 0, 0)
  253.  
  254. NotificationFrame:TweenSize(UDim2.new(0, 305,0, 283), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  255.  
  256. OkayBtn.Name = "OkayBtn"
  257. OkayBtn.Parent = NotificationFrame
  258. OkayBtn.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  259. OkayBtn.Position = UDim2.new(0.171131134, 0, 0.759717345, 0)
  260. OkayBtn.Size = UDim2.new(0, 200, 0, 42)
  261. OkayBtn.AutoButtonColor = false
  262. OkayBtn.Font = Enum.Font.SourceSans
  263. OkayBtn.Text = ""
  264. OkayBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  265. OkayBtn.TextSize = 14.000
  266.  
  267. OkayBtnCorner.CornerRadius = UDim.new(0, 5)
  268. OkayBtnCorner.Name = "OkayBtnCorner"
  269. OkayBtnCorner.Parent = OkayBtn
  270.  
  271. OkayBtnTitle.Name = "OkayBtnTitle"
  272. OkayBtnTitle.Parent = OkayBtn
  273. OkayBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  274. OkayBtnTitle.BackgroundTransparency = 1.000
  275. OkayBtnTitle.Size = UDim2.new(0, 200, 0, 42)
  276. OkayBtnTitle.Text = "OK!"
  277. OkayBtnTitle.Font = Enum.Font.Gotham
  278. OkayBtnTitle.TextColor3 = Color3.fromRGB(202, 202, 202)
  279. OkayBtnTitle.TextSize = 24.000
  280.  
  281. NotificationTitle.Name = "NotificationTitle"
  282. NotificationTitle.Parent = NotificationFrame
  283. NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284. NotificationTitle.BackgroundTransparency = 1.000
  285. NotificationTitle.Position = UDim2.new(0.0559394211, 0, 0.0652336925, 0)
  286. NotificationTitle.Size = UDim2.new(0, 272, 0, 26)
  287. NotificationTitle.ZIndex = 3
  288. NotificationTitle.Font = Enum.Font.Gotham
  289. NotificationTitle.Text = "Notification"
  290. NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  291. NotificationTitle.TextSize = 24.000
  292.  
  293. NotificationDesc.Name = "NotificationDesc"
  294. NotificationDesc.Parent = NotificationFrame
  295. NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  296. NotificationDesc.BackgroundTransparency = 1.000
  297. NotificationDesc.Position = UDim2.new(0.0670000017, 0, 0.218999997, 0)
  298. NotificationDesc.Size = UDim2.new(0, 274, 0, 146)
  299. NotificationDesc.Font = Enum.Font.Gotham
  300. NotificationDesc.Text = textdesc
  301. NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
  302. NotificationDesc.TextSize = 20.000
  303. NotificationDesc.TextWrapped = true
  304. NotificationDesc.TextXAlignment = Enum.TextXAlignment.Center
  305. NotificationDesc.TextYAlignment = Enum.TextYAlignment.Top
  306.  
  307. OkayBtn.MouseEnter:Connect(function()
  308. TweenService:Create(
  309. OkayBtn,
  310. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  311. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  312. ):Play()
  313. end)
  314.  
  315. OkayBtn.MouseLeave:Connect(function()
  316. TweenService:Create(
  317. OkayBtn,
  318. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  319. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  320. ):Play()
  321. end)
  322.  
  323. OkayBtn.MouseButton1Click:Connect(function()
  324. NotificationFrame:TweenSize(UDim2.new(0, 0,0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  325.  
  326. wait(0.4)
  327.  
  328. TweenService:Create(
  329. NotificationHold,
  330. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  331. {BackgroundTransparency = 1}
  332. ):Play()
  333.  
  334. wait(.3)
  335.  
  336. NotificationHold:Destroy()
  337. end)
  338. end
  339.  
  340. coroutine.wrap(
  341. function()
  342. while wait() do
  343. end
  344. end
  345. )()
  346. local Tabs = {}
  347. function Tabs:Tab(text)
  348. local Tab = Instance.new("TextButton")
  349. local TabCorner = Instance.new("UICorner")
  350. local Title = Instance.new("TextLabel")
  351. local UIGradient = Instance.new('UIGradient')
  352. Tab.Name = "Tab"
  353. Tab.Parent = TabHolder
  354. Tab.BackgroundColor3 = Color3.fromRGB(255,255,255)
  355. Tab.Size = UDim2.new(0, 170, 0, 35)
  356. Tab.AutoButtonColor = false
  357. Tab.Font = Enum.Font.SourceSans
  358. Tab.Text = ""
  359. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  360. Tab.TextSize = 15.000
  361. Tab.BackgroundTransparency = 1
  362.  
  363. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(121,9,112
  364. )), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(27,50,255))}
  365. UIGradient.Parent = Tab
  366.  
  367.  
  368. TabCorner.CornerRadius = UDim.new(0, 3)
  369. TabCorner.Name = "TabCorner"
  370. TabCorner.Parent = Tab
  371.  
  372. Title.Name = "Title"
  373. Title.Parent = Tab
  374. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  375. Title.BackgroundTransparency = 1.000
  376. Title.Position = UDim2.new(0.0566037744, 0, 0.1, 0)
  377. Title.Size = UDim2.new(0, 150, 0, 29)
  378. Title.Font = Enum.Font.Gotham
  379. Title.Text = text
  380. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  381. Title.TextSize = 17.000
  382. Title.TextXAlignment = Enum.TextXAlignment.Left
  383.  
  384. local Container = Instance.new("ScrollingFrame")
  385. local ContainerLayout = Instance.new("UIListLayout")
  386.  
  387. Container.Name = "Container"
  388. Container.Parent = ContainerHold
  389. Container.Active = true
  390. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  391. Container.BackgroundTransparency = 1.000
  392. Container.BorderSizePixel = 0
  393. Container.Position = UDim2.new(0.34, 0, 0.0506329127, 0)
  394. Container.Size = UDim2.new(0, 420, 0, 450)
  395. Container.ScrollBarThickness = 5
  396. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  397. Container.Visible = false
  398. Container.ScrollBarImageColor3 = Color3.fromRGB(100, 100, 100)
  399.  
  400. ContainerLayout.Name = "ContainerLayout"
  401. ContainerLayout.Parent = Container
  402. ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder
  403. ContainerLayout.Padding = UDim.new(0, 15)
  404.  
  405. if FirstTab == false then
  406. FirstTab = true
  407. Tab.BackgroundTransparency = 0
  408. Container.Visible = true
  409. end
  410. Tab.MouseButton1Click:Connect(
  411. function()
  412. for i, v in next, ContainerHold:GetChildren() do
  413. if v.Name == "Container" then
  414. v.Visible = false
  415. end
  416. end
  417.  
  418. for i, v in next, TabHolder:GetChildren() do
  419. if v.ClassName == "TextButton" then
  420. TweenService:Create(
  421. v,
  422. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  423. {BackgroundTransparency = 1}
  424. ):Play()
  425. TweenService:Create(
  426. Tab,
  427. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  428. {BackgroundTransparency = 0}
  429. ):Play()
  430. end
  431. end
  432. Container.Visible = true
  433. end
  434. )
  435. local ContainerItems = {}
  436. function ContainerItems:Button(text, callback)
  437. local Button = Instance.new("TextButton")
  438. local ButtonCorner = Instance.new("UICorner")
  439.  
  440. Button.Name = "Button"
  441. Button.Parent = Container
  442. Button.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  443. Button.Size = UDim2.new(0, 405, 0, 40)
  444. Button.AutoButtonColor = false
  445. Button.Font = Enum.Font.Gotham
  446. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  447. Button.TextSize = 15.000
  448. Button.Text = text
  449.  
  450. ButtonCorner.CornerRadius = UDim.new(0, 5)
  451. ButtonCorner.Name = "ButtonCorner"
  452. ButtonCorner.Parent = Button
  453.  
  454. Button.MouseEnter:Connect(
  455. function()
  456. TweenService:Create(
  457. Button,
  458. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  459. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  460. ):Play()
  461. end
  462. )
  463. Button.MouseLeave:Connect(
  464. function()
  465. TweenService:Create(
  466. Button,
  467. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  468. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  469. ):Play()
  470. end
  471. )
  472.  
  473. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  474.  
  475. Button.MouseButton1Click:Connect(
  476. function()
  477. pcall(callback)
  478. Button.TextSize = 0
  479. TweenService:Create(Button, TweenInfo.new(.2, Enum.EasingStyle.Quad), {TextSize = 17}):Play()
  480. wait(.2)
  481. TweenService:Create(Button, TweenInfo.new(.2, Enum.EasingStyle.Quad), {TextSize = 14}):Play()
  482. end
  483. )
  484. end
  485. function ContainerItems:Toggle(text,Default,callback)
  486. local Toggled = Default or false
  487. local ValueToggle = ValueTogglea or false
  488. local Toggle = Instance.new("TextButton")
  489. local ToggleCorner = Instance.new("UICorner")
  490. local Title = Instance.new("TextLabel")
  491. local ToggleFrame = Instance.new("Frame")
  492. local ToggleFrameCorner = Instance.new("UICorner")
  493. local ToggleFrameRainbow = Instance.new("Frame")
  494. local ToggleFrameRainbowCorner = Instance.new("UICorner")
  495. local ToggleDot = Instance.new("Frame")
  496. local ToggleDotCorner = Instance.new("UICorner")
  497. local UIGradient_2 = Instance.new('UIGradient')
  498. Toggle.Name = "Toggle"
  499. Toggle.Parent = Container
  500. Toggle.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  501. Toggle.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  502. Toggle.Size = UDim2.new(0, 405, 0, 40)
  503. Toggle.AutoButtonColor = false
  504. Toggle.Font = Enum.Font.Gotham
  505. Toggle.Text = ""
  506. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  507. Toggle.TextSize = 14.000
  508.  
  509. ToggleCorner.CornerRadius = UDim.new(0, 5)
  510. ToggleCorner.Name = "ToggleCorner"
  511. ToggleCorner.Parent = Toggle
  512.  
  513. Title.Name = "Title"
  514. Title.Parent = Toggle
  515. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  516. Title.BackgroundTransparency = 1.000
  517. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  518. Title.Size = UDim2.new(0, 430, 0, 40)
  519. Title.Font = Enum.Font.Gotham
  520. Title.Text = text
  521. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  522. Title.TextSize = 15.000
  523. Title.TextXAlignment = Enum.TextXAlignment.Left
  524.  
  525. ToggleFrame.Name = "ToggleFrame"
  526. ToggleFrame.Parent = Toggle
  527. ToggleFrame.BackgroundColor3 = Color3.fromRGB(22, 23, 27)
  528. ToggleFrame.Position = UDim2.new(0.88, 0, 0.21, 0)
  529. ToggleFrame.Size = UDim2.new(0, 40, 0, 22)
  530.  
  531. ToggleFrameCorner.CornerRadius = UDim.new(1, 0)
  532. ToggleFrameCorner.Name = "ToggleFrameCorner"
  533. ToggleFrameCorner.Parent = ToggleFrame
  534.  
  535. ToggleFrameRainbow.Name = "ToggleFrameRainbow"
  536. ToggleFrameRainbow.Parent = ToggleFrame
  537. ToggleFrameRainbow.BackgroundColor3 = Color3.fromRGB(27,27,27)
  538. ToggleFrameRainbow.BackgroundTransparency = 1.000
  539. ToggleFrameRainbow.Position = UDim2.new(-0.0198377371, 0, 0.00601506233, 0)
  540. ToggleFrameRainbow.Size = UDim2.new(0, 40, 0, 22)
  541.  
  542. ToggleFrameRainbowCorner.CornerRadius = UDim.new(1, 0)
  543. ToggleFrameRainbowCorner.Name = "ToggleFrameRainbowCorner"
  544. ToggleFrameRainbowCorner.Parent = ToggleFrameRainbow
  545.  
  546. ToggleDot.Name = "ToggleDot"
  547. ToggleDot.Parent = ToggleFrameRainbow
  548. ToggleDot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  549. ToggleDot.Position = UDim2.new(0.104999997, -3, 0.289000005, -4)
  550. ToggleDot.Size = UDim2.new(0, 16, 0, 16)
  551.  
  552. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  553. UIGradient_2.Parent = ToggleDot
  554.  
  555. ToggleDotCorner.CornerRadius = UDim.new(1, 0)
  556. ToggleDotCorner.Name = "ToggleDotCorner"
  557. ToggleDotCorner.Parent = ToggleDot
  558.  
  559. Toggle.MouseEnter:Connect(
  560. function()
  561. TweenService:Create(
  562. Toggle,
  563. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  564. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  565. ):Play()
  566.  
  567. end
  568. )
  569. Toggle.MouseLeave:Connect(
  570. function()
  571. TweenService:Create(
  572. Toggle,
  573. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  574. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  575. ):Play()
  576. end
  577. )
  578.  
  579. if Toggled == true then
  580. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  581.  
  582. TweenService:Create(
  583. ToggleFrameRainbow,
  584. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  585. {BackgroundTransparency = 0}
  586. ):Play()
  587. TweenService:Create(
  588. ToggleDot,
  589. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  590. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  591. ):Play()
  592. pcall(callback, Toggled)
  593. else
  594. ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(46, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(228, 92, 255))}
  595.  
  596. TweenService:Create(
  597. ToggleFrameRainbow,
  598. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  599. {BackgroundTransparency = 1}
  600. ):Play()
  601. TweenService:Create(
  602. ToggleDot,
  603. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  604. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  605. ):Play()
  606. end
  607.  
  608. Toggle.MouseButton1Click:Connect(
  609. function()
  610. if Toggled == false then
  611. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  612.  
  613. TweenService:Create(
  614. ToggleFrameRainbow,
  615. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  616. {BackgroundTransparency = 0}
  617. ):Play()
  618. TweenService:Create(
  619. ToggleDot,
  620. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  621. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  622. ):Play()
  623. else
  624. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  625.  
  626. TweenService:Create(
  627. ToggleFrameRainbow,
  628. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  629. {BackgroundTransparency = 1}
  630. ):Play()
  631. TweenService:Create(
  632. ToggleDot,
  633. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  634. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  635. ):Play()
  636. end
  637. Toggled = not Toggled
  638. pcall(callback, Toggled)
  639. end
  640. )
  641.  
  642. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  643. end
  644. function ContainerItems:Slider(text, min, max, start, callback)
  645. local dragging = false
  646. local Slider = Instance.new("TextButton")
  647. local Title = Instance.new("TextLabel")
  648. local SliderFrame = Instance.new("Frame")
  649. local SliderFrameCorner = Instance.new("UICorner")
  650. local SliderIndicator = Instance.new("Frame")
  651. local SliderIndicatorCorner = Instance.new("UICorner")
  652. local SliderCorner = Instance.new("UICorner")
  653. local Value = Instance.new("TextLabel")
  654. local UIGradient_3 = Instance.new('UIGradient')
  655.  
  656. Slider.Name = "Slider"
  657. Slider.Parent = Container
  658. Slider.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  659. Slider.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  660. Slider.Size = UDim2.new(0, 405, 0, 49)
  661. Slider.AutoButtonColor = false
  662. Slider.Font = Enum.Font.Gotham
  663. Slider.Text = ""
  664. Slider.TextColor3 = Color3.fromRGB(255, 255, 255)
  665. Slider.TextSize = 14.000
  666.  
  667. Title.Name = "Title"
  668. Title.Parent = Slider
  669. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  670. Title.BackgroundTransparency = 1.000
  671. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  672. Title.Size = UDim2.new(0, 192, 0, 28)
  673. Title.Font = Enum.Font.Gotham
  674. Title.Text = text
  675. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  676. Title.TextSize = 14.000
  677. Title.TextXAlignment = Enum.TextXAlignment.Left
  678.  
  679. SliderFrame.Name = "SliderFrame"
  680. SliderFrame.Parent = Slider
  681. SliderFrame.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  682. SliderFrame.Position = UDim2.new(0.0223324299, 0, 0.563266039, 0)
  683. SliderFrame.Size = UDim2.new(0, 384, 0, 11)
  684.  
  685. SliderFrameCorner.Name = "SliderFrameCorner"
  686. SliderFrameCorner.Parent = SliderFrame
  687.  
  688. SliderIndicator.Name = "SliderIndicator"
  689. SliderIndicator.Parent = SliderFrame
  690. SliderIndicator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  691. SliderIndicator.BorderSizePixel = 0
  692. SliderIndicator.Position = UDim2.new(-0.00260408712, 0, 0.0363603085, 0)
  693. SliderIndicator.Size = UDim2.new((start or 0) / max, 0, 0, 11)
  694.  
  695. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  696. UIGradient_3.Parent = SliderIndicator
  697.  
  698. SliderIndicatorCorner.Name = "SliderIndicatorCorner"
  699. SliderIndicatorCorner.Parent = SliderIndicator
  700.  
  701. SliderCorner.CornerRadius = UDim.new(0, 6)
  702. SliderCorner.Name = "SliderCorner"
  703. SliderCorner.Parent = Slider
  704.  
  705. Value.Name = "Value"
  706. Value.Parent = Slider
  707. Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  708. Value.BackgroundTransparency = 1.000
  709. Value.Position = UDim2.new(0.496277869, 0, 0, 0)
  710. Value.Size = UDim2.new(0, 192, 0, 28)
  711. Value.Font = Enum.Font.Gotham
  712. Value.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  713. Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  714. Value.TextSize = 14.000
  715. Value.TextXAlignment = Enum.TextXAlignment.Right
  716.  
  717. local function slide(input)
  718. local pos =
  719. UDim2.new(
  720. math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1),
  721. 0,
  722. 0,
  723. 11
  724. )
  725. SliderIndicator:TweenSize(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.3, true)
  726. local val = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  727. Value.Text = tostring(val)
  728. pcall(callback, val)
  729. end
  730.  
  731. SliderFrame.InputBegan:Connect(
  732. function(input)
  733. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  734. slide(input)
  735. dragging = true
  736. end
  737. end
  738. )
  739.  
  740. SliderFrame.InputEnded:Connect(
  741. function(input)
  742. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  743. dragging = false
  744. end
  745. end
  746. )
  747.  
  748. UserInputService.InputChanged:Connect(
  749. function(input)
  750. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  751. slide(input)
  752. end
  753. end
  754. )
  755.  
  756. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  757.  
  758. end
  759. function ContainerItems:Dropdown(text, list, callback)
  760. local dropfunc = {}
  761. local DropToggled = false
  762. local FrameSize = 0
  763. local ItemCount = 0
  764.  
  765. local Dropdown = Instance.new("TextButton")
  766. local Title = Instance.new("TextLabel")
  767. local DropdownCorner = Instance.new("UICorner")
  768. local Arrow = Instance.new("ImageLabel")
  769.  
  770. Dropdown.Name = "Dropdown"
  771. Dropdown.Parent = Container
  772. Dropdown.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  773. Dropdown.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  774. Dropdown.Size = UDim2.new(0, 405, 0, 45)
  775. Dropdown.AutoButtonColor = false
  776. Dropdown.Font = Enum.Font.Gotham
  777. Dropdown.Text = ""
  778. Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  779. Dropdown.TextSize = 15.000
  780.  
  781. Title.Name = "Title"
  782. Title.Parent = Dropdown
  783. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  784. Title.BackgroundTransparency = 1.000
  785. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  786. Title.Size = UDim2.new(0, 192, 0, 40)
  787. Title.Font = Enum.Font.Gotham
  788. Title.Text = text
  789. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  790. Title.TextSize = 15.000
  791. Title.TextXAlignment = Enum.TextXAlignment.Left
  792.  
  793. DropdownCorner.CornerRadius = UDim.new(0, 6)
  794. DropdownCorner.Name = "DropdownCorner"
  795. DropdownCorner.Parent = Dropdown
  796.  
  797. Arrow.Name = "Arrow"
  798. Arrow.Parent = Dropdown
  799. Arrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  800. Arrow.BackgroundTransparency = 1.000
  801. Arrow.Position = UDim2.new(0.9, 0, 0.2, 0)
  802. Arrow.Size = UDim2.new(0, 27, 0, 27)
  803. Arrow.Image = "http://www.roblox.com/asset/?id=6034818372"
  804.  
  805. local DropdownFrame = Instance.new("Frame")
  806. local DropdownFrameCorner = Instance.new("UICorner")
  807. local DropdownHolder = Instance.new("ScrollingFrame")
  808. local DropdownItemLayout = Instance.new("UIListLayout")
  809. local DropdownItemHolder = Instance.new("UIPadding")
  810.  
  811. DropdownFrame.Name = "DropdownFrame"
  812. DropdownFrame.Parent = Container
  813. DropdownFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  814. DropdownFrame.BorderSizePixel = 0
  815. DropdownFrame.Position = UDim2.new(0.334374994, 0, 0.604166687, 0)
  816. DropdownFrame.Size = UDim2.new(0, 403, 0, 0)
  817. DropdownFrame.Visible = false
  818.  
  819. DropdownFrameCorner.Name = "DropdownFrameCorner"
  820. DropdownFrameCorner.Parent = DropdownFrame
  821.  
  822. DropdownHolder.Name = "DropdownHolder"
  823. DropdownHolder.Parent = DropdownFrame
  824. DropdownHolder.Active = true
  825. DropdownHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  826. DropdownHolder.BackgroundTransparency = 1.000
  827. DropdownHolder.BorderSizePixel = 0
  828. DropdownHolder.Position = UDim2.new(0.0263156947, 0, 0.00326599111, 0)
  829. DropdownHolder.Size = UDim2.new(0, 386, 0, 0)
  830. DropdownHolder.ScrollBarThickness = 3
  831. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  832. DropdownHolder.ScrollBarImageColor3 = Color3.fromRGB(48, 48, 48)
  833.  
  834. DropdownItemLayout.Name = "DropdownItemLayout"
  835. DropdownItemLayout.Parent = DropdownHolder
  836. DropdownItemLayout.SortOrder = Enum.SortOrder.LayoutOrder
  837. DropdownItemLayout.Padding = UDim.new(0, 5)
  838.  
  839. DropdownItemHolder.Name = "DropdownItemHolder"
  840. DropdownItemHolder.Parent = DropdownHolder
  841. DropdownItemHolder.PaddingBottom = UDim.new(0, 5)
  842. DropdownItemHolder.PaddingTop = UDim.new(0, 5)
  843.  
  844. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  845.  
  846. Dropdown.MouseEnter:Connect(
  847. function()
  848. TweenService:Create(
  849. Dropdown,
  850. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  851. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  852. ):Play()
  853. end
  854. )
  855. Dropdown.MouseLeave:Connect(
  856. function()
  857. TweenService:Create(
  858. Dropdown,
  859. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  860. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  861. ):Play()
  862. end
  863. )
  864.  
  865. Dropdown.MouseButton1Click:Connect(
  866. function()
  867. if DropToggled == false then
  868. DropdownFrame.Visible = true
  869. DropdownFrame:TweenSize(
  870. UDim2.new(0, 403, 0, FrameSize),
  871. Enum.EasingDirection.Out,
  872. Enum.EasingStyle.Quart,
  873. 0.1,
  874. true
  875. )
  876. DropdownHolder:TweenSize(
  877. UDim2.new(0, 386, 0, FrameSize),
  878. Enum.EasingDirection.Out,
  879. Enum.EasingStyle.Quart,
  880. 0.1,
  881. true
  882. )
  883. TweenService:Create(
  884. Arrow,
  885. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  886. {Rotation = 180}
  887. ):Play()
  888. repeat
  889. wait()
  890. until DropdownFrame.Size == UDim2.new(0, 403, 0, FrameSize)
  891. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  892. else
  893. DropdownFrame:TweenSize(
  894. UDim2.new(0, 403, 0, 0),
  895. Enum.EasingDirection.Out,
  896. Enum.EasingStyle.Quart,
  897. 0.1,
  898. true
  899. )
  900. DropdownHolder:TweenSize(
  901. UDim2.new(0, 386, 0, 0),
  902. Enum.EasingDirection.Out,
  903. Enum.EasingStyle.Quart,
  904. 0.1,
  905. true
  906. )
  907. TweenService:Create(
  908. Arrow,
  909. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  910. {Rotation = 0}
  911. ):Play()
  912. repeat
  913. wait()
  914. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  915. DropdownFrame.Visible = false
  916. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  917. end
  918. DropToggled = not DropToggled
  919. end
  920. )
  921.  
  922. for i, v in next, list do
  923. ItemCount = ItemCount + 1
  924.  
  925. if ItemCount == 1 then
  926. FrameSize = 39
  927. elseif ItemCount == 2 then
  928. FrameSize = 69
  929. elseif ItemCount >= 3 then
  930. FrameSize = 100
  931. end
  932.  
  933. local Item = Instance.new("TextButton")
  934. local ItemCorner = Instance.new("UICorner")
  935.  
  936. Item.Name = "Item"
  937. Item.Parent = DropdownHolder
  938. Item.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  939. Item.Position = UDim2.new(0, 0, 0.0808080807, 0)
  940. Item.Size = UDim2.new(0, 405, 0, 24)
  941. Item.AutoButtonColor = false
  942. Item.Font = Enum.Font.Gotham
  943. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  944. Item.TextSize = 14.000
  945. Item.Text = v
  946.  
  947. ItemCorner.Name = "ItemCorner"
  948. ItemCorner.Parent = Item
  949.  
  950. Item.MouseEnter:Connect(
  951. function()
  952. TweenService:Create(
  953. Item,
  954. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  955. {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  956. ):Play()
  957. end
  958. )
  959. Item.MouseLeave:Connect(
  960. function()
  961. TweenService:Create(
  962. Item,
  963. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  964. {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}
  965. ):Play()
  966. end
  967. )
  968.  
  969. Item.MouseButton1Click:Connect(
  970. function()
  971. Title.Text = text .. " - " .. v
  972. pcall(callback, v)
  973. DropToggled = false
  974. DropdownFrame:TweenSize(
  975. UDim2.new(0, 403, 0, 0),
  976. Enum.EasingDirection.Out,
  977. Enum.EasingStyle.Quart,
  978. 0.1,
  979. true
  980. )
  981. DropdownHolder:TweenSize(
  982. UDim2.new(0, 386, 0, 0),
  983. Enum.EasingDirection.Out,
  984. Enum.EasingStyle.Quart,
  985. 0.1,
  986. true
  987. )
  988. TweenService:Create(
  989. Arrow,
  990. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  991. {Rotation = 0}
  992. ):Play()
  993. repeat
  994. wait()
  995. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  996. DropdownFrame.Visible = false
  997. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  998. end
  999. )
  1000.  
  1001. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, DropdownItemLayout.AbsoluteContentSize.Y + 15)
  1002. end
  1003.  
  1004. function dropfunc:Clear()
  1005. Title.Text = text
  1006. FrameSize = 0
  1007. ItemCount = 0
  1008.  
  1009. for i,v in next, DropdownHolder:GetChildren() do
  1010. if v.Name == "Item" then
  1011. v:Destroy()
  1012. end
  1013. end
  1014.  
  1015. DropdownFrame:TweenSize(
  1016. UDim2.new(0, 403, 0, 0),
  1017. Enum.EasingDirection.Out,
  1018. Enum.EasingStyle.Quart,
  1019. 0.1,
  1020. true
  1021. )
  1022. DropdownHolder:TweenSize(
  1023. UDim2.new(0, 386, 0, 0),
  1024. Enum.EasingDirection.Out,
  1025. Enum.EasingStyle.Quart,
  1026. 0.1,
  1027. true
  1028. )
  1029. TweenService:Create(
  1030. Arrow,
  1031. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1032. {Rotation = 0}
  1033. ):Play()
  1034. repeat
  1035. wait()
  1036. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  1037. DropdownFrame.Visible = false
  1038. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1039. end
  1040.  
  1041. function dropfunc:Add(toadd)
  1042. ItemCount = ItemCount + 1
  1043.  
  1044. if ItemCount == 1 then
  1045. FrameSize = 39
  1046. elseif ItemCount == 2 then
  1047. FrameSize = 69
  1048. elseif ItemCount >= 3 then
  1049. FrameSize = 100
  1050. end
  1051.  
  1052. local Item = Instance.new("TextButton")
  1053. local ItemCorner = Instance.new("UICorner")
  1054.  
  1055. Item.Name = "Item"
  1056. Item.Parent = DropdownHolder
  1057. Item.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1058. Item.Position = UDim2.new(0, 0, 0.0808080807, 0)
  1059. Item.Size = UDim2.new(0, 405, 0, 24)
  1060. Item.AutoButtonColor = false
  1061. Item.Font = Enum.Font.Gotham
  1062. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1063. Item.TextSize = 14.000
  1064. Item.Text = toadd
  1065.  
  1066. ItemCorner.Name = "ItemCorner"
  1067. ItemCorner.Parent = Item
  1068.  
  1069. Item.MouseEnter:Connect(
  1070. function()
  1071. TweenService:Create(
  1072. Item,
  1073. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1074. {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  1075. ):Play()
  1076. end
  1077. )
  1078. Item.MouseLeave:Connect(
  1079. function()
  1080. TweenService:Create(
  1081. Item,
  1082. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1083. {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}
  1084. ):Play()
  1085. end
  1086. )
  1087.  
  1088. Item.MouseButton1Click:Connect(
  1089. function()
  1090. Title.Text = text .. " - " .. toadd
  1091. pcall(callback, toadd)
  1092. DropToggled = false
  1093. DropdownFrame:TweenSize(
  1094. UDim2.new(0, 403, 0, 0),
  1095. Enum.EasingDirection.Out,
  1096. Enum.EasingStyle.Quart,
  1097. 0.1,
  1098. true
  1099. )
  1100. DropdownHolder:TweenSize(
  1101. UDim2.new(0, 386, 0, 0),
  1102. Enum.EasingDirection.Out,
  1103. Enum.EasingStyle.Quart,
  1104. 0.1,
  1105. true
  1106. )
  1107. TweenService:Create(
  1108. Arrow,
  1109. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1110. {Rotation = 0}
  1111. ):Play()
  1112. repeat
  1113. wait()
  1114. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  1115. DropdownFrame.Visible = false
  1116. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1117. end
  1118. )
  1119.  
  1120. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, DropdownItemLayout.AbsoluteContentSize.Y + 15)
  1121. end
  1122.  
  1123. return dropfunc
  1124. end
  1125. function ContainerItems:Colorpicker(text, preset, callback)
  1126. local ColorPickerToggled = false
  1127. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  1128. local OldColor = Color3.fromRGB(0, 0, 0)
  1129. local OldColorSelectionPosition = nil
  1130. local OldHueSelectionPosition = nil
  1131. local ColorH, ColorS, ColorV = 1, 1, 1
  1132. local RainbowColorPicker = false
  1133. local ColorPickerInput = nil
  1134. local ColorInput = nil
  1135. local HueInput = nil
  1136.  
  1137. local Colorpicker = Instance.new("TextButton")
  1138. local Title = Instance.new("TextLabel")
  1139. local BoxColor = Instance.new("Frame")
  1140. local BoxcolorCorner = Instance.new("UICorner")
  1141. local ColorpickerCorner = Instance.new("UICorner")
  1142.  
  1143. Colorpicker.Name = "Colorpicker"
  1144. Colorpicker.Parent = Container
  1145. Colorpicker.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1146. Colorpicker.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1147. Colorpicker.Size = UDim2.new(0, 405, 0, 40)
  1148. Colorpicker.AutoButtonColor = false
  1149. Colorpicker.Font = Enum.Font.Gotham
  1150. Colorpicker.Text = ""
  1151. Colorpicker.TextColor3 = Color3.fromRGB(255, 255, 255)
  1152. Colorpicker.TextSize = 14.000
  1153.  
  1154. Title.Name = "Title"
  1155. Title.Parent = Colorpicker
  1156. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1157. Title.BackgroundTransparency = 1.000
  1158. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1159. Title.Size = UDim2.new(0, 405, 0, 40)
  1160. Title.Font = Enum.Font.Gotham
  1161. Title.Text = text
  1162. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1163. Title.TextSize = 15.000
  1164. Title.TextXAlignment = Enum.TextXAlignment.Left
  1165.  
  1166. BoxColor.Name = "Boxcolor"
  1167. BoxColor.Parent = Colorpicker
  1168. BoxColor.BackgroundColor3 = preset
  1169. BoxColor.Position = UDim2.new(0.88, 0, 0.3, 0)
  1170. BoxColor.Size = UDim2.new(0, 36, 0, 19)
  1171.  
  1172. BoxcolorCorner.CornerRadius = UDim.new(0, 6)
  1173. BoxcolorCorner.Name = "BoxcolorCorner"
  1174. BoxcolorCorner.Parent = BoxColor
  1175.  
  1176. ColorpickerCorner.CornerRadius = UDim.new(0, 4)
  1177. ColorpickerCorner.Name = "ColorpickerCorner"
  1178. ColorpickerCorner.Parent = Colorpicker
  1179.  
  1180. local ColorpickerFrame = Instance.new("Frame")
  1181. local DropdownFrameCorner = Instance.new("UICorner")
  1182. local Hue = Instance.new("ImageLabel")
  1183. local HueCorner = Instance.new("UICorner")
  1184. local HueGradient = Instance.new("UIGradient")
  1185. local HueSelection = Instance.new("ImageLabel")
  1186. local Color = Instance.new("ImageLabel")
  1187. local ColorCorner = Instance.new("UICorner")
  1188. local ColorSelection = Instance.new("ImageLabel")
  1189. local Confirm = Instance.new("TextButton")
  1190. local ButtonCorner = Instance.new("UICorner")
  1191. local RainbowToggle = Instance.new("TextButton")
  1192. local RainbowToggleCorner = Instance.new("UICorner")
  1193. local RainbowTitle = Instance.new("TextLabel")
  1194. local RainbowToggleFrame = Instance.new("Frame")
  1195. local RainbowToggleFrameCorner = Instance.new("UICorner")
  1196. local RainbowToggleFrameRainbow = Instance.new("Frame")
  1197. local RainbowToggleFrameRainbowCorner = Instance.new("UICorner")
  1198. local RainbowToggleDot = Instance.new("Frame")
  1199. local RainbowToggleDotCorner = Instance.new("UICorner")
  1200.  
  1201. ColorpickerFrame.Name = "ColorpickerFrame"
  1202. ColorpickerFrame.Parent = Container
  1203. ColorpickerFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1204. ColorpickerFrame.BorderSizePixel = 0
  1205. ColorpickerFrame.Position = UDim2.new(0.165624991, 0, 0.671052635, 0)
  1206. ColorpickerFrame.Size = UDim2.new(0, 403, 0, 0)
  1207. ColorpickerFrame.Visible = false
  1208. ColorpickerFrame.ClipsDescendants = true
  1209.  
  1210. DropdownFrameCorner.Name = "DropdownFrameCorner"
  1211. DropdownFrameCorner.Parent = ColorpickerFrame
  1212.  
  1213. Hue.Name = "Hue"
  1214. Hue.Parent = ColorpickerFrame
  1215. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1216. Hue.Position = UDim2.new(0, 209, 0, 9)
  1217. Hue.Size = UDim2.new(0, 25, 0, 80)
  1218.  
  1219. HueCorner.CornerRadius = UDim.new(0, 3)
  1220. HueCorner.Name = "HueCorner"
  1221. HueCorner.Parent = Hue
  1222.  
  1223. HueGradient.Color =
  1224. ColorSequence.new {
  1225. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1226. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1227. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1228. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1229. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1230. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1231. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1232. }
  1233. HueGradient.Rotation = 270
  1234. HueGradient.Name = "HueGradient"
  1235. HueGradient.Parent = Hue
  1236.  
  1237. HueSelection.Name = "HueSelection"
  1238. HueSelection.Parent = Hue
  1239. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1240. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1241. HueSelection.BackgroundTransparency = 1.000
  1242. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1243. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1244. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1245.  
  1246. Color.Name = "Color"
  1247. Color.Parent = ColorpickerFrame
  1248. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1249. Color.Position = UDim2.new(0, 9, 0, 9)
  1250. Color.Size = UDim2.new(0, 194, 0, 80)
  1251. Color.ZIndex = 10
  1252. Color.Image = "rbxassetid://4155801252"
  1253.  
  1254. ColorCorner.CornerRadius = UDim.new(0, 3)
  1255. ColorCorner.Name = "ColorCorner"
  1256. ColorCorner.Parent = Color
  1257.  
  1258. ColorSelection.Name = "ColorSelection"
  1259. ColorSelection.Parent = Color
  1260. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1261. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1262. ColorSelection.BackgroundTransparency = 1.000
  1263. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1264. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1265. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1266. ColorSelection.ScaleType = Enum.ScaleType.Fit
  1267.  
  1268. Confirm.Name = "Confirm"
  1269. Confirm.Parent = ColorpickerFrame
  1270. Confirm.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1271. Confirm.BackgroundTransparency = 0.010
  1272. Confirm.Position = UDim2.new(0.612244904, 0, 0.0900000036, 0)
  1273. Confirm.Size = UDim2.new(0, 145, 0, 27)
  1274. Confirm.AutoButtonColor = false
  1275. Confirm.Font = Enum.Font.Gotham
  1276. Confirm.Text = "Confirm"
  1277. Confirm.TextColor3 = Color3.fromRGB(255, 255, 255)
  1278. Confirm.TextSize = 14.000
  1279.  
  1280. ButtonCorner.Name = "ButtonCorner"
  1281. ButtonCorner.Parent = Confirm
  1282.  
  1283. RainbowToggle.Name = "RainbowToggle"
  1284. RainbowToggle.Parent = ColorpickerFrame
  1285. RainbowToggle.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1286. RainbowToggle.Position = UDim2.new(0.610732794, 0, 0.431324542, 0)
  1287. RainbowToggle.Size = UDim2.new(0, 145, 0, 27)
  1288. RainbowToggle.AutoButtonColor = false
  1289. RainbowToggle.Font = Enum.Font.Gotham
  1290. RainbowToggle.Text = ""
  1291. RainbowToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1292. RainbowToggle.TextSize = 14.000
  1293.  
  1294. RainbowToggleCorner.Name = "RainbowToggleCorner"
  1295. RainbowToggleCorner.Parent = RainbowToggle
  1296.  
  1297. RainbowTitle.Name = "RainbowTitle"
  1298. RainbowTitle.Parent = RainbowToggle
  1299. RainbowTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1300. RainbowTitle.BackgroundTransparency = 1.000
  1301. RainbowTitle.Position = UDim2.new(0.0204080511, 0, 0, 0)
  1302. RainbowTitle.Size = UDim2.new(0, 29, 0, 27)
  1303. RainbowTitle.Font = Enum.Font.Gotham
  1304. RainbowTitle.Text = "Rainbow"
  1305. RainbowTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1306. RainbowTitle.TextSize = 14.000
  1307. RainbowTitle.TextXAlignment = Enum.TextXAlignment.Left
  1308.  
  1309. RainbowToggleFrame.Name = "RainbowToggleFrame"
  1310. RainbowToggleFrame.Parent = RainbowToggle
  1311. RainbowToggleFrame.BackgroundColor3 = Color3.fromRGB(22, 23, 27)
  1312. RainbowToggleFrame.Position = UDim2.new(0.693, 0, 0.142857149, 0)
  1313. RainbowToggleFrame.Size = UDim2.new(0, 36, 0, 19)
  1314.  
  1315. RainbowToggleFrameCorner.CornerRadius = UDim.new(1, 0)
  1316. RainbowToggleFrameCorner.Name = "RainbowToggleFrameCorner"
  1317. RainbowToggleFrameCorner.Parent = RainbowToggleFrame
  1318.  
  1319. RainbowToggleFrameRainbow.Name = "RainbowToggleFrameRainbow"
  1320. RainbowToggleFrameRainbow.Parent = RainbowToggleFrame
  1321. RainbowToggleFrameRainbow.BackgroundColor3 = Color3.fromRGB(67,136,246)
  1322. RainbowToggleFrameRainbow.BackgroundTransparency = 1.000
  1323. RainbowToggleFrameRainbow.Position = UDim2.new(-0.0198377371, 0, 0.00601506233, 0)
  1324. RainbowToggleFrameRainbow.Size = UDim2.new(0, 36, 0, 19)
  1325.  
  1326. RainbowToggleFrameRainbowCorner.CornerRadius = UDim.new(1, 0)
  1327. RainbowToggleFrameRainbowCorner.Name = "RainbowToggleFrameRainbowCorner"
  1328. RainbowToggleFrameRainbowCorner.Parent = RainbowToggleFrameRainbow
  1329.  
  1330. RainbowToggleDot.Name = "RainbowToggleDot"
  1331. RainbowToggleDot.Parent = RainbowToggleFrameRainbow
  1332. RainbowToggleDot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1333. RainbowToggleDot.Position = UDim2.new(0.104999997, -3, 0.289000005, -4)
  1334. RainbowToggleDot.Size = UDim2.new(0, 16, 0, 16)
  1335.  
  1336. RainbowToggleDotCorner.CornerRadius = UDim.new(1, 0)
  1337. RainbowToggleDotCorner.Name = "RainbowToggleDotCorner"
  1338. RainbowToggleDotCorner.Parent = RainbowToggleDot
  1339.  
  1340. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1341.  
  1342. Colorpicker.MouseEnter:Connect(
  1343. function()
  1344. TweenService:Create(
  1345. Colorpicker,
  1346. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1347. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  1348. ):Play()
  1349. end
  1350. )
  1351. Colorpicker.MouseLeave:Connect(
  1352. function()
  1353. TweenService:Create(
  1354. Colorpicker,
  1355. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1356. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  1357. ):Play()
  1358. end
  1359. )
  1360.  
  1361. local function UpdateColorPicker(nope)
  1362. BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1363. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1364.  
  1365. pcall(callback, BoxColor.BackgroundColor3)
  1366. end
  1367.  
  1368. ColorH =
  1369. 1 -
  1370. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1371. Hue.AbsoluteSize.Y)
  1372. ColorS =
  1373. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1374. Color.AbsoluteSize.X)
  1375. ColorV =
  1376. 1 -
  1377. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1378. Color.AbsoluteSize.Y)
  1379.  
  1380. BoxColor.BackgroundColor3 = preset
  1381. Color.BackgroundColor3 = preset
  1382. pcall(callback, BoxColor.BackgroundColor3)
  1383.  
  1384. Color.InputBegan:Connect(
  1385. function(input)
  1386. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1387. if RainbowColorPicker then
  1388. return
  1389. end
  1390.  
  1391. if ColorInput then
  1392. ColorInput:Disconnect()
  1393. end
  1394.  
  1395. ColorInput =
  1396. RunService.RenderStepped:Connect(
  1397. function()
  1398. local ColorX =
  1399. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1400. Color.AbsoluteSize.X)
  1401. local ColorY =
  1402. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1403. Color.AbsoluteSize.Y)
  1404.  
  1405. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1406. ColorS = ColorX
  1407. ColorV = 1 - ColorY
  1408.  
  1409. UpdateColorPicker(true)
  1410. end
  1411. )
  1412. end
  1413. end
  1414. )
  1415.  
  1416. Color.InputEnded:Connect(
  1417. function(input)
  1418. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1419. if ColorInput then
  1420. ColorInput:Disconnect()
  1421. end
  1422. end
  1423. end
  1424. )
  1425.  
  1426. Hue.InputBegan:Connect(
  1427. function(input)
  1428. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1429. if RainbowColorPicker then
  1430. return
  1431. end
  1432.  
  1433. if HueInput then
  1434. HueInput:Disconnect()
  1435. end
  1436.  
  1437. HueInput =
  1438. RunService.RenderStepped:Connect(
  1439. function()
  1440. local HueY =
  1441. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1442. Hue.AbsoluteSize.Y)
  1443.  
  1444. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1445. ColorH = 1 - HueY
  1446.  
  1447. UpdateColorPicker(true)
  1448. end
  1449. )
  1450. end
  1451. end
  1452. )
  1453.  
  1454. Hue.InputEnded:Connect(
  1455. function(input)
  1456. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1457. if HueInput then
  1458. HueInput:Disconnect()
  1459. end
  1460. end
  1461. end
  1462. )
  1463.  
  1464. RainbowToggle.MouseButton1Down:Connect(
  1465. function()
  1466. RainbowColorPicker = not RainbowColorPicker
  1467.  
  1468. if ColorInput then
  1469. ColorInput:Disconnect()
  1470. end
  1471.  
  1472. if HueInput then
  1473. HueInput:Disconnect()
  1474. end
  1475.  
  1476. if RainbowColorPicker then
  1477. TweenService:Create(
  1478. RainbowToggleFrameRainbow,
  1479. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1480. {BackgroundTransparency = 0}
  1481. ):Play()
  1482. TweenService:Create(
  1483. RainbowToggleDot,
  1484. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1485. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  1486. ):Play()
  1487.  
  1488. OldToggleColor = BoxColor.BackgroundColor3
  1489. OldColor = Color.BackgroundColor3
  1490. OldColorSelectionPosition = ColorSelection.Position
  1491. OldHueSelectionPosition = HueSelection.Position
  1492.  
  1493. while RainbowColorPicker do
  1494. BoxColor.BackgroundColor3 = Color3.fromHSV(VLib.RainbowColorValue, 1, 1)
  1495. Color.BackgroundColor3 = Color3.fromHSV(VLib.RainbowColorValue, 1, 1)
  1496.  
  1497. ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1498. HueSelection.Position = UDim2.new(0.48, 0, 0, VLib.HueSelectionPosition)
  1499.  
  1500. pcall(callback, BoxColor.BackgroundColor3)
  1501. wait()
  1502. end
  1503. elseif not RainbowColorPicker then
  1504. TweenService:Create(
  1505. RainbowToggleFrameRainbow,
  1506. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1507. {BackgroundTransparency = 1}
  1508. ):Play()
  1509. TweenService:Create(
  1510. RainbowToggleDot,
  1511. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1512. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  1513. ):Play()
  1514.  
  1515. BoxColor.BackgroundColor3 = OldToggleColor
  1516. Color.BackgroundColor3 = OldColor
  1517.  
  1518. ColorSelection.Position = OldColorSelectionPosition
  1519. HueSelection.Position = OldHueSelectionPosition
  1520.  
  1521. pcall(callback, BoxColor.BackgroundColor3)
  1522. end
  1523. end
  1524. )
  1525.  
  1526. Colorpicker.MouseButton1Click:Connect(
  1527. function()
  1528. if ColorPickerToggled == false then
  1529. ColorPickerToggled = not ColorPickerToggled
  1530. ColorpickerFrame.Visible = true
  1531. ColorpickerFrame:TweenSize(
  1532. UDim2.new(0, 403, 0, 100),
  1533. Enum.EasingDirection.Out,
  1534. Enum.EasingStyle.Quart,
  1535. 0.1,
  1536. true
  1537. )
  1538. repeat
  1539. wait()
  1540. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 100)
  1541. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1542. else
  1543. ColorPickerToggled = not ColorPickerToggled
  1544. ColorpickerFrame:TweenSize(
  1545. UDim2.new(0, 403, 0, 0),
  1546. Enum.EasingDirection.Out,
  1547. Enum.EasingStyle.Quart,
  1548. 0.1,
  1549. true
  1550. )
  1551. repeat
  1552. wait()
  1553. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 0)
  1554. ColorpickerFrame.Visible = false
  1555. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1556. end
  1557. end
  1558. )
  1559.  
  1560. Confirm.MouseButton1Click:Connect(
  1561. function()
  1562. ColorPickerToggled = not ColorPickerToggled
  1563. ColorpickerFrame:TweenSize(
  1564. UDim2.new(0, 403, 0, 0),
  1565. Enum.EasingDirection.Out,
  1566. Enum.EasingStyle.Quart,
  1567. 0.1,
  1568. true
  1569. )
  1570. repeat
  1571. wait()
  1572. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 0)
  1573. ColorpickerFrame.Visible = false
  1574. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1575. end)
  1576.  
  1577. coroutine.wrap(
  1578. function()
  1579. while wait() do
  1580.  
  1581. end
  1582. end
  1583. )()
  1584. end
  1585. function ContainerItems:Label(text)
  1586. local labelfunc = {}
  1587. local Label = Instance.new("TextButton")
  1588. local LabelCorner = Instance.new("UICorner")
  1589.  
  1590. Label.Name = "Label"
  1591. Label.Parent = Container
  1592. Label.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1593. Label.Size = UDim2.new(0, 405, 0, 40)
  1594. Label.AutoButtonColor = false
  1595. Label.Font = Enum.Font.Gotham
  1596. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1597. Label.TextSize = 17.000
  1598. Label.Text = text
  1599.  
  1600. LabelCorner.CornerRadius = UDim.new(0, 5)
  1601. LabelCorner.Name = "LabelCorner"
  1602. LabelCorner.Parent = Label
  1603.  
  1604. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1605.  
  1606. function labelfunc:Refresh(tochange)
  1607. Label.Text = tochange
  1608. end
  1609.  
  1610. return labelfunc
  1611. end
  1612.  
  1613. function ContainerItems:line()
  1614. local labelfunc = {}
  1615. local Label = Instance.new("TextButton")
  1616. local LabelCorner = Instance.new("UICorner")
  1617.  
  1618. Label.Name = "Label"
  1619. Label.Parent = Container
  1620. Label.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1621. Label.Size = UDim2.new(0, 405, 0, 5)
  1622. Label.AutoButtonColor = false
  1623. Label.Font = Enum.Font.Gotham
  1624. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1625. Label.TextSize = 17.000
  1626. Label.Text = ""
  1627.  
  1628. LabelCorner.CornerRadius = UDim.new(0, 5)
  1629. LabelCorner.Name = "LabelCorner"
  1630. LabelCorner.Parent = Label
  1631.  
  1632. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1633.  
  1634. function labelfunc:Refresh(tochange)
  1635. Label.Text = tochange
  1636. end
  1637.  
  1638. return labelfunc
  1639. end
  1640.  
  1641. function ContainerItems:Bind(Title, keybind_options, callback)
  1642. local keybind_data = {}
  1643.  
  1644. local Keybind = Instance.new("TextButton")
  1645. local Title = Instance.new("TextLabel")
  1646. local KeybindFrame = Instance.new("Frame")
  1647. local KeybindFrameCorner = Instance.new("UICorner")
  1648. local TextButton = Instance.new("TextButton")
  1649. local KeybindCorner = Instance.new("UICorner")
  1650. local ContainerLayout = Instance.new("UIListLayout")
  1651.  
  1652.  
  1653. Keybind.Name = "Keybind"
  1654. Keybind.Parent = Container
  1655. Keybind.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1656. Keybind.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1657. Keybind.Size = UDim2.new(0, 405, 0, 40)
  1658. Keybind.AutoButtonColor = false
  1659. Keybind.Font = Enum.Font.Gotham
  1660. Keybind.Text = ""
  1661. Keybind.TextColor3 = Color3.fromRGB(255, 255, 255)
  1662. Keybind.TextSize = 14.000
  1663.  
  1664. Title.Name = "Title"
  1665. Title.Parent = Keybind
  1666. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1667. Title.BackgroundTransparency = 1.000
  1668. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1669. Title.Size = UDim2.new(0, 405, 0, 40)
  1670. Title.Font = Enum.Font.Gotham
  1671. Title.Text = "Keybind"
  1672. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1673. Title.TextSize = 15.000
  1674. Title.TextXAlignment = Enum.TextXAlignment.Left
  1675.  
  1676. KeybindFrame.Name = "KeybindFrame"
  1677. KeybindFrame.Parent = Keybind
  1678. KeybindFrame.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  1679. KeybindFrame.Position = UDim2.new(0.650124013, 0, 0.159999996, 0)
  1680. KeybindFrame.Size = UDim2.new(0, 134, 0, 24)
  1681.  
  1682. KeybindFrameCorner.CornerRadius = UDim.new(0, 6)
  1683. KeybindFrameCorner.Name = "KeybindFrameCorner"
  1684. KeybindFrameCorner.Parent = KeybindFrame
  1685.  
  1686. TextButton.Parent = KeybindFrame
  1687. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1688. TextButton.BackgroundTransparency = 1.000
  1689. TextButton.Size = UDim2.new(0, 134, 0, 23)
  1690. TextButton.Font = Enum.Font.Gotham
  1691. TextButton.Text = "Keybind"
  1692. TextButton.TextColor3 = Color3.fromRGB(178, 178, 178)
  1693. TextButton.TextSize = 15.000
  1694.  
  1695. KeybindCorner.CornerRadius = UDim.new(0, 6)
  1696. KeybindCorner.Name = "KeybindCorner"
  1697. KeybindCorner.Parent = Keybind
  1698.  
  1699. ContainerLayout.Name = "ContainerLayout"
  1700. ContainerLayout.Parent = Container
  1701. ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1702. ContainerLayout.Padding = UDim.new(0, 15)
  1703.  
  1704. local UIS = game:GetService('UserInputService')
  1705.  
  1706.  
  1707. keybind_name = tostring(keybind_name or "New Keybind")
  1708. callback = typeof(callback) == "function" and callback or function()end
  1709. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1710. keybind_options = {
  1711. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1712. }
  1713.  
  1714.  
  1715.  
  1716. callback = typeof(callback) == "function" and callback or function()end
  1717. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1718. keybind_options = {
  1719. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1720. }
  1721.  
  1722. local shortkeys = { -- thanks to stroketon for helping me out with this
  1723. RightControl = 'RightCtrl',
  1724. LeftControl = 'LeftCtrl',
  1725. LeftShift = 'LShift',
  1726. RightShift = 'RShift',
  1727. MouseButton1 = "Mouse1",
  1728. MouseButton2 = "Mouse2"
  1729. }
  1730. local checks = {
  1731. binding = false,
  1732.  
  1733. }
  1734. function keybind_data:SetKeybind(Keybind)
  1735. local key = shortkeys[Keybind.Name] or Keybind.Name
  1736. TextButton.Text = key
  1737. keybind = Keybind
  1738. end
  1739.  
  1740. UIS.InputBegan:Connect(function(a, b)
  1741. if checks.binding then
  1742. spawn(function()
  1743. wait()
  1744. checks.binding = false
  1745. end)
  1746. return
  1747. end
  1748. if a.KeyCode == keybind and not b then
  1749. pcall(callback, keybind)
  1750. end
  1751. end)
  1752.  
  1753. keybind_data:SetKeybind(keybind_options.standard)
  1754.  
  1755. TextButton.MouseButton1Click:Connect(function()
  1756. if checks.binding then return end
  1757. TextButton.Text = "..."
  1758. checks.binding = true
  1759. local a, b = UIS.InputBegan:Wait()
  1760. keybind_data:SetKeybind(a.KeyCode)
  1761. end)
  1762. return keybind_data
  1763. end
  1764.  
  1765.  
  1766. function ContainerItems:Textbox(text, disapper, callback)
  1767. local Textbox = Instance.new("TextButton")
  1768. local Title = Instance.new("TextLabel")
  1769. local TextboxFrame = Instance.new("Frame")
  1770. local TextboxFrameCorner = Instance.new("UICorner")
  1771. local TextBox = Instance.new("TextBox")
  1772. local TextboxCorner = Instance.new("UICorner")
  1773.  
  1774. Textbox.Name = "Textbox"
  1775. Textbox.Parent = Container
  1776. Textbox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1777. Textbox.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1778. Textbox.Size = UDim2.new(0, 405, 0, 40)
  1779. Textbox.AutoButtonColor = false
  1780. Textbox.Font = Enum.Font.Gotham
  1781. Textbox.Text = ""
  1782. Textbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1783. Textbox.TextSize = 14.000
  1784.  
  1785. Title.Name = "Title"
  1786. Title.Parent = Textbox
  1787. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1788. Title.BackgroundTransparency = 1.000
  1789. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1790. Title.Size = UDim2.new(0, 405, 0, 40)
  1791. Title.Font = Enum.Font.Gotham
  1792. Title.Text = text
  1793. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1794. Title.TextSize = 15.000
  1795. Title.TextXAlignment = Enum.TextXAlignment.Left
  1796.  
  1797. TextboxFrame.Name = "TextboxFrame"
  1798. TextboxFrame.Parent = Textbox
  1799. TextboxFrame.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  1800. TextboxFrame.Position = UDim2.new(0.650124013, 0, 0.16, 0)
  1801. TextboxFrame.Size = UDim2.new(0, 134, 0, 24)
  1802.  
  1803. TextboxFrameCorner.CornerRadius = UDim.new(0, 6)
  1804. TextboxFrameCorner.Name = "TextboxFrameCorner"
  1805. TextboxFrameCorner.Parent = TextboxFrame
  1806.  
  1807. TextBox.Parent = TextboxFrame
  1808. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1809. TextBox.BackgroundTransparency = 1.000
  1810. TextBox.Size = UDim2.new(0, 134, 0, 19)
  1811. TextBox.Font = Enum.Font.Gotham
  1812. TextBox.Text = ""
  1813. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1814. TextBox.TextSize = 15.000
  1815.  
  1816. TextboxCorner.CornerRadius = UDim.new(0, 6)
  1817. TextboxCorner.Name = "TextboxCorner"
  1818. TextboxCorner.Parent = Textbox
  1819.  
  1820. TextBox.FocusLost:Connect(
  1821. function(ep)
  1822. if ep then
  1823. if #TextBox.Text > 0 then
  1824. pcall(callback, TextBox.Text)
  1825. if disapper then
  1826. TextBox.Text = ""
  1827. end
  1828. end
  1829. end
  1830. end
  1831. )
  1832.  
  1833. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1834. end
  1835. return ContainerItems
  1836. end
  1837. return Tabs
  1838. end
  1839. -- oofhead should stop making jokes
  1840. local Win = VLib:Window("Bacon hub", "v1")
  1841. local Main = Win:Tab("Stuff")
  1842. local Main= Win:Tab('Main')
  1843.  
  1844.  
  1845. Main:Button("Ninja legends gui",function()
  1846. pcall(loadstring(game:HttpGet("https://pastebin.com/raw/2UjrXwTV")))
  1847.  
  1848.  
  1849. end)
  1850.  
  1851. Main:Button("Moon hub 1.2",function()
  1852. loadstring(game:HttpGet("https://pastebin.com/raw/Gae7YC84"))();
  1853.  
  1854.  
  1855. end)
  1856.  
  1857. Main:Button("Moon hub 1.3",function()
  1858. loadstring(game:HttpGet("https://pastebin.com/raw/LwQkm563"))();
  1859.  
  1860.  
  1861. end)
  1862. local Hubs= Win:Tab('Hubs')
  1863.  
  1864.  
  1865. Hubs:Button("Seek hub",function()
  1866. loadstring(game:HttpGet("https://pastebin.com/raw/U0Hzycrm"))()
  1867. end)
  1868.  
  1869. Hubs:Button("Kzs hub 1.5",function()
  1870. loadstring(game:HttpGet("https://raw.githubusercontent.com/KZSHUB/KZS-HUB/main/KZSHUBV1.5", true))()
  1871. end)
  1872. local Creator_ = Win:Tab('Creator ')
  1873.  
  1874. Creator_:Label("Channel:sheeshgamer1017")
  1875.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement