pizzaboy2

flux ui library but you can close the gui

Nov 12th, 2025 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.54 KB | None | 0 0
  1. local Flux = {RainbowColorValue = 0, HueSelectionPosition = 0}
  2. local PresetColor = Color3.fromRGB(66, 134, 255)
  3. local UserInputService = game:GetService("UserInputService")
  4. local TweenService = game:GetService("TweenService")
  5. local RunService = game:GetService("RunService")
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local Mouse = LocalPlayer:GetMouse()
  8. local CloseBind = Enum.KeyCode.RightControl
  9.  
  10. local FluxLib = Instance.new("ScreenGui")
  11. FluxLib.Name = "FluxLib"
  12. FluxLib.Parent = game.CoreGui
  13. FluxLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. coroutine.wrap(
  16. function()
  17. while wait() do
  18. Flux.RainbowColorValue = Flux.RainbowColorValue + 1 / 255
  19. Flux.HueSelectionPosition = Flux.HueSelectionPosition + 1
  20.  
  21. if Flux.RainbowColorValue >= 1 then
  22. Flux.RainbowColorValue = 0
  23. end
  24.  
  25. if Flux.HueSelectionPosition == 80 then
  26. Flux.HueSelectionPosition = 0
  27. end
  28. end
  29. end
  30. )()
  31.  
  32. local function MakeDraggable(topbarobject, object)
  33. local Dragging = nil
  34. local DragInput = nil
  35. local DragStart = nil
  36. local StartPosition = nil
  37.  
  38. local function Update(input)
  39. local Delta = input.Position - DragStart
  40. local pos =
  41. UDim2.new(
  42. StartPosition.X.Scale,
  43. StartPosition.X.Offset + Delta.X,
  44. StartPosition.Y.Scale,
  45. StartPosition.Y.Offset + Delta.Y
  46. )
  47. object.Position = pos
  48. end
  49.  
  50. topbarobject.InputBegan:Connect(
  51. function(input)
  52. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  53. Dragging = true
  54. DragStart = input.Position
  55. StartPosition = object.Position
  56.  
  57. input.Changed:Connect(
  58. function()
  59. if input.UserInputState == Enum.UserInputState.End then
  60. Dragging = false
  61. end
  62. end
  63. )
  64. end
  65. end
  66. )
  67.  
  68. topbarobject.InputChanged:Connect(
  69. function(input)
  70. if
  71. input.UserInputType == Enum.UserInputType.MouseMovement or
  72. input.UserInputType == Enum.UserInputType.Touch
  73. then
  74. DragInput = input
  75. end
  76. end
  77. )
  78.  
  79. UserInputService.InputChanged:Connect(
  80. function(input)
  81. if input == DragInput and Dragging then
  82. Update(input)
  83. end
  84. end
  85. )
  86. end
  87.  
  88.  
  89.  
  90. function Flux:Window(text, bottom,mainclr,toclose)
  91. CloseBind = toclose or Enum.KeyCode.RightControl
  92. PresetColor = mainclr or Color3.fromRGB(66, 134, 255)
  93. local fs = false
  94. local MainFrame = Instance.new("Frame")
  95. local MainCorner = Instance.new("UICorner")
  96. local LeftFrame = Instance.new("Frame")
  97. local LeftCorner = Instance.new("UICorner")
  98. local GlowTabHolder = Instance.new("ImageLabel")
  99. local Title = Instance.new("TextLabel")
  100. local BottomText = Instance.new("TextLabel")
  101. local TabHold = Instance.new("Frame")
  102. local TabLayout = Instance.new("UIListLayout")
  103. local Drag = Instance.new("Frame")
  104. local ContainerFolder = Instance.new("Folder")
  105.  
  106. -- Close button (top-right of the window)
  107. local CloseButton = Instance.new("TextButton")
  108. CloseButton.Parent = MainFrame
  109. CloseButton.AnchorPoint = Vector2.new(1, 0)
  110. CloseButton.Position = UDim2.new(1, -10, 0, 10)
  111. CloseButton.Size = UDim2.new(0, 25, 0, 25)
  112. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
  113. CloseButton.Text = "X"
  114. CloseButton.Font = Enum.Font.GothamBold
  115. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. CloseButton.TextSize = 18
  117. CloseButton.AutoButtonColor = true
  118. CloseButton.ZIndex = 10
  119. CloseButton.Name = "CloseButton"
  120.  
  121. -- Rounded edges
  122. local CloseCorner = Instance.new("UICorner")
  123. CloseCorner.CornerRadius = UDim.new(0, 4)
  124. CloseCorner.Parent = CloseButton
  125.  
  126. -- Hover animation
  127. CloseButton.MouseEnter:Connect(function()
  128. TweenService:Create(
  129. CloseButton,
  130. TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  131. {BackgroundColor3 = Color3.fromRGB(255, 90, 90)}
  132. ):Play()
  133. end)
  134.  
  135. CloseButton.MouseLeave:Connect(function()
  136. TweenService:Create(
  137. CloseButton,
  138. TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  139. {BackgroundColor3 = Color3.fromRGB(255, 60, 60)}
  140. ):Play()
  141. end)
  142.  
  143. -- Close behavior
  144. CloseButton.MouseButton1Click:Connect(function()
  145. TweenService:Create(
  146. MainFrame,
  147. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  148. {Size = UDim2.new(0, 0, 0, 0)}
  149. ):Play()
  150. task.wait(0.4)
  151. FluxLib:Destroy()
  152. end)
  153.  
  154. MainFrame.Name = "MainFrame"
  155. MainFrame.Parent = FluxLib
  156. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  157. MainFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59)
  158. MainFrame.ClipsDescendants = true
  159. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  160. MainFrame.Size = UDim2.new(0, 0, 0, 0)
  161.  
  162. MainCorner.CornerRadius = UDim.new(0, 5)
  163. MainCorner.Name = "MainCorner"
  164. MainCorner.Parent = MainFrame
  165.  
  166. LeftFrame.Name = "LeftFrame"
  167. LeftFrame.Parent = MainFrame
  168. LeftFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  169. LeftFrame.Size = UDim2.new(0, 205, 0, 484)
  170.  
  171. LeftCorner.CornerRadius = UDim.new(0, 5)
  172. LeftCorner.Name = "LeftCorner"
  173. LeftCorner.Parent = LeftFrame
  174.  
  175. GlowTabHolder.Name = "GlowTabHolder"
  176. GlowTabHolder.Parent = LeftFrame
  177. GlowTabHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178. GlowTabHolder.BackgroundTransparency = 1.000
  179. GlowTabHolder.BorderSizePixel = 0
  180. GlowTabHolder.Position = UDim2.new(0, -15, 0, -15)
  181. GlowTabHolder.Size = UDim2.new(1, 30, 1, 30)
  182. GlowTabHolder.ZIndex = 0
  183. GlowTabHolder.Image = "rbxassetid://4996891970"
  184. GlowTabHolder.ImageColor3 = Color3.fromRGB(15, 15, 15)
  185. GlowTabHolder.ScaleType = Enum.ScaleType.Slice
  186. GlowTabHolder.SliceCenter = Rect.new(20, 20, 280, 280)
  187.  
  188. Title.Name = "Title"
  189. Title.Parent = LeftFrame
  190. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  191. Title.BackgroundTransparency = 1.000
  192. Title.Position = UDim2.new(0.097560972, 0, 0.0475206636, 0)
  193. Title.Size = UDim2.new(0, 111, 0, 34)
  194. Title.Font = Enum.Font.GothamBold
  195. Title.Text = text
  196. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  197. Title.TextSize = 25.000
  198. Title.TextXAlignment = Enum.TextXAlignment.Left
  199.  
  200. BottomText.Name = "BottomText"
  201. BottomText.Parent = LeftFrame
  202. BottomText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  203. BottomText.BackgroundTransparency = 1.000
  204. BottomText.Position = UDim2.new(0.097560972, 0, 0.0889999792, 0)
  205. BottomText.Size = UDim2.new(0, 113, 0, 28)
  206. BottomText.Font = Enum.Font.Gotham
  207. BottomText.Text = bottom
  208. BottomText.TextColor3 = Color3.fromRGB(255, 255, 255)
  209. BottomText.TextSize = 14.000
  210. BottomText.TextTransparency = 0.300
  211. BottomText.TextXAlignment = Enum.TextXAlignment.Left
  212.  
  213. TabHold.Name = "TabHold"
  214. TabHold.Parent = LeftFrame
  215. TabHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  216. TabHold.BackgroundTransparency = 1.000
  217. TabHold.Position = UDim2.new(0, 0, 0.167355374, 0)
  218. TabHold.Size = UDim2.new(0, 205, 0, 403)
  219.  
  220. TabLayout.Name = "TabLayout"
  221. TabLayout.Parent = TabHold
  222. TabLayout.SortOrder = Enum.SortOrder.LayoutOrder
  223. TabLayout.Padding = UDim.new(0, 3)
  224.  
  225. Drag.Name = "Drag"
  226. Drag.Parent = MainFrame
  227. Drag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  228. Drag.BackgroundTransparency = 1.000
  229. Drag.Position = UDim2.new(0.290368259, 0, 0, 0)
  230. Drag.Size = UDim2.new(0, 501, 0, 23)
  231.  
  232. ContainerFolder.Name = "ContainerFolder"
  233. ContainerFolder.Parent = MainFrame
  234.  
  235. MakeDraggable(Drag,MainFrame)
  236. MakeDraggable(LeftFrame,MainFrame)
  237. MainFrame:TweenSize(UDim2.new(0, 706, 0, 484), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  238.  
  239. -- Keybind toggle connection
  240. local toggleConnection
  241. toggleConnection = UserInputService.InputBegan:Connect(function(io, p)
  242. if io.KeyCode == CloseBind and FluxLib and MainFrame and FluxLib.Parent then
  243. if uitoggled == false then
  244. MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  245. uitoggled = true
  246. task.wait(.5)
  247. FluxLib.Enabled = false
  248. else
  249. MainFrame:TweenSize(UDim2.new(0, 706, 0, 484), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  250. FluxLib.Enabled = true
  251. uitoggled = false
  252. end
  253. elseif not FluxLib or not FluxLib.Parent then
  254. -- Disconnect if GUI is gone
  255. if toggleConnection then
  256. toggleConnection:Disconnect()
  257. toggleConnection = nil
  258. end
  259. end
  260. end)
  261.  
  262. function Flux:Notification(desc,buttontitle)
  263. for i, v in next, MainFrame:GetChildren() do
  264. if v.Name == "NotificationBase" then
  265. v:Destroy()
  266. end
  267. end
  268. local NotificationBase = Instance.new("TextButton")
  269. local NotificationBaseCorner = Instance.new("UICorner")
  270. local NotificationFrame = Instance.new("Frame")
  271. local NotificationFrameCorner = Instance.new("UICorner")
  272. local NotificationFrameGlow = Instance.new("ImageLabel")
  273. local NotificationTitle = Instance.new("TextLabel")
  274. local CloseBtn = Instance.new("TextButton")
  275. local CloseBtnCorner = Instance.new("UICorner")
  276. local NotificationDesc = Instance.new("TextLabel")
  277.  
  278. NotificationBase.Name = "NotificationBase"
  279. NotificationBase.Parent = MainFrame
  280. NotificationBase.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  281. NotificationBase.BackgroundTransparency = 1
  282. NotificationBase.Size = UDim2.new(0, 706, 0, 484)
  283. NotificationBase.AutoButtonColor = false
  284. NotificationBase.Font = Enum.Font.SourceSans
  285. NotificationBase.Text = ""
  286. NotificationBase.TextColor3 = Color3.fromRGB(0, 0, 0)
  287. NotificationBase.TextSize = 14.000
  288. NotificationBase.Visible = true
  289.  
  290. NotificationBaseCorner.CornerRadius = UDim.new(0, 5)
  291. NotificationBaseCorner.Name = "NotificationBaseCorner"
  292. NotificationBaseCorner.Parent = NotificationBase
  293.  
  294. NotificationFrame.Name = "NotificationFrame"
  295. NotificationFrame.Parent = NotificationBase
  296. NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  297. NotificationFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59)
  298. NotificationFrame.ClipsDescendants = true
  299. NotificationFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  300. NotificationFrame.Size = UDim2.new(0, 0, 0, 0)
  301.  
  302. NotificationFrameCorner.CornerRadius = UDim.new(0, 5)
  303. NotificationFrameCorner.Name = "NotificationFrameCorner"
  304. NotificationFrameCorner.Parent = NotificationFrame
  305.  
  306. NotificationFrameGlow.Name = "NotificationFrameGlow"
  307. NotificationFrameGlow.Parent = NotificationFrame
  308. NotificationFrameGlow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  309. NotificationFrameGlow.BackgroundTransparency = 1.000
  310. NotificationFrameGlow.BorderSizePixel = 0
  311. NotificationFrameGlow.Position = UDim2.new(0, -15, 0, -15)
  312. NotificationFrameGlow.Size = UDim2.new(1, 30, 1, 30)
  313. NotificationFrameGlow.ZIndex = 0
  314. NotificationFrameGlow.Image = "rbxassetid://4996891970"
  315. NotificationFrameGlow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  316. NotificationFrameGlow.ScaleType = Enum.ScaleType.Slice
  317. NotificationFrameGlow.SliceCenter = Rect.new(20, 20, 280, 280)
  318.  
  319. NotificationTitle.Name = "NotificationTitle"
  320. NotificationTitle.Parent = NotificationFrame
  321. NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  322. NotificationTitle.BackgroundTransparency = 1.000
  323. NotificationTitle.Position = UDim2.new(0.0400609747, 0, 0.0761325806, 0)
  324. NotificationTitle.Size = UDim2.new(0, 111, 0, 34)
  325. NotificationTitle.Font = Enum.Font.GothamBold
  326. NotificationTitle.Text = Title.Text .. " | NOTIFICATION"
  327. NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  328. NotificationTitle.TextSize = 24.000
  329. NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left
  330. NotificationTitle.TextTransparency = 1
  331.  
  332. CloseBtn.Name = "CloseBtn"
  333. CloseBtn.Parent = NotificationFrame
  334. CloseBtn.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  335. CloseBtn.ClipsDescendants = true
  336. CloseBtn.Position = UDim2.new(0.0403124988, 0, 0.720855951, 0)
  337. CloseBtn.Size = UDim2.new(0, 366, 0, 43)
  338. CloseBtn.AutoButtonColor = false
  339. CloseBtn.Font = Enum.Font.Gotham
  340. CloseBtn.Text = buttontitle
  341. CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  342. CloseBtn.TextSize = 15.000
  343. CloseBtn.TextTransparency = 1
  344. CloseBtn.BackgroundTransparency = 1
  345.  
  346. CloseBtnCorner.CornerRadius = UDim.new(0, 4)
  347. CloseBtnCorner.Name = "CloseBtnCorner"
  348. CloseBtnCorner.Parent = CloseBtn
  349.  
  350. NotificationDesc.Name = "NotificationDesc"
  351. NotificationDesc.Parent = NotificationFrame
  352. NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  353. NotificationDesc.BackgroundTransparency = 1.000
  354. NotificationDesc.Position = UDim2.new(0.112499997, 0, 0.266355127, 0)
  355. NotificationDesc.Size = UDim2.new(0, 309, 0, 82)
  356. NotificationDesc.Font = Enum.Font.Gotham
  357. NotificationDesc.Text = desc
  358. NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
  359. NotificationDesc.TextSize = 15.000
  360. NotificationDesc.TextWrapped = true
  361. NotificationDesc.TextTransparency = 1
  362.  
  363. CloseBtn.MouseEnter:Connect(function()
  364. TweenService:Create(
  365. CloseBtn,
  366. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  367. {TextTransparency = 0}
  368. ):Play()
  369. end)
  370.  
  371. CloseBtn.MouseLeave:Connect(function()
  372. TweenService:Create(
  373. CloseBtn,
  374. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  375. {TextTransparency = 0.3}
  376. ):Play()
  377. end)
  378.  
  379. CloseBtn.MouseButton1Click:Connect(function()
  380.  
  381. TweenService:Create(
  382. NotificationDesc,
  383. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  384. {TextTransparency = 1}
  385. ):Play()
  386. TweenService:Create(
  387. CloseBtn,
  388. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  389. {TextTransparency = 1}
  390. ):Play()
  391. TweenService:Create(
  392. NotificationTitle,
  393. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  394. {TextTransparency = 1}
  395. ):Play()
  396. TweenService:Create(
  397. CloseBtn,
  398. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  399. {BackgroundTransparency = 1}
  400. ):Play()
  401.  
  402. wait(.4)
  403. CloseBtn.Visible = false
  404. NotificationFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  405.  
  406. wait(.2)
  407.  
  408. TweenService:Create(
  409. NotificationBase,
  410. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  411. {BackgroundTransparency = 1}
  412. ):Play()
  413.  
  414. wait(.2)
  415.  
  416. NotificationBase.Visible = false
  417. end)
  418.  
  419.  
  420. TweenService:Create(
  421. NotificationBase,
  422. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  423. {BackgroundTransparency = 0.550}
  424. ):Play()
  425.  
  426. wait(.1)
  427.  
  428. NotificationFrame:TweenSize(UDim2.new(0, 400, 0, 214), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  429.  
  430. wait(.4)
  431. TweenService:Create(
  432. NotificationDesc,
  433. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  434. {TextTransparency = .3}
  435. ):Play()
  436. TweenService:Create(
  437. CloseBtn,
  438. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  439. {TextTransparency = .3}
  440. ):Play()
  441. TweenService:Create(
  442. NotificationTitle,
  443. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  444. {TextTransparency = 0}
  445. ):Play()
  446. TweenService:Create(
  447. CloseBtn,
  448. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  449. {BackgroundTransparency = 0}
  450. ):Play()
  451. end
  452. local Tabs = {}
  453. function Tabs:Tab(text,ico)
  454. local Tab = Instance.new("TextButton")
  455. local TabIcon = Instance.new("ImageLabel")
  456. local TabTitle = Instance.new("TextLabel")
  457.  
  458. Tab.Name = "Tab"
  459. Tab.Parent = TabHold
  460. Tab.BackgroundColor3 = PresetColor
  461. Tab.BorderSizePixel = 0
  462. Tab.Size = UDim2.new(0, 205, 0, 40)
  463. Tab.AutoButtonColor = false
  464. Tab.Font = Enum.Font.SourceSans
  465. Tab.Text = ""
  466. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  467. Tab.TextSize = 14.000
  468. Tab.BackgroundTransparency = 1
  469.  
  470. TabIcon.Name = "TabIcon"
  471. TabIcon.Parent = Tab
  472. TabIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  473. TabIcon.BackgroundTransparency = 1.000
  474. TabIcon.Position = UDim2.new(0.0634146333, 0, 0.25, 0)
  475. TabIcon.Size = UDim2.new(0, 20, 0, 20)
  476. TabIcon.Image = ico
  477. TabIcon.ImageTransparency = .3
  478.  
  479. TabTitle.Name = "TabTitle"
  480. TabTitle.Parent = Tab
  481. TabTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  482. TabTitle.BackgroundTransparency = 1.000
  483. TabTitle.Position = UDim2.new(0.1902439, 0, 0.25, 0)
  484. TabTitle.Size = UDim2.new(0, 113, 0, 19)
  485. TabTitle.Font = Enum.Font.Gotham
  486. TabTitle.Text = text
  487. TabTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  488. TabTitle.TextSize = 15.000
  489. TabTitle.TextXAlignment = Enum.TextXAlignment.Left
  490. TabTitle.TextTransparency = .3
  491.  
  492. local Container = Instance.new("ScrollingFrame")
  493. local ContainerLayout = Instance.new("UIListLayout")
  494.  
  495.  
  496. Container.Name = "Container"
  497. Container.Parent = ContainerFolder
  498. Container.Active = true
  499. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  500. Container.BackgroundTransparency = 1.000
  501. Container.BorderSizePixel = 0
  502. Container.Position = UDim2.new(0.321529746, 0, 0.0475206599, 0)
  503. Container.Size = UDim2.new(0, 470, 0, 438)
  504. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  505. Container.ScrollBarThickness = 5
  506. Container.Visible = false
  507. Container.ScrollBarImageColor3 = Color3.fromRGB(71, 76, 84)
  508.  
  509. ContainerLayout.Name = "ContainerLayout"
  510. ContainerLayout.Parent = Container
  511. ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder
  512. ContainerLayout.Padding = UDim.new(0, 15)
  513.  
  514. if fs == false then
  515. fs = true
  516. TabTitle.TextTransparency = 0
  517. TabIcon.ImageTransparency = 0
  518. Tab.BackgroundTransparency = 0
  519. Container.Visible = true
  520. end
  521.  
  522. Tab.MouseButton1Click:Connect(function()
  523. for i, v in next, ContainerFolder:GetChildren() do
  524. if v.Name == "Container" then
  525. v.Visible = false
  526. end
  527. Container.Visible = true
  528. end
  529. for i, v in next, TabHold:GetChildren() do
  530. if v.Name == "Tab" then
  531. TweenService:Create(
  532. v,
  533. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  534. {BackgroundTransparency = 1}
  535. ):Play()
  536. TweenService:Create(
  537. v.TabIcon,
  538. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  539. {ImageTransparency = .3}
  540. ):Play()
  541. TweenService:Create(
  542. v.TabTitle,
  543. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  544. {TextTransparency = .3}
  545. ):Play()
  546. TweenService:Create(
  547. Tab,
  548. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  549. {BackgroundTransparency = 0}
  550. ):Play()
  551. TweenService:Create(
  552. TabIcon,
  553. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  554. {ImageTransparency = 0}
  555. ):Play()
  556. TweenService:Create(
  557. TabTitle,
  558. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  559. {TextTransparency = 0}
  560. ):Play()
  561. end
  562. end
  563. end)
  564. local ContainerContent = {}
  565. function ContainerContent:Button(text, desc, callback)
  566. if desc == "" then
  567. desc = "There is no description for this button."
  568. end
  569. local BtnDescToggled = false
  570. local Button = Instance.new("TextButton")
  571. local ButtonCorner = Instance.new("UICorner")
  572. local Title = Instance.new("TextLabel")
  573. local Circle = Instance.new("Frame")
  574. local CircleCorner = Instance.new("UICorner")
  575. local CircleSmall = Instance.new("Frame")
  576. local CircleSmallCorner = Instance.new("UICorner")
  577. local Description = Instance.new("TextLabel")
  578. local ArrowBtn = Instance.new("ImageButton")
  579. local ArrowIco = Instance.new("ImageLabel")
  580.  
  581. Button.Name = "Button"
  582. Button.Parent = Container
  583. Button.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  584. Button.ClipsDescendants = true
  585. Button.Position = UDim2.new(0.370312512, 0, 0.552631557, 0)
  586. Button.Size = UDim2.new(0, 457, 0, 43)
  587. Button.AutoButtonColor = false
  588. Button.Font = Enum.Font.SourceSans
  589. Button.Text = ""
  590. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  591. Button.TextSize = 14.000
  592.  
  593. ButtonCorner.CornerRadius = UDim.new(0, 4)
  594. ButtonCorner.Name = "ButtonCorner"
  595. ButtonCorner.Parent = Button
  596.  
  597. Title.Name = "Title"
  598. Title.Parent = Button
  599. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  600. Title.BackgroundTransparency = 1.000
  601. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  602. Title.Size = UDim2.new(0, 113, 0, 42)
  603. Title.Font = Enum.Font.Gotham
  604. Title.Text = text
  605. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  606. Title.TextSize = 15.000
  607. Title.TextTransparency = 0.300
  608. Title.TextXAlignment = Enum.TextXAlignment.Left
  609.  
  610. Circle.Name = "Circle"
  611. Circle.Parent = Title
  612. Circle.Active = true
  613. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  614. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  615. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  616. Circle.Size = UDim2.new(0, 11, 0, 11)
  617.  
  618. CircleCorner.CornerRadius = UDim.new(2, 6)
  619. CircleCorner.Name = "CircleCorner"
  620. CircleCorner.Parent = Circle
  621.  
  622. CircleSmall.Name = "CircleSmall"
  623. CircleSmall.Parent = Circle
  624. CircleSmall.Active = true
  625. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  626. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  627. CircleSmall.BackgroundTransparency = 1.000
  628. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  629. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  630.  
  631. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  632. CircleSmallCorner.Name = "CircleSmallCorner"
  633. CircleSmallCorner.Parent = CircleSmall
  634.  
  635. Description.Name = "Description"
  636. Description.Parent = Title
  637. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  638. Description.BackgroundTransparency = 1.000
  639. Description.Position = UDim2.new(-0.200942323, 0, 0.785714269, 0)
  640. Description.Size = UDim2.new(0, 432, 0, 31)
  641. Description.Font = Enum.Font.Gotham
  642. Description.Text = desc
  643. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  644. Description.TextSize = 15.000
  645. Description.TextTransparency = 1
  646. Description.TextWrapped = true
  647. Description.TextXAlignment = Enum.TextXAlignment.Left
  648.  
  649. ArrowBtn.Name = "ArrowBtn"
  650. ArrowBtn.Parent = Button
  651. ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  652. ArrowBtn.BackgroundTransparency = 1.000
  653. ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0)
  654. ArrowBtn.Size = UDim2.new(0, 33, 0, 37)
  655. ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30)
  656. ArrowBtn.SliceScale = 7.000
  657.  
  658. ArrowIco.Name = "ArrowIco"
  659. ArrowIco.Parent = ArrowBtn
  660. ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5)
  661. ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  662. ArrowIco.BackgroundTransparency = 1.000
  663. ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0)
  664. ArrowIco.Selectable = true
  665. ArrowIco.Size = UDim2.new(0, 28, 0, 24)
  666. ArrowIco.Image = "http://www.roblox.com/asset/?id=6034818372"
  667. ArrowIco.ImageTransparency = .3
  668.  
  669. Button.MouseEnter:Connect(function()
  670. TweenService:Create(
  671. Title,
  672. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  673. {TextTransparency = 0}
  674. ):Play()
  675. end)
  676.  
  677. Button.MouseLeave:Connect(function()
  678. TweenService:Create(
  679. Title,
  680. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  681. {TextTransparency = 0.3}
  682. ):Play()
  683. end)
  684.  
  685. Button.MouseButton1Click:Connect(function()
  686. pcall(callback)
  687. end)
  688.  
  689. ArrowBtn.MouseButton1Click:Connect(function()
  690. if BtnDescToggled == false then
  691. Button:TweenSize(UDim2.new(0, 457, 0, 74), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  692. TweenService:Create(
  693. Title,
  694. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  695. {TextColor3 = PresetColor}
  696. ):Play()
  697. TweenService:Create(
  698. ArrowIco,
  699. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  700. {ImageColor3 = PresetColor}
  701. ):Play()
  702. TweenService:Create(
  703. ArrowIco,
  704. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  705. {ImageTransparency = 0}
  706. ):Play()
  707. TweenService:Create(
  708. ArrowIco,
  709. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  710. {Rotation = 180}
  711. ):Play()
  712. TweenService:Create(
  713. Circle,
  714. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  715. {BackgroundColor3 = PresetColor}
  716. ):Play()
  717. TweenService:Create(
  718. CircleSmall,
  719. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  720. {BackgroundTransparency = 0}
  721. ):Play()
  722. TweenService:Create(
  723. Title,
  724. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  725. {TextTransparency = 0}
  726. ):Play()
  727. TweenService:Create(
  728. Description,
  729. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  730. {TextTransparency = 0.3}
  731. ):Play()
  732. wait(.4)
  733. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  734. else
  735. Button:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  736. TweenService:Create(
  737. Title,
  738. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  739. {TextColor3 = Color3.fromRGB(255,255,255)}
  740. ):Play()
  741. TweenService:Create(
  742. ArrowIco,
  743. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  744. {ImageColor3 = Color3.fromRGB(255,255,255)}
  745. ):Play()
  746. TweenService:Create(
  747. ArrowIco,
  748. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  749. {ImageTransparency = .3}
  750. ):Play()
  751. TweenService:Create(
  752. ArrowIco,
  753. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  754. {Rotation = 0}
  755. ):Play()
  756. TweenService:Create(
  757. Circle,
  758. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  759. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  760. ):Play()
  761. TweenService:Create(
  762. CircleSmall,
  763. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  764. {BackgroundTransparency = 1}
  765. ):Play()
  766. TweenService:Create(
  767. Title,
  768. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  769. {TextTransparency = 0.3}
  770. ):Play()
  771. TweenService:Create(
  772. Description,
  773. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  774. {TextTransparency = 1}
  775. ):Play()
  776. wait(.4)
  777. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  778. end
  779. BtnDescToggled = not BtnDescToggled
  780. end)
  781. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  782. end
  783. function ContainerContent:Toggle(text, desc,default, callback)
  784. local ToggleDescToggled = false
  785. local Toggled = false
  786. if desc == "" then
  787. desc = "There is no description for this toggle."
  788. end
  789. local Toggle = Instance.new("TextButton")
  790. local ToggleCorner = Instance.new("UICorner")
  791. local Title = Instance.new("TextLabel")
  792. local Circle = Instance.new("Frame")
  793. local CircleCorner = Instance.new("UICorner")
  794. local CircleSmall = Instance.new("Frame")
  795. local CircleSmallCorner = Instance.new("UICorner")
  796. local ToggleFrame = Instance.new("Frame")
  797. local ToggleFrameCorner = Instance.new("UICorner")
  798. local ToggleCircle = Instance.new("Frame")
  799. local ToggleCircleCorner = Instance.new("UICorner")
  800. local Description = Instance.new("TextLabel")
  801. local ArrowBtn = Instance.new("ImageButton")
  802. local ArrowIco = Instance.new("ImageLabel")
  803.  
  804. Toggle.Name = "Toggle"
  805. Toggle.Parent = Container
  806. Toggle.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  807. Toggle.ClipsDescendants = true
  808. Toggle.Position = UDim2.new(0.110937506, 0, 0.67653507, 0)
  809. Toggle.Size = UDim2.new(0, 457, 0, 43)
  810. Toggle.AutoButtonColor = false
  811. Toggle.Font = Enum.Font.SourceSans
  812. Toggle.Text = ""
  813. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  814. Toggle.TextSize = 14.000
  815.  
  816. ToggleCorner.CornerRadius = UDim.new(0, 4)
  817. ToggleCorner.Name = "ToggleCorner"
  818. ToggleCorner.Parent = Toggle
  819.  
  820. Title.Name = "Title"
  821. Title.Parent = Toggle
  822. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  823. Title.BackgroundTransparency = 1.000
  824. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  825. Title.Size = UDim2.new(0, 113, 0, 42)
  826. Title.Font = Enum.Font.Gotham
  827. Title.Text = text
  828. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  829. Title.TextSize = 15.000
  830. Title.TextTransparency = 0.300
  831. Title.TextXAlignment = Enum.TextXAlignment.Left
  832.  
  833. Circle.Name = "Circle"
  834. Circle.Parent = Title
  835. Circle.Active = true
  836. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  837. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  838. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  839. Circle.Size = UDim2.new(0, 11, 0, 11)
  840.  
  841. CircleCorner.CornerRadius = UDim.new(2, 6)
  842. CircleCorner.Name = "CircleCorner"
  843. CircleCorner.Parent = Circle
  844.  
  845. CircleSmall.Name = "CircleSmall"
  846. CircleSmall.Parent = Circle
  847. CircleSmall.Active = true
  848. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  849. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  850. CircleSmall.BackgroundTransparency = 1.000
  851. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  852. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  853.  
  854. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  855. CircleSmallCorner.Name = "CircleSmallCorner"
  856. CircleSmallCorner.Parent = CircleSmall
  857.  
  858. ToggleFrame.Name = "ToggleFrame"
  859. ToggleFrame.Parent = Circle
  860. ToggleFrame.BackgroundColor3 = Color3.fromRGB(226, 227, 227)
  861. ToggleFrame.Position = UDim2.new(33.0856934, 0, 0, 0)
  862. ToggleFrame.Size = UDim2.new(0, 27, 0, 11)
  863.  
  864. ToggleFrameCorner.Name = "ToggleFrameCorner"
  865. ToggleFrameCorner.Parent = ToggleFrame
  866.  
  867. ToggleCircle.Name = "ToggleCircle"
  868. ToggleCircle.Parent = ToggleFrame
  869. ToggleCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  870. ToggleCircle.Position = UDim2.new(0, 0, -0.272727281, 0)
  871. ToggleCircle.Selectable = true
  872. ToggleCircle.Size = UDim2.new(0, 17, 0, 17)
  873.  
  874. ToggleCircleCorner.CornerRadius = UDim.new(2, 8)
  875. ToggleCircleCorner.Name = "ToggleCircleCorner"
  876. ToggleCircleCorner.Parent = ToggleCircle
  877.  
  878. Description.Name = "Description"
  879. Description.Parent = Title
  880. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  881. Description.BackgroundTransparency = 1.000
  882. Description.Position = UDim2.new(-0.200942323, 0, 0.785714269, 0)
  883. Description.Size = UDim2.new(0, 432, 0, 31)
  884. Description.Font = Enum.Font.Gotham
  885. Description.Text = desc
  886. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  887. Description.TextSize = 15.000
  888. Description.TextTransparency = 1
  889. Description.TextWrapped = true
  890. Description.TextXAlignment = Enum.TextXAlignment.Left
  891.  
  892. ArrowBtn.Name = "ArrowBtn"
  893. ArrowBtn.Parent = Toggle
  894. ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  895. ArrowBtn.BackgroundTransparency = 1.000
  896. ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0)
  897. ArrowBtn.Size = UDim2.new(0, 33, 0, 37)
  898. ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30)
  899. ArrowBtn.SliceScale = 7.000
  900.  
  901. ArrowIco.Name = "ArrowIco"
  902. ArrowIco.Parent = ArrowBtn
  903. ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5)
  904. ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  905. ArrowIco.BackgroundTransparency = 1.000
  906. ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0)
  907. ArrowIco.Selectable = true
  908. ArrowIco.Size = UDim2.new(0, 28, 0, 24)
  909. ArrowIco.Image = "http://www.roblox.com/asset/?id=6034818372"
  910. ArrowIco.ImageTransparency = .3
  911.  
  912. Toggle.MouseEnter:Connect(function()
  913. TweenService:Create(
  914. Title,
  915. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  916. {TextTransparency = 0}
  917. ):Play()
  918. end)
  919.  
  920. Toggle.MouseLeave:Connect(function()
  921. TweenService:Create(
  922. Title,
  923. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  924. {TextTransparency = 0.3}
  925. ):Play()
  926. end)
  927.  
  928. Toggle.MouseButton1Click:Connect(function()
  929. if Toggled == false then
  930. ToggleCircle:TweenPosition(UDim2.new(0.37, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  931. TweenService:Create(
  932. ToggleCircle,
  933. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  934. {BackgroundColor3 =PresetColor}
  935. ):Play()
  936. else
  937. ToggleCircle:TweenPosition(UDim2.new(0, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  938. TweenService:Create(
  939. ToggleCircle,
  940. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  941. {BackgroundColor3 = Color3.fromRGB(255,255,255)}
  942. ):Play()
  943. end
  944. Toggled = not Toggled
  945. pcall(callback, Toggled)
  946. end)
  947.  
  948. ArrowBtn.MouseButton1Click:Connect(function()
  949. if ToggleDescToggled == false then
  950. Toggle:TweenSize(UDim2.new(0, 457, 0, 74), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  951. TweenService:Create(
  952. Title,
  953. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  954. {TextColor3 = PresetColor}
  955. ):Play()
  956. TweenService:Create(
  957. ArrowIco,
  958. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  959. {ImageColor3 = PresetColor}
  960. ):Play()
  961. TweenService:Create(
  962. ArrowIco,
  963. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  964. {ImageTransparency = 0}
  965. ):Play()
  966. TweenService:Create(
  967. ArrowIco,
  968. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  969. {Rotation = 180}
  970. ):Play()
  971. TweenService:Create(
  972. Circle,
  973. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  974. {BackgroundColor3 = PresetColor}
  975. ):Play()
  976. TweenService:Create(
  977. CircleSmall,
  978. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  979. {BackgroundTransparency = 0}
  980. ):Play()
  981. TweenService:Create(
  982. Title,
  983. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  984. {TextTransparency = 0}
  985. ):Play()
  986. TweenService:Create(
  987. Description,
  988. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  989. {TextTransparency = 0.3}
  990. ):Play()
  991. wait(.4)
  992. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  993. else
  994. Toggle:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  995. TweenService:Create(
  996. Title,
  997. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  998. {TextColor3 = Color3.fromRGB(255,255,255)}
  999. ):Play()
  1000. TweenService:Create(
  1001. ArrowIco,
  1002. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1003. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1004. ):Play()
  1005. TweenService:Create(
  1006. ArrowIco,
  1007. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1008. {ImageTransparency = .3}
  1009. ):Play()
  1010. TweenService:Create(
  1011. ArrowIco,
  1012. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1013. {Rotation = 0}
  1014. ):Play()
  1015. TweenService:Create(
  1016. Circle,
  1017. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1018. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1019. ):Play()
  1020. TweenService:Create(
  1021. CircleSmall,
  1022. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1023. {BackgroundTransparency = 1}
  1024. ):Play()
  1025. TweenService:Create(
  1026. Title,
  1027. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1028. {TextTransparency = 0.3}
  1029. ):Play()
  1030. TweenService:Create(
  1031. Description,
  1032. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1033. {TextTransparency = 1}
  1034. ):Play()
  1035. wait(.4)
  1036. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1037. end
  1038. ToggleDescToggled = not ToggleDescToggled
  1039. end)
  1040. if default == true then
  1041. ToggleCircle:TweenPosition(UDim2.new(0.37, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  1042. TweenService:Create(
  1043. ToggleCircle,
  1044. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1045. {BackgroundColor3 =PresetColor}
  1046. ):Play()
  1047. Toggled = not Toggled
  1048. pcall(callback, Toggled)
  1049. end
  1050. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1051. end
  1052.  
  1053. function ContainerContent:Slider(text,desc,min,max,start,callback)
  1054. local SliderFunc = {}
  1055. local SliderDescToggled = false
  1056. local dragging = false
  1057. if desc == "" then
  1058. desc = "There is no description for this slider."
  1059. end
  1060. local Slider = Instance.new("TextButton")
  1061. local SliderCorner = Instance.new("UICorner")
  1062. local Title = Instance.new("TextLabel")
  1063. local Circle = Instance.new("Frame")
  1064. local CircleCorner = Instance.new("UICorner")
  1065. local CircleSmall = Instance.new("Frame")
  1066. local CircleSmallCorner = Instance.new("UICorner")
  1067. local Description = Instance.new("TextLabel")
  1068. local SlideFrame = Instance.new("Frame")
  1069. local CurrentValueFrame = Instance.new("Frame")
  1070. local SlideCircle = Instance.new("ImageButton")
  1071. local ArrowBtn = Instance.new("ImageButton")
  1072. local ArrowIco = Instance.new("ImageLabel")
  1073. local Value = Instance.new("TextLabel")
  1074.  
  1075. Slider.Name = "Slider"
  1076. Slider.Parent = Container
  1077. Slider.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1078. Slider.ClipsDescendants = true
  1079. Slider.Position = UDim2.new(0.189062506, 0, 0.648612201, 0)
  1080. Slider.Size = UDim2.new(0, 457, 0, 60)
  1081. Slider.AutoButtonColor = false
  1082. Slider.Font = Enum.Font.SourceSans
  1083. Slider.Text = ""
  1084. Slider.TextColor3 = Color3.fromRGB(0, 0, 0)
  1085. Slider.TextSize = 14.000
  1086.  
  1087. SliderCorner.CornerRadius = UDim.new(0, 4)
  1088. SliderCorner.Name = "SliderCorner"
  1089. SliderCorner.Parent = Slider
  1090.  
  1091. Title.Name = "Title"
  1092. Title.Parent = Slider
  1093. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1094. Title.BackgroundTransparency = 1.000
  1095. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  1096. Title.Size = UDim2.new(0, 113, 0, 42)
  1097. Title.Font = Enum.Font.Gotham
  1098. Title.Text = text
  1099. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1100. Title.TextSize = 15.000
  1101. Title.TextTransparency = 0.300
  1102. Title.TextXAlignment = Enum.TextXAlignment.Left
  1103.  
  1104. Circle.Name = "Circle"
  1105. Circle.Parent = Title
  1106. Circle.Active = true
  1107. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  1108. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  1109. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  1110. Circle.Size = UDim2.new(0, 11, 0, 11)
  1111.  
  1112.  
  1113. CircleCorner.CornerRadius = UDim.new(2, 6)
  1114. CircleCorner.Name = "CircleCorner"
  1115. CircleCorner.Parent = Circle
  1116.  
  1117. CircleSmall.Name = "CircleSmall"
  1118. CircleSmall.Parent = Circle
  1119. CircleSmall.Active = true
  1120. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  1121. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1122. CircleSmall.BackgroundTransparency = 1.000
  1123. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  1124. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  1125.  
  1126. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  1127. CircleSmallCorner.Name = "CircleSmallCorner"
  1128. CircleSmallCorner.Parent = CircleSmall
  1129.  
  1130. Description.Name = "Description"
  1131. Description.Parent = Title
  1132. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1133. Description.BackgroundTransparency = 1.000
  1134. Description.Position = UDim2.new(-0.201000005, 0, 1.38600004, 0)
  1135. Description.Size = UDim2.new(0, 432, 0, 31)
  1136. Description.Font = Enum.Font.Gotham
  1137. Description.Text = desc
  1138. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  1139. Description.TextSize = 15.000
  1140. Description.TextTransparency = 0.300
  1141. Description.TextWrapped = true
  1142. Description.TextXAlignment = Enum.TextXAlignment.Left
  1143.  
  1144. SlideFrame.Name = "SlideFrame"
  1145. SlideFrame.Parent = Title
  1146. SlideFrame.BackgroundColor3 = Color3.fromRGB(235, 234, 235)
  1147. SlideFrame.BorderSizePixel = 0
  1148. SlideFrame.Position = UDim2.new(-0.197140202, 0, 0.986091495, 0)
  1149. SlideFrame.Size = UDim2.new(0, 426, 0, 3)
  1150.  
  1151. CurrentValueFrame.Name = "CurrentValueFrame"
  1152. CurrentValueFrame.Parent = SlideFrame
  1153. CurrentValueFrame.BackgroundColor3 = PresetColor
  1154. CurrentValueFrame.BorderSizePixel = 0
  1155. CurrentValueFrame.Size = UDim2.new((start or 0) / max, 0, 0, 3)
  1156.  
  1157. SlideCircle.Name = "SlideCircle"
  1158. SlideCircle.Parent = SlideFrame
  1159. SlideCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1160. SlideCircle.BackgroundTransparency = 1.000
  1161. SlideCircle.Position = UDim2.new((start or 0)/max, -6,-1.30499995, 0)
  1162. SlideCircle.Size = UDim2.new(0, 11, 0, 11)
  1163. SlideCircle.Image = "rbxassetid://3570695787"
  1164. SlideCircle.ImageColor3 = PresetColor
  1165.  
  1166. ArrowBtn.Name = "ArrowBtn"
  1167. ArrowBtn.Parent = Slider
  1168. ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  1169. ArrowBtn.BackgroundTransparency = 1.000
  1170. ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0)
  1171. ArrowBtn.Size = UDim2.new(0, 33, 0, 37)
  1172. ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30)
  1173. ArrowBtn.SliceScale = 7.000
  1174.  
  1175. ArrowIco.Name = "ArrowIco"
  1176. ArrowIco.Parent = ArrowBtn
  1177. ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5)
  1178. ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1179. ArrowIco.BackgroundTransparency = 1.000
  1180. ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0)
  1181. ArrowIco.Selectable = true
  1182. ArrowIco.Size = UDim2.new(0, 28, 0, 24)
  1183. ArrowIco.Image = "http://www.roblox.com/asset/?id=6034818372"
  1184. ArrowIco.ImageTransparency = .3
  1185.  
  1186. Value.Name = "Value"
  1187. Value.Parent = Title
  1188. Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1189. Value.BackgroundTransparency = 1.000
  1190. Value.Position = UDim2.new(2.27693367, 0, 0, 0)
  1191. Value.Size = UDim2.new(0, 113, 0, 41)
  1192. Value.Font = Enum.Font.Gotham
  1193. Value.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  1194. Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  1195. Value.TextSize = 15.000
  1196. Value.TextTransparency = 0.300
  1197. Value.TextXAlignment = Enum.TextXAlignment.Right
  1198.  
  1199. ArrowBtn.MouseButton1Click:Connect(function()
  1200. if SliderDescToggled == false then
  1201. Slider:TweenSize(UDim2.new(0, 457, 0, 101), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1202. TweenService:Create(
  1203. Title,
  1204. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1205. {TextColor3 = PresetColor}
  1206. ):Play()
  1207. TweenService:Create(
  1208. Value,
  1209. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1210. {TextColor3 = PresetColor}
  1211. ):Play()
  1212. TweenService:Create(
  1213. ArrowIco,
  1214. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1215. {ImageColor3 = PresetColor}
  1216. ):Play()
  1217. TweenService:Create(
  1218. ArrowIco,
  1219. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1220. {ImageTransparency = 0}
  1221. ):Play()
  1222. TweenService:Create(
  1223. ArrowIco,
  1224. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1225. {Rotation = 180}
  1226. ):Play()
  1227. TweenService:Create(
  1228. Circle,
  1229. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1230. {BackgroundColor3 =PresetColor}
  1231. ):Play()
  1232. TweenService:Create(
  1233. CircleSmall,
  1234. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1235. {BackgroundTransparency = 0}
  1236. ):Play()
  1237. TweenService:Create(
  1238. Title,
  1239. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1240. {TextTransparency = 0}
  1241. ):Play()
  1242. TweenService:Create(
  1243. Description,
  1244. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1245. {TextTransparency = 0.3}
  1246. ):Play()
  1247. wait(.4)
  1248. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1249. else
  1250. Slider:TweenSize(UDim2.new(0, 457, 0, 60), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1251. TweenService:Create(
  1252. Title,
  1253. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1254. {TextColor3 = Color3.fromRGB(255,255,255)}
  1255. ):Play()
  1256. TweenService:Create(
  1257. Value,
  1258. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1259. {TextColor3 = Color3.fromRGB(255,255,255)}
  1260. ):Play()
  1261. TweenService:Create(
  1262. ArrowIco,
  1263. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1264. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1265. ):Play()
  1266. TweenService:Create(
  1267. ArrowIco,
  1268. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1269. {ImageTransparency = .3}
  1270. ):Play()
  1271. TweenService:Create(
  1272. ArrowIco,
  1273. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1274. {Rotation = 0}
  1275. ):Play()
  1276. TweenService:Create(
  1277. Circle,
  1278. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1279. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1280. ):Play()
  1281. TweenService:Create(
  1282. CircleSmall,
  1283. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1284. {BackgroundTransparency = 1}
  1285. ):Play()
  1286. TweenService:Create(
  1287. Title,
  1288. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1289. {TextTransparency = 0.3}
  1290. ):Play()
  1291. TweenService:Create(
  1292. Description,
  1293. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1294. {TextTransparency = 1}
  1295. ):Play()
  1296. wait(.4)
  1297. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1298. end
  1299. SliderDescToggled = not SliderDescToggled
  1300. end)
  1301.  
  1302. local function move(input)
  1303. local pos =
  1304. UDim2.new(
  1305. math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  1306. -6,
  1307. -1.30499995,
  1308. 0
  1309. )
  1310. local pos1 =
  1311. UDim2.new(
  1312. math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1),
  1313. 0,
  1314. 0,
  1315. 3
  1316. )
  1317. CurrentValueFrame:TweenSize(pos1, "Out", "Sine", 0.1, true)
  1318. SlideCircle:TweenPosition(pos, "Out", "Sine", 0.1, true)
  1319. local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  1320. Value.Text = tostring(value)
  1321. pcall(callback, value)
  1322. end
  1323. SlideCircle.InputBegan:Connect(
  1324. function(input)
  1325. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1326. dragging = true
  1327. end
  1328. end
  1329. )
  1330. SlideCircle.InputEnded:Connect(
  1331. function(input)
  1332. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1333. dragging = false
  1334. end
  1335. end
  1336. )
  1337. game:GetService("UserInputService").InputChanged:Connect(
  1338. function(input)
  1339. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1340. move(input)
  1341. end
  1342. end
  1343. )
  1344. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1345. function SliderFunc:Change(tochange)
  1346. CurrentValueFrame.Size = UDim2.new((tochange or 0) / max, 0, 0, 3)
  1347. SlideCircle.Position = UDim2.new((tochange or 0)/max, -6,-1.30499995, 0)
  1348. Value.Text = tostring(tochange and math.floor((tochange / max) * (max - min) + min) or 0)
  1349. pcall(callback,tochange)
  1350. end
  1351. return SliderFunc
  1352. end
  1353. function ContainerContent:Dropdown(text,list,callback)
  1354. local DropFunc = {}
  1355. local Selected = text
  1356. local FrameSize = 43
  1357. local ItemCount = 0
  1358. local DropToggled = false
  1359. local Dropdown = Instance.new("TextButton")
  1360. local DropdownCorner = Instance.new("UICorner")
  1361. local Title = Instance.new("TextLabel")
  1362. local Circle = Instance.new("Frame")
  1363. local CircleCorner = Instance.new("UICorner")
  1364. local CircleSmall = Instance.new("Frame")
  1365. local CircleSmallCorner = Instance.new("UICorner")
  1366. local ArrowIco = Instance.new("ImageLabel")
  1367. local DropItemHolder = Instance.new("ScrollingFrame")
  1368. local DropLayout = Instance.new("UIListLayout")
  1369.  
  1370. Dropdown.Name = "Dropdown"
  1371. Dropdown.Parent = Container
  1372. Dropdown.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1373. Dropdown.ClipsDescendants = true
  1374. Dropdown.Position = UDim2.new(0.110937499, 0, 0.67653507, 0)
  1375. Dropdown.Size = UDim2.new(0, 457, 0, 43)
  1376. Dropdown.AutoButtonColor = false
  1377. Dropdown.Font = Enum.Font.SourceSans
  1378. Dropdown.Text = ""
  1379. Dropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
  1380. Dropdown.TextSize = 14.000
  1381.  
  1382. DropdownCorner.CornerRadius = UDim.new(0, 4)
  1383. DropdownCorner.Name = "DropdownCorner"
  1384. DropdownCorner.Parent = Dropdown
  1385.  
  1386. Title.Name = "Title"
  1387. Title.Parent = Dropdown
  1388. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1389. Title.BackgroundTransparency = 1.000
  1390. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  1391. Title.Size = UDim2.new(0, 113, 0, 42)
  1392. Title.Font = Enum.Font.Gotham
  1393. Title.Text = text
  1394. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1395. Title.TextSize = 15.000
  1396. Title.TextTransparency = 0.300
  1397. Title.TextXAlignment = Enum.TextXAlignment.Left
  1398.  
  1399. Circle.Name = "Circle"
  1400. Circle.Parent = Title
  1401. Circle.Active = true
  1402. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  1403. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  1404. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  1405. Circle.Size = UDim2.new(0, 11, 0, 11)
  1406.  
  1407. CircleCorner.CornerRadius = UDim.new(2, 6)
  1408. CircleCorner.Name = "CircleCorner"
  1409. CircleCorner.Parent = Circle
  1410.  
  1411. CircleSmall.Name = "CircleSmall"
  1412. CircleSmall.Parent = Circle
  1413. CircleSmall.Active = true
  1414. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  1415. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1416. CircleSmall.BackgroundTransparency = 1.000
  1417. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  1418. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  1419.  
  1420. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  1421. CircleSmallCorner.Name = "CircleSmallCorner"
  1422. CircleSmallCorner.Parent = CircleSmall
  1423.  
  1424. ArrowIco.Name = "ArrowIco"
  1425. ArrowIco.Parent = Title
  1426. ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5)
  1427. ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1428. ArrowIco.BackgroundTransparency = 1.000
  1429. ArrowIco.Position = UDim2.new(3.45979357, 0, 0.508096159, 0)
  1430. ArrowIco.Selectable = true
  1431. ArrowIco.Size = UDim2.new(0, 28, 0, 24)
  1432. ArrowIco.Image = "http://www.roblox.com/asset/?id=6035047377"
  1433. ArrowIco.ImageTransparency = .3
  1434.  
  1435. DropItemHolder.Name = "DropItemHolder"
  1436. DropItemHolder.Parent = Title
  1437. DropItemHolder.Active = true
  1438. DropItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1439. DropItemHolder.BackgroundTransparency = 1.000
  1440. DropItemHolder.BorderSizePixel = 0
  1441. DropItemHolder.Position = UDim2.new(-0.203539819, 0, 1.02380955, 0)
  1442. DropItemHolder.Size = UDim2.new(0, 436, 0, 82)
  1443. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  1444. DropItemHolder.ScrollBarThickness = 5
  1445. DropItemHolder.ScrollBarImageColor3 = Color3.fromRGB(41, 42, 48)
  1446.  
  1447. DropLayout.Name = "DropLayout"
  1448. DropLayout.Parent = DropItemHolder
  1449. DropLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1450. DropLayout.Padding = UDim.new(0, 2)
  1451.  
  1452. Dropdown.MouseEnter:Connect(function()
  1453. TweenService:Create(
  1454. Title,
  1455. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1456. {TextTransparency = 0}
  1457. ):Play()
  1458. end)
  1459.  
  1460. Dropdown.MouseLeave:Connect(function()
  1461. TweenService:Create(
  1462. Title,
  1463. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1464. {TextTransparency = 0.3}
  1465. ):Play()
  1466. end)
  1467.  
  1468.  
  1469. Dropdown.MouseButton1Click:Connect(function()
  1470. if DropToggled == false then
  1471. Title.Text = Selected
  1472. Dropdown:TweenSize(UDim2.new(0, 457, 0, FrameSize), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1473. TweenService:Create(
  1474. Title,
  1475. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1476. {TextColor3 = PresetColor}
  1477. ):Play()
  1478. TweenService:Create(
  1479. ArrowIco,
  1480. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1481. {ImageColor3 = PresetColor}
  1482. ):Play()
  1483. TweenService:Create(
  1484. ArrowIco,
  1485. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1486. {ImageTransparency = 0}
  1487. ):Play()
  1488. TweenService:Create(
  1489. ArrowIco,
  1490. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1491. {Rotation = 180}
  1492. ):Play()
  1493. TweenService:Create(
  1494. Circle,
  1495. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1496. {BackgroundColor3 = PresetColor}
  1497. ):Play()
  1498. TweenService:Create(
  1499. CircleSmall,
  1500. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1501. {BackgroundTransparency = 0}
  1502. ):Play()
  1503. TweenService:Create(
  1504. Title,
  1505. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1506. {TextTransparency = 0}
  1507. ):Play()
  1508. wait(.4)
  1509. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1510. else
  1511. Title.Text = Selected
  1512. Dropdown:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1513. TweenService:Create(
  1514. Title,
  1515. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1516. {TextColor3 = Color3.fromRGB(255,255,255)}
  1517. ):Play()
  1518. TweenService:Create(
  1519. ArrowIco,
  1520. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1521. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1522. ):Play()
  1523. TweenService:Create(
  1524. ArrowIco,
  1525. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1526. {ImageTransparency = .3}
  1527. ):Play()
  1528. TweenService:Create(
  1529. ArrowIco,
  1530. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1531. {Rotation = 0}
  1532. ):Play()
  1533. TweenService:Create(
  1534. Circle,
  1535. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1536. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1537. ):Play()
  1538. TweenService:Create(
  1539. CircleSmall,
  1540. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1541. {BackgroundTransparency = 1}
  1542. ):Play()
  1543. TweenService:Create(
  1544. Title,
  1545. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1546. {TextTransparency = 0.3}
  1547. ):Play()
  1548. wait(.4)
  1549. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1550. end
  1551. DropToggled = not DropToggled
  1552. end)
  1553.  
  1554. for i,v in next, list do
  1555. ItemCount = ItemCount + 1
  1556.  
  1557. if ItemCount == 1 then
  1558. FrameSize = 78
  1559. elseif ItemCount == 2 then
  1560. FrameSize = 107
  1561. elseif ItemCount >= 3 then
  1562. FrameSize = 133
  1563. end
  1564. local Item = Instance.new("TextButton")
  1565. local ItemCorner = Instance.new("UICorner")
  1566.  
  1567. Item.Name = "Item"
  1568. Item.Parent = DropItemHolder
  1569. Item.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1570. Item.ClipsDescendants = true
  1571. Item.Size = UDim2.new(0, 427, 0, 25)
  1572. Item.AutoButtonColor = false
  1573. Item.Font = Enum.Font.Gotham
  1574. Item.Text = v
  1575. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1576. Item.TextSize = 15.000
  1577. Item.TextTransparency = 0.300
  1578.  
  1579. ItemCorner.CornerRadius = UDim.new(0, 4)
  1580. ItemCorner.Name = "ItemCorner"
  1581. ItemCorner.Parent = Item
  1582. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y)
  1583.  
  1584. Item.MouseEnter:Connect(function()
  1585. TweenService:Create(
  1586. Item,
  1587. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1588. {TextTransparency = 0}
  1589. ):Play()
  1590. end)
  1591.  
  1592. Item.MouseLeave:Connect(function()
  1593. TweenService:Create(
  1594. Item,
  1595. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1596. {TextTransparency = 0.3}
  1597. ):Play()
  1598. end)
  1599.  
  1600. Item.MouseButton1Click:Connect(function()
  1601. pcall(callback, v)
  1602. Title.Text = text
  1603. Selected = v
  1604. DropToggled = not DropToggled
  1605. Dropdown:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1606. TweenService:Create(
  1607. Title,
  1608. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1609. {TextColor3 = Color3.fromRGB(255,255,255)}
  1610. ):Play()
  1611. TweenService:Create(
  1612. ArrowIco,
  1613. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1614. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1615. ):Play()
  1616. TweenService:Create(
  1617. ArrowIco,
  1618. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1619. {ImageTransparency = .3}
  1620. ):Play()
  1621. TweenService:Create(
  1622. ArrowIco,
  1623. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1624. {Rotation = 0}
  1625. ):Play()
  1626. TweenService:Create(
  1627. Circle,
  1628. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1629. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1630. ):Play()
  1631. TweenService:Create(
  1632. CircleSmall,
  1633. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1634. {BackgroundTransparency = 1}
  1635. ):Play()
  1636. TweenService:Create(
  1637. Title,
  1638. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1639. {TextTransparency = 0.3}
  1640. ):Play()
  1641. wait(.4)
  1642. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1643.  
  1644. end)
  1645. end
  1646. function DropFunc:Add(addtext)
  1647. ItemCount = ItemCount + 1
  1648.  
  1649. if ItemCount == 1 then
  1650. FrameSize = 78
  1651. elseif ItemCount == 2 then
  1652. FrameSize = 107
  1653. elseif ItemCount >= 3 then
  1654. FrameSize = 133
  1655. end
  1656. local Item = Instance.new("TextButton")
  1657. local ItemCorner = Instance.new("UICorner")
  1658.  
  1659. Item.Name = "Item"
  1660. Item.Parent = DropItemHolder
  1661. Item.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1662. Item.ClipsDescendants = true
  1663. Item.Size = UDim2.new(0, 427, 0, 25)
  1664. Item.AutoButtonColor = false
  1665. Item.Font = Enum.Font.Gotham
  1666. Item.Text = addtext
  1667. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1668. Item.TextSize = 15.000
  1669. Item.TextTransparency = 0.300
  1670.  
  1671. ItemCorner.CornerRadius = UDim.new(0, 4)
  1672. ItemCorner.Name = "ItemCorner"
  1673. ItemCorner.Parent = Item
  1674. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y)
  1675.  
  1676. Item.MouseEnter:Connect(function()
  1677. TweenService:Create(
  1678. Item,
  1679. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1680. {TextTransparency = 0}
  1681. ):Play()
  1682. end)
  1683.  
  1684. Item.MouseLeave:Connect(function()
  1685. TweenService:Create(
  1686. Item,
  1687. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1688. {TextTransparency = 0.3}
  1689. ):Play()
  1690. end)
  1691.  
  1692. Item.MouseButton1Click:Connect(function()
  1693. pcall(callback, addtext)
  1694. Title.Text = text
  1695. Selected = addtext
  1696. DropToggled = not DropToggled
  1697. Dropdown:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1698. TweenService:Create(
  1699. Title,
  1700. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1701. {TextColor3 = Color3.fromRGB(255,255,255)}
  1702. ):Play()
  1703. TweenService:Create(
  1704. ArrowIco,
  1705. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1706. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1707. ):Play()
  1708. TweenService:Create(
  1709. ArrowIco,
  1710. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1711. {ImageTransparency = .3}
  1712. ):Play()
  1713. TweenService:Create(
  1714. ArrowIco,
  1715. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1716. {Rotation = 0}
  1717. ):Play()
  1718. TweenService:Create(
  1719. Circle,
  1720. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1721. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1722. ):Play()
  1723. TweenService:Create(
  1724. CircleSmall,
  1725. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1726. {BackgroundTransparency = 1}
  1727. ):Play()
  1728. TweenService:Create(
  1729. Title,
  1730. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1731. {TextTransparency = 0.3}
  1732. ):Play()
  1733. wait(.4)
  1734. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1735. end)
  1736. if DropToggled == true then
  1737. Title.Text = Selected
  1738. Dropdown:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1739. TweenService:Create(
  1740. Title,
  1741. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1742. {TextColor3 = Color3.fromRGB(255,255,255)}
  1743. ):Play()
  1744. TweenService:Create(
  1745. ArrowIco,
  1746. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1747. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1748. ):Play()
  1749. TweenService:Create(
  1750. ArrowIco,
  1751. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1752. {ImageTransparency = .3}
  1753. ):Play()
  1754. TweenService:Create(
  1755. ArrowIco,
  1756. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1757. {Rotation = 0}
  1758. ):Play()
  1759. TweenService:Create(
  1760. Circle,
  1761. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1762. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1763. ):Play()
  1764. TweenService:Create(
  1765. CircleSmall,
  1766. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1767. {BackgroundTransparency = 1}
  1768. ):Play()
  1769. TweenService:Create(
  1770. Title,
  1771. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1772. {TextTransparency = 0.3}
  1773. ):Play()
  1774. wait(.4)
  1775. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1776. end
  1777. end
  1778. function DropFunc:Clear()
  1779. Title.Text = text
  1780. FrameSize = 0
  1781. ItemCount = 0
  1782. for i, v in next, DropItemHolder:GetChildren() do
  1783. if v.Name == "Item" then
  1784. v:Destroy()
  1785. end
  1786. end
  1787. if DropToggled == true then
  1788. Title.Text = Selected
  1789. Dropdown:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  1790. TweenService:Create(
  1791. Title,
  1792. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1793. {TextColor3 = Color3.fromRGB(255,255,255)}
  1794. ):Play()
  1795. TweenService:Create(
  1796. ArrowIco,
  1797. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1798. {ImageColor3 = Color3.fromRGB(255,255,255)}
  1799. ):Play()
  1800. TweenService:Create(
  1801. ArrowIco,
  1802. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1803. {ImageTransparency = .3}
  1804. ):Play()
  1805. TweenService:Create(
  1806. ArrowIco,
  1807. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1808. {Rotation = 0}
  1809. ):Play()
  1810. TweenService:Create(
  1811. Circle,
  1812. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1813. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  1814. ):Play()
  1815. TweenService:Create(
  1816. CircleSmall,
  1817. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1818. {BackgroundTransparency = 1}
  1819. ):Play()
  1820. TweenService:Create(
  1821. Title,
  1822. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1823. {TextTransparency = 0.3}
  1824. ):Play()
  1825. wait(.4)
  1826. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1827. end
  1828. end
  1829. return DropFunc
  1830. end
  1831. function ContainerContent:Colorpicker(text,preset,callback)
  1832. local ColorPickerToggled = false
  1833. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  1834. local OldColor = Color3.fromRGB(0, 0, 0)
  1835. local OldColorSelectionPosition = nil
  1836. local OldHueSelectionPosition = nil
  1837. local ColorH, ColorS, ColorV = 1, 1, 1
  1838. local RainbowColorPicker = false
  1839. local ColorPickerInput = nil
  1840. local ColorInput = nil
  1841. local HueInput = nil
  1842.  
  1843. local Colorpicker = Instance.new("Frame")
  1844. local ColorpickerCorner = Instance.new("UICorner")
  1845. local Title = Instance.new("TextLabel")
  1846. local Circle = Instance.new("Frame")
  1847. local CircleCorner = Instance.new("UICorner")
  1848. local CircleSmall = Instance.new("Frame")
  1849. local CircleSmallCorner = Instance.new("UICorner")
  1850. local Hue = Instance.new("ImageLabel")
  1851. local HueCorner = Instance.new("UICorner")
  1852. local HueGradient = Instance.new("UIGradient")
  1853. local HueSelection = Instance.new("ImageLabel")
  1854. local Color = Instance.new("ImageLabel")
  1855. local ColorCorner = Instance.new("UICorner")
  1856. local ColorSelection = Instance.new("ImageLabel")
  1857. local Toggle = Instance.new("TextLabel")
  1858. local ToggleFrame = Instance.new("Frame")
  1859. local ToggleFrameCorner = Instance.new("UICorner")
  1860. local ToggleCircle = Instance.new("Frame")
  1861. local ToggleCircleCorner = Instance.new("UICorner")
  1862. local Confirm = Instance.new("TextButton")
  1863. local ConfirmCorner = Instance.new("UICorner")
  1864. local ConfirmTitle = Instance.new("TextLabel")
  1865. local BoxColor = Instance.new("Frame")
  1866. local BoxColorCorner = Instance.new("UICorner")
  1867. local ColorpickerBtn = Instance.new("TextButton")
  1868. local ToggleBtn = Instance.new("TextButton")
  1869.  
  1870.  
  1871. Colorpicker.Name = "Colorpicker"
  1872. Colorpicker.Parent = Container
  1873. Colorpicker.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1874. Colorpicker.ClipsDescendants = true
  1875. Colorpicker.Position = UDim2.new(0.110937499, 0, 0.67653507, 0)
  1876. Colorpicker.Size = UDim2.new(0, 457, 0, 43)
  1877.  
  1878. ColorpickerCorner.CornerRadius = UDim.new(0, 4)
  1879. ColorpickerCorner.Name = "ColorpickerCorner"
  1880. ColorpickerCorner.Parent = Colorpicker
  1881.  
  1882. Title.Name = "Title"
  1883. Title.Parent = Colorpicker
  1884. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1885. Title.BackgroundTransparency = 1.000
  1886. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  1887. Title.Size = UDim2.new(0, 113, 0, 42)
  1888. Title.Font = Enum.Font.Gotham
  1889. Title.Text = "Colorpicker"
  1890. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1891. Title.TextSize = 15.000
  1892. Title.TextTransparency = 0.300
  1893. Title.TextXAlignment = Enum.TextXAlignment.Left
  1894.  
  1895.  
  1896. ColorpickerBtn.Name = "ColorpickerBtn"
  1897. ColorpickerBtn.Parent = Title
  1898. ColorpickerBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1899. ColorpickerBtn.BackgroundTransparency = 1.000
  1900. ColorpickerBtn.Position = UDim2.new(-0.336283177, 0, 0, 0)
  1901. ColorpickerBtn.Size = UDim2.new(0, 457, 0, 42)
  1902. ColorpickerBtn.Font = Enum.Font.SourceSans
  1903. ColorpickerBtn.Text = ""
  1904. ColorpickerBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1905. ColorpickerBtn.TextSize = 14.000
  1906.  
  1907. Circle.Name = "Circle"
  1908. Circle.Parent = Title
  1909. Circle.Active = true
  1910. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  1911. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  1912. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  1913. Circle.Size = UDim2.new(0, 11, 0, 11)
  1914.  
  1915. CircleCorner.CornerRadius = UDim.new(2, 6)
  1916. CircleCorner.Name = "CircleCorner"
  1917. CircleCorner.Parent = Circle
  1918.  
  1919. CircleSmall.Name = "CircleSmall"
  1920. CircleSmall.Parent = Circle
  1921. CircleSmall.Active = true
  1922. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  1923. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  1924. CircleSmall.BackgroundTransparency = 1.000
  1925. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  1926. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  1927.  
  1928. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  1929. CircleSmallCorner.Name = "CircleSmallCorner"
  1930. CircleSmallCorner.Parent = CircleSmall
  1931.  
  1932. Hue.Name = "Hue"
  1933. Hue.Parent = Title
  1934. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1935. Hue.Position = UDim2.new(0, 229, 0, 46)
  1936. Hue.Size = UDim2.new(0, 25, 0, 80)
  1937.  
  1938. HueCorner.CornerRadius = UDim.new(0, 3)
  1939. HueCorner.Name = "HueCorner"
  1940. HueCorner.Parent = Hue
  1941.  
  1942. HueGradient.Color = ColorSequence.new {
  1943. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1944. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1945. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1946. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1947. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1948. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1949. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1950. }
  1951. HueGradient.Rotation = 270
  1952. HueGradient.Name = "HueGradient"
  1953. HueGradient.Parent = Hue
  1954.  
  1955. HueSelection.Name = "HueSelection"
  1956. HueSelection.Parent = Hue
  1957. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1958. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1959. HueSelection.BackgroundTransparency = 1.000
  1960. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1961. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1962. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1963. HueSelection.Visible = false
  1964.  
  1965. Color.Name = "Color"
  1966. Color.Parent = Title
  1967. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1968. Color.Position = UDim2.new(0, -23, 0, 46)
  1969. Color.Size = UDim2.new(0, 246, 0, 80)
  1970. Color.ZIndex = 10
  1971. Color.Image = "rbxassetid://4155801252"
  1972.  
  1973. ColorCorner.CornerRadius = UDim.new(0, 3)
  1974. ColorCorner.Name = "ColorCorner"
  1975. ColorCorner.Parent = Color
  1976.  
  1977. ColorSelection.Name = "ColorSelection"
  1978. ColorSelection.Parent = Color
  1979. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1980. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1981. ColorSelection.BackgroundTransparency = 1.000
  1982. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1983. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1984. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1985. ColorSelection.ScaleType = Enum.ScaleType.Fit
  1986. ColorSelection.Visible = false
  1987.  
  1988. Toggle.Name = "Toggle"
  1989. Toggle.Parent = Title
  1990. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1991. Toggle.BackgroundTransparency = 1.000
  1992. Toggle.Position = UDim2.new(2.37430048, 0, 1.07157099, 0)
  1993. Toggle.Size = UDim2.new(0, 137, 0, 38)
  1994. Toggle.Font = Enum.Font.Gotham
  1995. Toggle.Text = "Rainbow"
  1996. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1997. Toggle.TextSize = 15.000
  1998. Toggle.TextTransparency = 0.300
  1999. Toggle.TextXAlignment = Enum.TextXAlignment.Left
  2000.  
  2001. ToggleFrame.Name = "ToggleFrame"
  2002. ToggleFrame.Parent = Toggle
  2003. ToggleFrame.BackgroundColor3 = Color3.fromRGB(226, 227, 227)
  2004. ToggleFrame.Position = UDim2.new(0.778387249, 0, 0.357142866, 0)
  2005. ToggleFrame.Size = UDim2.new(0, 27, 0, 11)
  2006.  
  2007. ToggleFrameCorner.Name = "ToggleFrameCorner"
  2008. ToggleFrameCorner.Parent = ToggleFrame
  2009.  
  2010. ToggleCircle.Name = "ToggleCircle"
  2011. ToggleCircle.Parent = ToggleFrame
  2012. ToggleCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2013. ToggleCircle.Position = UDim2.new(0, 0, -0.273000002, 0)
  2014. ToggleCircle.Selectable = true
  2015. ToggleCircle.Size = UDim2.new(0, 17, 0, 17)
  2016.  
  2017. ToggleCircleCorner.CornerRadius = UDim.new(2, 8)
  2018. ToggleCircleCorner.Name = "ToggleCircleCorner"
  2019. ToggleCircleCorner.Parent = ToggleCircle
  2020.  
  2021. Confirm.Name = "Confirm"
  2022. Confirm.Parent = Title
  2023. Confirm.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2024. Confirm.ClipsDescendants = true
  2025. Confirm.Position = UDim2.new(2.3791616, 0, 1.97633278, 0)
  2026. Confirm.Size = UDim2.new(0, 144, 0, 42)
  2027. Confirm.AutoButtonColor = false
  2028. Confirm.Font = Enum.Font.SourceSans
  2029. Confirm.Text = ""
  2030. Confirm.TextColor3 = Color3.fromRGB(0, 0, 0)
  2031. Confirm.TextSize = 14.000
  2032.  
  2033. ConfirmCorner.CornerRadius = UDim.new(0, 4)
  2034. ConfirmCorner.Name = "ConfirmCorner"
  2035. ConfirmCorner.Parent = Confirm
  2036.  
  2037. ConfirmTitle.Name = "ConfirmTitle"
  2038. ConfirmTitle.Parent = Confirm
  2039. ConfirmTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2040. ConfirmTitle.BackgroundTransparency = 1.000
  2041. ConfirmTitle.Size = UDim2.new(0, 116, 0, 40)
  2042. ConfirmTitle.Font = Enum.Font.Gotham
  2043. ConfirmTitle.Text = "Confirm"
  2044. ConfirmTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  2045. ConfirmTitle.TextSize = 15.000
  2046. ConfirmTitle.TextTransparency = 0.300
  2047. ConfirmTitle.TextXAlignment = Enum.TextXAlignment.Left
  2048.  
  2049. BoxColor.Name = "BoxColor"
  2050. BoxColor.Parent = Title
  2051. BoxColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2052. BoxColor.Position = UDim2.new(3.26915574, 0, 0.261904776, 0)
  2053. BoxColor.Size = UDim2.new(0, 35, 0, 19)
  2054.  
  2055. BoxColorCorner.CornerRadius = UDim.new(0, 4)
  2056. BoxColorCorner.Name = "BoxColorCorner"
  2057. BoxColorCorner.Parent = BoxColor
  2058.  
  2059. ToggleBtn.Name = "ToggleBtn"
  2060. ToggleBtn.Parent = Toggle
  2061. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2062. ToggleBtn.BackgroundTransparency = 1.000
  2063. ToggleBtn.Size = UDim2.new(0, 137, 0, 38)
  2064. ToggleBtn.Font = Enum.Font.SourceSans
  2065. ToggleBtn.Text = ""
  2066. ToggleBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  2067. ToggleBtn.TextSize = 14.000
  2068.  
  2069. ColorpickerBtn.MouseEnter:Connect(function()
  2070. TweenService:Create(
  2071. Title,
  2072. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2073. {TextTransparency = 0}
  2074. ):Play()
  2075. end)
  2076.  
  2077. ColorpickerBtn.MouseLeave:Connect(function()
  2078. TweenService:Create(
  2079. Title,
  2080. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2081. {TextTransparency = 0.3}
  2082. ):Play()
  2083. end)
  2084.  
  2085. ColorpickerBtn.MouseButton1Click:Connect(function()
  2086. if ColorPickerToggled == false then
  2087. ColorSelection.Visible = true
  2088. HueSelection.Visible = true
  2089. Colorpicker:TweenSize(UDim2.new(0, 457, 0, 138), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  2090. TweenService:Create(
  2091. Title,
  2092. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2093. {TextColor3 = PresetColor}
  2094. ):Play()
  2095. TweenService:Create(
  2096. Circle,
  2097. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2098. {BackgroundColor3 = PresetColor}
  2099. ):Play()
  2100. TweenService:Create(
  2101. CircleSmall,
  2102. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2103. {BackgroundTransparency = 0}
  2104. ):Play()
  2105. TweenService:Create(
  2106. Title,
  2107. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2108. {TextTransparency = 0}
  2109. ):Play()
  2110. wait(.4)
  2111. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2112. else
  2113. ColorSelection.Visible = false
  2114. HueSelection.Visible = false
  2115. Colorpicker:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  2116. TweenService:Create(
  2117. Title,
  2118. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2119. {TextColor3 = Color3.fromRGB(255,255,255)}
  2120. ):Play()
  2121. TweenService:Create(
  2122. Circle,
  2123. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2124. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  2125. ):Play()
  2126. TweenService:Create(
  2127. CircleSmall,
  2128. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2129. {BackgroundTransparency = 1}
  2130. ):Play()
  2131. TweenService:Create(
  2132. Title,
  2133. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2134. {TextTransparency = 0.3}
  2135. ):Play()
  2136. wait(.4)
  2137. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2138. end
  2139. ColorPickerToggled = not ColorPickerToggled
  2140. end)
  2141.  
  2142.  
  2143. local function UpdateColorPicker(nope)
  2144. BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  2145. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  2146.  
  2147. pcall(callback, BoxColor.BackgroundColor3)
  2148. end
  2149.  
  2150. ColorH =
  2151. 1 -
  2152. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  2153. Hue.AbsoluteSize.Y)
  2154. ColorS =
  2155. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  2156. Color.AbsoluteSize.X)
  2157. ColorV =
  2158. 1 -
  2159. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  2160. Color.AbsoluteSize.Y)
  2161.  
  2162. BoxColor.BackgroundColor3 = preset
  2163. Color.BackgroundColor3 = preset
  2164. pcall(callback, BoxColor.BackgroundColor3)
  2165.  
  2166. Color.InputBegan:Connect(
  2167. function(input)
  2168. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2169. if RainbowColorPicker then
  2170. return
  2171. end
  2172.  
  2173. if ColorInput then
  2174. ColorInput:Disconnect()
  2175. end
  2176.  
  2177. ColorInput =
  2178. RunService.RenderStepped:Connect(
  2179. function()
  2180. local ColorX =
  2181. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  2182. Color.AbsoluteSize.X)
  2183. local ColorY =
  2184. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  2185. Color.AbsoluteSize.Y)
  2186.  
  2187. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  2188. ColorS = ColorX
  2189. ColorV = 1 - ColorY
  2190.  
  2191. UpdateColorPicker(true)
  2192. end
  2193. )
  2194. end
  2195. end
  2196. )
  2197.  
  2198. Color.InputEnded:Connect(
  2199. function(input)
  2200. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2201. if ColorInput then
  2202. ColorInput:Disconnect()
  2203. end
  2204. end
  2205. end
  2206. )
  2207.  
  2208. Hue.InputBegan:Connect(
  2209. function(input)
  2210. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2211. if RainbowColorPicker then
  2212. return
  2213. end
  2214.  
  2215. if HueInput then
  2216. HueInput:Disconnect()
  2217. end
  2218.  
  2219. HueInput =
  2220. RunService.RenderStepped:Connect(
  2221. function()
  2222. local HueY =
  2223. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  2224. Hue.AbsoluteSize.Y)
  2225.  
  2226. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  2227. ColorH = 1 - HueY
  2228.  
  2229. UpdateColorPicker(true)
  2230. end
  2231. )
  2232. end
  2233. end
  2234. )
  2235.  
  2236. Hue.InputEnded:Connect(
  2237. function(input)
  2238. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2239. if HueInput then
  2240. HueInput:Disconnect()
  2241. end
  2242. end
  2243. end
  2244. )
  2245.  
  2246. ToggleBtn.MouseButton1Down:Connect(
  2247. function()
  2248. RainbowColorPicker = not RainbowColorPicker
  2249.  
  2250. if ColorInput then
  2251. ColorInput:Disconnect()
  2252. end
  2253.  
  2254. if HueInput then
  2255. HueInput:Disconnect()
  2256. end
  2257.  
  2258. if RainbowColorPicker then
  2259. ToggleCircle:TweenPosition(UDim2.new(0.37, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  2260. TweenService:Create(
  2261. ToggleCircle,
  2262. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2263. {BackgroundColor3 =PresetColor}
  2264. ):Play()
  2265.  
  2266. OldToggleColor = BoxColor.BackgroundColor3
  2267. OldColor = Color.BackgroundColor3
  2268. OldColorSelectionPosition = ColorSelection.Position
  2269. OldHueSelectionPosition = HueSelection.Position
  2270.  
  2271. while RainbowColorPicker do
  2272. BoxColor.BackgroundColor3 = Color3.fromHSV(Flux.RainbowColorValue, 1, 1)
  2273. Color.BackgroundColor3 = Color3.fromHSV(Flux.RainbowColorValue, 1, 1)
  2274.  
  2275. ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  2276. HueSelection.Position = UDim2.new(0.48, 0, 0, Flux.HueSelectionPosition)
  2277.  
  2278. pcall(callback, BoxColor.BackgroundColor3)
  2279. wait()
  2280. end
  2281. elseif not RainbowColorPicker then
  2282. ToggleCircle:TweenPosition(UDim2.new(0, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  2283. TweenService:Create(
  2284. ToggleCircle,
  2285. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2286. {BackgroundColor3 = Color3.fromRGB(255,255,255)}
  2287. ):Play()
  2288.  
  2289. BoxColor.BackgroundColor3 = OldToggleColor
  2290. Color.BackgroundColor3 = OldColor
  2291.  
  2292. ColorSelection.Position = OldColorSelectionPosition
  2293. HueSelection.Position = OldHueSelectionPosition
  2294.  
  2295. pcall(callback, BoxColor.BackgroundColor3)
  2296. end
  2297. end
  2298. )
  2299.  
  2300. Confirm.MouseButton1Click:Connect(
  2301. function()
  2302. ColorPickerToggled = not ColorPickerToggled
  2303. Colorpicker:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  2304. TweenService:Create(
  2305. Title,
  2306. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2307. {TextColor3 = Color3.fromRGB(255,255,255)}
  2308. ):Play()
  2309. TweenService:Create(
  2310. Circle,
  2311. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2312. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  2313. ):Play()
  2314. TweenService:Create(
  2315. CircleSmall,
  2316. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2317. {BackgroundTransparency = 1}
  2318. ):Play()
  2319. TweenService:Create(
  2320. Title,
  2321. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2322. {TextTransparency = 0.3}
  2323. ):Play()
  2324. wait(.4)
  2325. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2326. end
  2327. )
  2328. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2329. end
  2330. function ContainerContent:Line()
  2331. local Line = Instance.new("TextButton")
  2332. local LineCorner = Instance.new("UICorner")
  2333.  
  2334. Line.Name = "Line"
  2335. Line.Parent = Container
  2336. Line.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2337. Line.ClipsDescendants = true
  2338. Line.Position = UDim2.new(0, 0, 0.70091325, 0)
  2339. Line.Size = UDim2.new(0, 457, 0, 4)
  2340. Line.AutoButtonColor = false
  2341. Line.Font = Enum.Font.SourceSans
  2342. Line.Text = ""
  2343. Line.TextColor3 = Color3.fromRGB(0, 0, 0)
  2344. Line.TextSize = 14.000
  2345.  
  2346. LineCorner.CornerRadius = UDim.new(0, 4)
  2347. LineCorner.Name = "LineCorner"
  2348. LineCorner.Parent = Line
  2349.  
  2350. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2351. end
  2352. function ContainerContent:Label(text)
  2353. local Label = Instance.new("TextButton")
  2354. local LabelCorner = Instance.new("UICorner")
  2355. local Title = Instance.new("TextLabel")
  2356.  
  2357. Label.Name = "Label"
  2358. Label.Parent = Container
  2359. Label.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2360. Label.ClipsDescendants = true
  2361. Label.Position = UDim2.new(0.370312512, 0, 0.552631557, 0)
  2362. Label.Size = UDim2.new(0, 457, 0, 43)
  2363. Label.AutoButtonColor = false
  2364. Label.Font = Enum.Font.SourceSans
  2365. Label.Text = ""
  2366. Label.TextColor3 = Color3.fromRGB(0, 0, 0)
  2367. Label.TextSize = 14.000
  2368.  
  2369. LabelCorner.CornerRadius = UDim.new(0, 4)
  2370. LabelCorner.Name = "LabelCorner"
  2371. LabelCorner.Parent = Label
  2372.  
  2373. Title.Name = "Title"
  2374. Title.Parent = Label
  2375. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2376. Title.BackgroundTransparency = 1.000
  2377. Title.Position = UDim2.new(0.038480062, 0, 0, 0)
  2378. Title.Size = UDim2.new(0, 113, 0, 42)
  2379. Title.Font = Enum.Font.Gotham
  2380. Title.Text = text
  2381. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2382. Title.TextSize = 15.000
  2383. Title.TextTransparency = 0.300
  2384. Title.TextXAlignment = Enum.TextXAlignment.Left
  2385.  
  2386. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2387. end
  2388. function ContainerContent:Textbox(text,desc,disapper,callback)
  2389. if desc == "" then
  2390. desc = "There is no description for this textbox."
  2391. end
  2392. local TextboxDescToggled = false
  2393. local Textbox = Instance.new("TextButton")
  2394. local TextboxCorner = Instance.new("UICorner")
  2395. local Title = Instance.new("TextLabel")
  2396. local Circle = Instance.new("Frame")
  2397. local CircleCorner = Instance.new("UICorner")
  2398. local CircleSmall = Instance.new("Frame")
  2399. local CircleSmallCorner = Instance.new("UICorner")
  2400. local Description = Instance.new("TextLabel")
  2401. local TextboxFrame = Instance.new("Frame")
  2402. local TextboxFrameCorner = Instance.new("UICorner")
  2403. local TextBox = Instance.new("TextBox")
  2404. local ArrowBtn = Instance.new("ImageButton")
  2405. local ArrowIco = Instance.new("ImageLabel")
  2406.  
  2407. Textbox.Name = "Textbox"
  2408. Textbox.Parent = Container
  2409. Textbox.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2410. Textbox.ClipsDescendants = true
  2411. Textbox.Position = UDim2.new(0.0459499061, 0, 0.734449744, 0)
  2412. Textbox.Size = UDim2.new(0, 457, 0, 43)
  2413. Textbox.AutoButtonColor = false
  2414. Textbox.Font = Enum.Font.SourceSans
  2415. Textbox.Text = ""
  2416. Textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  2417. Textbox.TextSize = 14.000
  2418.  
  2419. TextboxCorner.CornerRadius = UDim.new(0, 4)
  2420. TextboxCorner.Name = "TextboxCorner"
  2421. TextboxCorner.Parent = Textbox
  2422.  
  2423. Title.Name = "Title"
  2424. Title.Parent = Textbox
  2425. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2426. Title.BackgroundTransparency = 1.000
  2427. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  2428. Title.Size = UDim2.new(0, 113, 0, 42)
  2429. Title.Font = Enum.Font.Gotham
  2430. Title.Text = text
  2431. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2432. Title.TextSize = 15.000
  2433. Title.TextTransparency = 0.300
  2434. Title.TextXAlignment = Enum.TextXAlignment.Left
  2435.  
  2436. Circle.Name = "Circle"
  2437. Circle.Parent = Title
  2438. Circle.Active = true
  2439. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  2440. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  2441. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  2442. Circle.Size = UDim2.new(0, 11, 0, 11)
  2443.  
  2444. CircleCorner.CornerRadius = UDim.new(2, 6)
  2445. CircleCorner.Name = "CircleCorner"
  2446. CircleCorner.Parent = Circle
  2447.  
  2448. CircleSmall.Name = "CircleSmall"
  2449. CircleSmall.Parent = Circle
  2450. CircleSmall.Active = true
  2451. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  2452. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2453. CircleSmall.BackgroundTransparency = 1.000
  2454. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  2455. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  2456.  
  2457. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  2458. CircleSmallCorner.Name = "CircleSmallCorner"
  2459. CircleSmallCorner.Parent = CircleSmall
  2460.  
  2461. Description.Name = "Description"
  2462. Description.Parent = Title
  2463. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2464. Description.BackgroundTransparency = 1.000
  2465. Description.Position = UDim2.new(-0.200942323, 0, 0.985714269, 0)
  2466. Description.Size = UDim2.new(0, 432, 0, 31)
  2467. Description.Font = Enum.Font.Gotham
  2468. Description.Text = desc
  2469. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  2470. Description.TextSize = 15.000
  2471. Description.TextTransparency = 1
  2472. Description.TextWrapped = true
  2473. Description.TextXAlignment = Enum.TextXAlignment.Left
  2474.  
  2475. TextboxFrame.Name = "TextboxFrame"
  2476. TextboxFrame.Parent = Title
  2477. TextboxFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59)
  2478. TextboxFrame.Position = UDim2.new(1.82300889, 0, 0.202380955, 0)
  2479. TextboxFrame.Size = UDim2.new(0, 161, 0, 26)
  2480.  
  2481. TextboxFrameCorner.CornerRadius = UDim.new(0, 4)
  2482. TextboxFrameCorner.Name = "TextboxFrameCorner"
  2483. TextboxFrameCorner.Parent = TextboxFrame
  2484.  
  2485. TextBox.Parent = TextboxFrame
  2486. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2487. TextBox.BackgroundTransparency = 1.000
  2488. TextBox.Size = UDim2.new(0, 161, 0, 26)
  2489. TextBox.Font = Enum.Font.Gotham
  2490. TextBox.Text = ""
  2491. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  2492. TextBox.TextSize = 15.000
  2493. TextBox.TextTransparency = 0.300
  2494.  
  2495. ArrowBtn.Name = "ArrowBtn"
  2496. ArrowBtn.Parent = Textbox
  2497. ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  2498. ArrowBtn.BackgroundTransparency = 1.000
  2499. ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0)
  2500. ArrowBtn.Size = UDim2.new(0, 33, 0, 37)
  2501. ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30)
  2502. ArrowBtn.SliceScale = 7.000
  2503.  
  2504. ArrowIco.Name = "ArrowIco"
  2505. ArrowIco.Parent = ArrowBtn
  2506. ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5)
  2507. ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2508. ArrowIco.BackgroundTransparency = 1.000
  2509. ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0)
  2510. ArrowIco.Selectable = true
  2511. ArrowIco.Size = UDim2.new(0, 28, 0, 24)
  2512. ArrowIco.Image = "http://www.roblox.com/asset/?id=6034818372"
  2513.  
  2514. TextBox.FocusLost:Connect(
  2515. function(ep)
  2516. if ep then
  2517. if #TextBox.Text > 0 then
  2518. pcall(callback, TextBox.Text)
  2519. if disapper then
  2520. TextBox.Text = ""
  2521. end
  2522. end
  2523. end
  2524. end
  2525. )
  2526.  
  2527. ArrowBtn.MouseButton1Click:Connect(function()
  2528. if TextboxDescToggled == false then
  2529. Textbox:TweenSize(UDim2.new(0, 457, 0, 81), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  2530. TweenService:Create(
  2531. Title,
  2532. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2533. {TextColor3 = PresetColor}
  2534. ):Play()
  2535. TweenService:Create(
  2536. ArrowIco,
  2537. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2538. {ImageColor3 = PresetColor}
  2539. ):Play()
  2540. TweenService:Create(
  2541. ArrowIco,
  2542. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2543. {ImageTransparency = 0}
  2544. ):Play()
  2545. TweenService:Create(
  2546. ArrowIco,
  2547. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2548. {Rotation = 180}
  2549. ):Play()
  2550. TweenService:Create(
  2551. Circle,
  2552. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2553. {BackgroundColor3 = PresetColor}
  2554. ):Play()
  2555. TweenService:Create(
  2556. CircleSmall,
  2557. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2558. {BackgroundTransparency = 0}
  2559. ):Play()
  2560. TweenService:Create(
  2561. Title,
  2562. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2563. {TextTransparency = 0}
  2564. ):Play()
  2565. TweenService:Create(
  2566. Description,
  2567. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2568. {TextTransparency = 0.3}
  2569. ):Play()
  2570. wait(.4)
  2571. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2572. else
  2573. Textbox:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  2574. TweenService:Create(
  2575. Title,
  2576. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2577. {TextColor3 = Color3.fromRGB(255,255,255)}
  2578. ):Play()
  2579. TweenService:Create(
  2580. ArrowIco,
  2581. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2582. {ImageColor3 = Color3.fromRGB(255,255,255)}
  2583. ):Play()
  2584. TweenService:Create(
  2585. ArrowIco,
  2586. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2587. {ImageTransparency = .3}
  2588. ):Play()
  2589. TweenService:Create(
  2590. ArrowIco,
  2591. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2592. {Rotation = 0}
  2593. ):Play()
  2594. TweenService:Create(
  2595. Circle,
  2596. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2597. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  2598. ):Play()
  2599. TweenService:Create(
  2600. CircleSmall,
  2601. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2602. {BackgroundTransparency = 1}
  2603. ):Play()
  2604. TweenService:Create(
  2605. Title,
  2606. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2607. {TextTransparency = 0.3}
  2608. ):Play()
  2609. TweenService:Create(
  2610. Description,
  2611. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2612. {TextTransparency = 1}
  2613. ):Play()
  2614. wait(.4)
  2615. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2616. end
  2617. TextboxDescToggled = not TextboxDescToggled
  2618. end)
  2619. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2620. end
  2621. function ContainerContent:Bind(text,presetbind,callback)
  2622. local Key = presetbind.Name
  2623. local Bind = Instance.new("TextButton")
  2624. local BindCorner = Instance.new("UICorner")
  2625. local Title = Instance.new("TextLabel")
  2626. local Circle = Instance.new("Frame")
  2627. local CircleCorner = Instance.new("UICorner")
  2628. local CircleSmall = Instance.new("Frame")
  2629. local CircleSmallCorner = Instance.new("UICorner")
  2630. local BindLabel = Instance.new("TextLabel")
  2631.  
  2632. Bind.Name = "Bind"
  2633. Bind.Parent = Container
  2634. Bind.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2635. Bind.ClipsDescendants = true
  2636. Bind.Position = UDim2.new(0.40625, 0, 0.828947306, 0)
  2637. Bind.Size = UDim2.new(0, 457, 0, 43)
  2638. Bind.AutoButtonColor = false
  2639. Bind.Font = Enum.Font.SourceSans
  2640. Bind.Text = ""
  2641. Bind.TextColor3 = Color3.fromRGB(0, 0, 0)
  2642. Bind.TextSize = 14.000
  2643.  
  2644. BindCorner.CornerRadius = UDim.new(0, 4)
  2645. BindCorner.Name = "BindCorner"
  2646. BindCorner.Parent = Bind
  2647.  
  2648. Title.Name = "Title"
  2649. Title.Parent = Bind
  2650. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2651. Title.BackgroundTransparency = 1.000
  2652. Title.Position = UDim2.new(0.0822437406, 0, 0, 0)
  2653. Title.Size = UDim2.new(0, 113, 0, 42)
  2654. Title.Font = Enum.Font.Gotham
  2655. Title.Text = text
  2656. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  2657. Title.TextSize = 15.000
  2658. Title.TextTransparency = 0.300
  2659. Title.TextXAlignment = Enum.TextXAlignment.Left
  2660.  
  2661. Circle.Name = "Circle"
  2662. Circle.Parent = Title
  2663. Circle.Active = true
  2664. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  2665. Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  2666. Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0)
  2667. Circle.Size = UDim2.new(0, 11, 0, 11)
  2668.  
  2669. CircleCorner.CornerRadius = UDim.new(2, 6)
  2670. CircleCorner.Name = "CircleCorner"
  2671. CircleCorner.Parent = Circle
  2672.  
  2673. CircleSmall.Name = "CircleSmall"
  2674. CircleSmall.Parent = Circle
  2675. CircleSmall.Active = true
  2676. CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5)
  2677. CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75)
  2678. CircleSmall.BackgroundTransparency = 1.000
  2679. CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0)
  2680. CircleSmall.Size = UDim2.new(0, 9, 0, 9)
  2681.  
  2682. CircleSmallCorner.CornerRadius = UDim.new(2, 6)
  2683. CircleSmallCorner.Name = "CircleSmallCorner"
  2684. CircleSmallCorner.Parent = CircleSmall
  2685.  
  2686. BindLabel.Name = "BindLabel"
  2687. BindLabel.Parent = Title
  2688. BindLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2689. BindLabel.BackgroundTransparency = 1.000
  2690. BindLabel.Position = UDim2.new(2.56011987, 0, 0, 0)
  2691. BindLabel.Size = UDim2.new(0, 113, 0, 42)
  2692. BindLabel.Font = Enum.Font.Gotham
  2693. BindLabel.Text = Key
  2694. BindLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  2695. BindLabel.TextSize = 15.000
  2696. BindLabel.TextTransparency = 0.300
  2697. BindLabel.TextXAlignment = Enum.TextXAlignment.Right
  2698.  
  2699. Bind.MouseEnter:Connect(function()
  2700. TweenService:Create(
  2701. Title,
  2702. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2703. {TextTransparency = 0}
  2704. ):Play()
  2705. end)
  2706.  
  2707. Bind.MouseLeave:Connect(function()
  2708. TweenService:Create(
  2709. Title,
  2710. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2711. {TextTransparency = 0.3}
  2712. ):Play()
  2713. end)
  2714.  
  2715. Bind.MouseButton1Click:connect(
  2716. function()
  2717. TweenService:Create(
  2718. Title,
  2719. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2720. {TextColor3 = PresetColor}
  2721. ):Play()
  2722. TweenService:Create(
  2723. BindLabel,
  2724. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2725. {TextColor3 = PresetColor}
  2726. ):Play()
  2727. TweenService:Create(
  2728. Circle,
  2729. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2730. {BackgroundColor3 = PresetColor}
  2731. ):Play()
  2732. TweenService:Create(
  2733. CircleSmall,
  2734. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2735. {BackgroundTransparency = 0}
  2736. ):Play()
  2737. TweenService:Create(
  2738. Title,
  2739. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2740. {TextTransparency = 0}
  2741. ):Play()
  2742. TweenService:Create(
  2743. BindLabel,
  2744. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2745. {TextTransparency = 0}
  2746. ):Play()
  2747. BindLabel.Text = "..."
  2748. local inputwait = game:GetService("UserInputService").InputBegan:wait()
  2749. if inputwait.KeyCode.Name ~= "Unknown" then
  2750. BindLabel.Text = inputwait .KeyCode.Name
  2751. Key = inputwait .KeyCode.Name
  2752. end
  2753. TweenService:Create(
  2754. Title,
  2755. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2756. {TextColor3 = Color3.fromRGB(255,255,255)}
  2757. ):Play()
  2758. TweenService:Create(
  2759. BindLabel,
  2760. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2761. {TextColor3 = Color3.fromRGB(255,255,255)}
  2762. ):Play()
  2763. TweenService:Create(
  2764. Circle,
  2765. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2766. {BackgroundColor3 = Color3.fromRGB(211, 211, 211)}
  2767. ):Play()
  2768. TweenService:Create(
  2769. CircleSmall,
  2770. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2771. {BackgroundTransparency = 1}
  2772. ):Play()
  2773. TweenService:Create(
  2774. Title,
  2775. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2776. {TextTransparency = 0.3}
  2777. ):Play()
  2778. TweenService:Create(
  2779. BindLabel,
  2780. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2781. {TextTransparency = 0.3}
  2782. ):Play()
  2783. end
  2784. )
  2785.  
  2786. game:GetService("UserInputService").InputBegan:connect(
  2787. function(current, pressed)
  2788. if not pressed then
  2789. if current.KeyCode.Name == Key then
  2790. pcall(callback)
  2791. end
  2792. end
  2793. end
  2794. )
  2795.  
  2796. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  2797. end
  2798. return ContainerContent
  2799. end
  2800. return Tabs
  2801. end
  2802. return Flux
Advertisement
Add Comment
Please, Sign In to add comment