Advertisement
TankHandSome

Untitled

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