Advertisement
M0nkePr0

Flux Fix

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