unknownexploits

ayyyyyyyyyy u say something mate?

Mar 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 345.48 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local TweenService = game:GetService("TweenService")
  3.  
  4. local UI = Instance.new("ScreenGui")
  5. if syn and syn.protect_gui then
  6. syn.protect_gui(UI)
  7. elseif get_hidden_gui then
  8. UI.Parent = get_hidden_gui()
  9. else
  10. UI.Parent = game:GetService("CoreGui")
  11. end
  12.  
  13. local Holder = Instance.new("Frame")
  14. local TabPadding = Instance.new("UIPadding")
  15. local TabLayout = Instance.new("UIListLayout")
  16.  
  17. local Library = {
  18. Colors = {
  19. Body = Color3.fromRGB(35, 35, 35);
  20. Section = Color3.fromRGB(40, 40, 40);
  21. Button = Color3.fromRGB(45, 45, 45);
  22. ColorPickerMarker = Color3.fromRGB(150, 150, 150);
  23. SliderBackground = Color3.fromRGB(50, 50, 50);
  24. Slider = Color3.fromRGB(255, 255, 255);
  25. Dropdown = Color3.fromRGB(45, 45, 45);
  26. DropdownButton = Color3.fromRGB(35, 35, 35);
  27. DropdownButtonHover = Color3.fromRGB(45, 45, 45);
  28. Underline = Color3.fromRGB(235, 58, 58);
  29. Border = Color3.fromRGB(0, 0, 0);
  30. Text = Color3.fromRGB(255, 255, 255);
  31. PlaceholderText = Color3.fromRGB(255, 255, 255);
  32. };
  33.  
  34. Settings = {
  35. MainTextSize = 15;
  36. MainTweenTime = 1;
  37. RippleTweenTime = 1;
  38. CheckboxTweenTime = 0.5;
  39. ColorPickerTweenTime = 0.5;
  40. DropdownTweenTime = 0.5;
  41. DropdownButtonColorHoverTweenTime = 0.5;
  42. MainTextFont = Enum.Font.Code;
  43. UIToggleKey = Enum.KeyCode.RightControl;
  44. TweenEasingStyle = Enum.EasingStyle.Quart;
  45. }
  46. }
  47. do
  48. UI.Name = "UI"
  49. UI.Parent = game:GetService("CoreGui")
  50. UI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  51.  
  52. Holder.Name = "Holder"
  53. Holder.Parent = UI
  54. Holder.BackgroundColor3 = Color3.new(0, 0, 0)
  55. Holder.BackgroundTransparency = 1
  56. Holder.BorderColor3 = Color3.new(0, 0, 0)
  57. Holder.BorderSizePixel = 0
  58. Holder.Size = UDim2.new(0, 100, 0, 100)
  59.  
  60. TabPadding.Name = "TabPadding"
  61. TabPadding.Parent = Holder
  62. TabPadding.PaddingLeft = UDim.new(0, 25)
  63. TabPadding.PaddingTop = UDim.new(0, 50)
  64.  
  65. TabLayout.Name = "TabLayout"
  66. TabLayout.Parent = Holder
  67. TabLayout.SortOrder = Enum.SortOrder.LayoutOrder
  68. TabLayout.Padding = UDim.new(0, 5)
  69.  
  70. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  71. if gameProcessedEvent then return end
  72.  
  73. if input.KeyCode == Library.Settings.UIToggleKey then
  74. UI.Enabled = not UI.Enabled
  75. end
  76. end)
  77.  
  78. function Library:CreateTab(tabtitle, tabdescription)
  79. local TabName = Instance.new("TextButton")
  80. local TabNameBody = Instance.new("Frame")
  81. local BodyLayout = Instance.new("UIListLayout")
  82. local DescriptionHolder = Instance.new("Frame")
  83. local DescriptionText = Instance.new("TextLabel")
  84. local TabUnderline = Instance.new("Frame")
  85.  
  86. local IsATabOpen = false
  87. local BodyYSize = 0
  88.  
  89. TabName.Name = (tabtitle .. "Tab")
  90. TabName.Parent = Holder
  91. TabName.Text = tabtitle
  92. TabName.TextTransparency = 1
  93. TabName.BackgroundColor3 = Library.Colors.Body
  94. TabName.BackgroundTransparency = 1
  95. TabName.BorderColor3 = Library.Colors.Border
  96. TabName.BorderSizePixel = 0
  97. TabName.Position = UDim2.new(0.150000006, 0, 0.5, 0)
  98. TabName.Size = UDim2.new(0, 200, 0, 32)
  99. TabName.AutoButtonColor = false
  100. TabName.Font = Library.Settings.MainTextFont
  101. TabName.TextColor3 = Library.Colors.Text
  102. TabName.TextSize = Library.Settings.MainTextSize
  103.  
  104. TabNameBody.Name = (tabtitle .. "TabBody")
  105. TabNameBody.Parent = TabName
  106. TabNameBody.BackgroundColor3 = Library.Colors.Body
  107. TabNameBody.BackgroundTransparency = 0
  108. TabNameBody.BorderColor3 = Library.Colors.Border
  109. TabNameBody.BorderSizePixel = 0
  110. TabNameBody.ClipsDescendants = true
  111. TabNameBody.Position = UDim2.new(1.08000004, 0, 0, 0)
  112. TabNameBody.Size = UDim2.new(1, 0, 0, BodyYSize)
  113. TabNameBody.Visible = false
  114. TabNameBody.ZIndex = 2
  115.  
  116. local function ExtendBodySize(value)
  117. BodyYSize = BodyYSize + value
  118.  
  119. TweenService:Create(TabNameBody, TweenInfo.new(0.5, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0, BodyYSize)}):Play()
  120. end
  121.  
  122. local function UnExtendBodySize(value)
  123. BodyYSize = BodyYSize - value
  124.  
  125. TweenService:Create(TabNameBody, TweenInfo.new(0.5, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0, BodyYSize)}):Play()
  126. end
  127.  
  128. BodyLayout.Name = "BodyLayout"
  129. BodyLayout.Parent = TabNameBody
  130. BodyLayout.SortOrder = Enum.SortOrder.LayoutOrder
  131.  
  132. local TextBounds = game:GetService("TextService"):GetTextSize(tabdescription, Library.Settings.MainTextSize, Library.Settings.MainTextFont, Vector2.new(math.huge, math.huge))
  133.  
  134. DescriptionHolder.Name = (tabtitle .. "DescriptionHolder")
  135. DescriptionHolder.Parent = TabName
  136. DescriptionHolder.BackgroundColor3 = Library.Colors.Body
  137. DescriptionHolder.BorderColor3 = Library.Colors.Border
  138. DescriptionHolder.BorderSizePixel = 0
  139. DescriptionHolder.ClipsDescendants = true
  140. DescriptionHolder.Position = UDim2.new(1.08000004, 0, 0, 0)
  141. DescriptionHolder.Size = UDim2.new(0, 0, 0, 32)
  142.  
  143. DescriptionText.Name = (tabtitle .. "Description")
  144. DescriptionText.Parent = DescriptionHolder
  145. DescriptionText.BackgroundColor3 = Library.Colors.Border
  146. DescriptionText.BackgroundTransparency = 1
  147. DescriptionText.BorderColor3 = Library.Colors.Border
  148. DescriptionText.BorderSizePixel = 0
  149. DescriptionText.Size = UDim2.new(0, 200, 0, 32)
  150. DescriptionText.Font = Library.Settings.MainTextFont
  151. DescriptionText.Text = (" " .. tabdescription)
  152. DescriptionText.TextColor3 = Library.Colors.Text
  153. DescriptionText.TextSize = Library.Settings.MainTextSize
  154. DescriptionText.TextXAlignment = Enum.TextXAlignment.Left
  155.  
  156. TabUnderline.Name = (tabtitle .. "TabUnderline")
  157. TabUnderline.Parent = TabName
  158. TabUnderline.BackgroundColor3 = Library.Colors.Underline
  159. TabUnderline.BorderColor3 = Library.Colors.Border
  160. TabUnderline.BorderSizePixel = 0
  161. TabUnderline.Position = UDim2.new(0.5, 0, 0.938000023, 0)
  162. TabUnderline.Size = UDim2.new(0, 0, 0, 2)
  163. TabUnderline.ZIndex = 2
  164.  
  165. function TabIntro()
  166. TweenService:Create(TabName, TweenInfo.new(1, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  167. TweenService:Create(TabName, TweenInfo.new(1, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  168. end
  169.  
  170.  
  171. TabName.MouseButton1Down:Connect(function()
  172. RippleEffect(TabName)
  173. TweenService:Create(TabUnderline, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.938000023, 0), Size = UDim2.new(0, 0, 0, 2)}):Play()
  174. TweenService:Create(DescriptionHolder, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(1.08000004, 0, 0, 0), Size = UDim2.new(0, 0, 0, 32)}):Play()
  175.  
  176. if not IsATabOpen then
  177. IsATabOpen = true
  178. TabNameBody.Visible = true
  179. elseif IsATabOpen then
  180. IsATabOpen = false
  181. end
  182. end)
  183.  
  184. TabName.InputBegan:Connect(function(input)
  185. if input.UserInputType == Enum.UserInputType.MouseMovement then
  186. if IsATabOpen then
  187. return false
  188. elseif not IsATabOpen then
  189. TweenService:Create(TabUnderline, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0.9375, 0), Size = UDim2.new(0, 200, 0, 2)}):Play()
  190. TweenService:Create(DescriptionHolder, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(1.08000004, 0, 0, 0), Size = UDim2.new(0, TextBounds.X + 15, 0, 32)}):Play()
  191. end
  192. end
  193. end)
  194.  
  195. TabName.InputEnded:Connect(function(input)
  196. if input.UserInputType == Enum.UserInputType.MouseMovement then
  197. TweenService:Create(TabUnderline, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.938000023, 0), Size = UDim2.new(0, 0, 0, 2)}):Play()
  198. TweenService:Create(DescriptionHolder, TweenInfo.new(0.50, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(1.08000004, 0, 0, 0), Size = UDim2.new(0, 0, 0, 32)}):Play()
  199. end
  200. end)
  201.  
  202. TabIntro()
  203.  
  204. function RippleEffect(button)
  205. spawn(function()
  206. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  207. local RippleHolder = Instance.new("Frame")
  208. local RippleEffect = Instance.new("ImageLabel")
  209.  
  210. RippleHolder.Name = "RippleHolder"
  211. RippleHolder.Parent = button
  212. RippleHolder.BackgroundColor3 = Library.Colors.Border
  213. RippleHolder.BackgroundTransparency = 1
  214. RippleHolder.BorderColor3 = Library.Colors.Border
  215. RippleHolder.BorderSizePixel = 0
  216. RippleHolder.ClipsDescendants = true
  217. RippleHolder.Size = UDim2.new(0, 200, 0, 32)
  218.  
  219. RippleEffect.Name = "RippleEffect"
  220. RippleEffect.Parent = RippleHolder
  221. RippleEffect.BackgroundTransparency = 1
  222. RippleEffect.BorderSizePixel = 0
  223. RippleEffect.Image = "rbxassetid://2708891598"
  224. RippleEffect.ImageColor3 = Color3.fromRGB(255, 255, 255)
  225. RippleEffect.ImageTransparency = 0.8
  226. RippleEffect.ScaleType = Enum.ScaleType.Fit
  227.  
  228. RippleEffect.Position = UDim2.new((Mouse.X - RippleEffect.AbsolutePosition.X) / button.AbsoluteSize.X, 0, (Mouse.Y - RippleEffect.AbsolutePosition.Y) / button.AbsoluteSize.Y, 0)
  229. TweenService:Create(RippleEffect, TweenInfo.new(Library.Settings.RippleTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(-5.5, 0, -5.5, 0), Size = UDim2.new(12, 0, 12, 0)}):Play()
  230.  
  231. wait(0.5)
  232. TweenService:Create(RippleEffect, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  233.  
  234. wait(1)
  235. RippleHolder:Destroy()
  236. end)
  237. end
  238.  
  239. local Utilities = {}
  240.  
  241. function Utilities:CreateSection(sectionname)
  242. local SectionLabel = Instance.new("TextLabel")
  243.  
  244. SectionLabel.Name = (tabtitle .. "TabSection" .. sectionname)
  245. SectionLabel.Parent = TabNameBody
  246. SectionLabel.BackgroundColor3 = Library.Colors.Section
  247. SectionLabel.BorderColor3 = Library.Colors.Border
  248. SectionLabel.BorderSizePixel = 0
  249. SectionLabel.Size = UDim2.new(0, 200, 0, 30)
  250. SectionLabel.Font = Library.Settings.MainTextFont
  251. SectionLabel.Text = sectionname
  252. SectionLabel.TextColor3 = Library.Colors.Text
  253. SectionLabel.TextSize = Library.Settings.MainTextSize
  254.  
  255. TabName.MouseButton1Down:Connect(function()
  256. if not IsATabOpen then
  257. ExtendBodySize(30)
  258.  
  259. TweenService:Create(SectionLabel, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  260. TweenService:Create(SectionLabel, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  261. elseif IsATabOpen then
  262. UnExtendBodySize(30)
  263.  
  264. TweenService:Create(SectionLabel, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  265. TweenService:Create(SectionLabel, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  266. end
  267. end)
  268. end
  269.  
  270. function Utilities:CreateCheckbox(checkboxname, action)
  271. local CheckboxHolder = Instance.new("Frame")
  272. local CheckboxTitleText = Instance.new("TextLabel")
  273. local CheckboxButton = Instance.new("ImageButton")
  274. local ToggleAnimation = Instance.new("Frame")
  275.  
  276.  
  277. CheckboxHolder.Name = (checkboxname .. "CheckboxHolder")
  278. CheckboxHolder.Parent = TabNameBody
  279. CheckboxHolder.BackgroundColor3 = Library.Colors.Border
  280. CheckboxHolder.BackgroundTransparency = 1
  281. CheckboxHolder.BorderColor3 = Library.Colors.Border
  282. CheckboxHolder.BorderSizePixel = 0
  283. CheckboxHolder.Size = UDim2.new(0, 200, 0, 30)
  284.  
  285. CheckboxTitleText.Name = "CheckboxTitleText"
  286. CheckboxTitleText.Parent = CheckboxHolder
  287. CheckboxTitleText.BackgroundColor3 = Library.Colors.Border
  288. CheckboxTitleText.BackgroundTransparency = 1
  289. CheckboxTitleText.BorderColor3 = Library.Colors.Border
  290. CheckboxTitleText.BorderSizePixel = 0
  291. CheckboxTitleText.Position = UDim2.new(0.0350000001, 0, 0.112999983, 0)
  292. CheckboxTitleText.Size = UDim2.new(0, 146, 0, 25)
  293. CheckboxTitleText.Font = Library.Settings.MainTextFont
  294. CheckboxTitleText.Text = checkboxname
  295. CheckboxTitleText.TextColor3 = Color3.new(1, 1, 1)
  296. CheckboxTitleText.TextSize = Library.Settings.MainTextSize
  297. CheckboxTitleText.TextXAlignment = Enum.TextXAlignment.Left
  298.  
  299. CheckboxButton.Name = "CheckboxButton"
  300. CheckboxButton.Parent = CheckboxHolder
  301. CheckboxButton.BackgroundColor3 = Library.Colors.Body
  302. CheckboxButton.BorderColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  303. CheckboxButton.Position = UDim2.new(0.829999983, 0, 0.116999999, 0)
  304. CheckboxButton.Size = UDim2.new(0, 25, 0, 24)
  305. CheckboxButton.AutoButtonColor = false
  306. CheckboxButton.Image = "rbxassetid://1202200114"
  307.  
  308. ToggleAnimation.Name = "ToggleAnimation"
  309. ToggleAnimation.Parent = CheckboxHolder
  310. ToggleAnimation.BackgroundColor3 = Library.Colors.Body
  311. ToggleAnimation.BorderColor3 = Library.Colors.Border
  312. ToggleAnimation.BorderSizePixel = 0
  313. ToggleAnimation.Position = UDim2.new(0.829999983, 0, 0.116999999, 0)
  314. ToggleAnimation.Size = UDim2.new(0, 25, 0, 24)
  315.  
  316. CheckboxButton.MouseButton1Down:Connect(function()
  317. Enabled = not Enabled
  318.  
  319. if Enabled then
  320. TweenService:Create(ToggleAnimation, TweenInfo.new(Library.Settings.CheckboxTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(0.955, 0 , 0.117, 0), Size = UDim2.new(0, 0, 0, 24)}):Play()
  321. elseif not Enabled then
  322. TweenService:Create(ToggleAnimation, TweenInfo.new(Library.Settings.CheckboxTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(0.83, 0 , 0.117, 0), Size = UDim2.new(0, 25, 0, 24)}):Play()
  323. end
  324.  
  325. action(Enabled)
  326. end)
  327.  
  328. TabName.MouseButton1Down:Connect(function()
  329. if not IsATabOpen then
  330. ExtendBodySize(30)
  331.  
  332. TweenService:Create(ToggleAnimation, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  333. TweenService:Create(CheckboxTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  334. TweenService:Create(CheckboxButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  335. TweenService:Create(CheckboxButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  336. TweenService:Create(CheckboxButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
  337. elseif IsATabOpen then
  338. UnExtendBodySize(30)
  339.  
  340. TweenService:Create(ToggleAnimation, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  341. TweenService:Create(CheckboxTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  342. TweenService:Create(CheckboxButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  343. TweenService:Create(CheckboxButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  344. end
  345. end)
  346. end
  347.  
  348. function Utilities:CreateButton(buttonname, action)
  349. local Button = Instance.new("TextButton")
  350.  
  351. Button.Name = (buttonname .. "Button")
  352. Button.Parent = TabNameBody
  353. Button.BackgroundColor3 = Library.Colors.Button
  354. Button.BorderColor3 = Library.Colors.Border
  355. Button.BorderSizePixel = 0
  356. Button.ClipsDescendants = true
  357. Button.Size = UDim2.new(0, 200, 0, 30)
  358. Button.AutoButtonColor = false
  359. Button.Font = Library.Settings.MainTextFont
  360. Button.Text = buttonname
  361. Button.TextColor3 = Library.Colors.Text
  362. Button.TextSize = Library.Settings.MainTextSize
  363.  
  364. Button.MouseButton1Down:Connect(function()
  365. action()
  366. RippleEffect(Button)
  367. end)
  368.  
  369. TabName.MouseButton1Down:Connect(function()
  370. if not IsATabOpen then
  371. ExtendBodySize(30)
  372.  
  373. TweenService:Create(Button, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  374. TweenService:Create(Button, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  375. elseif IsATabOpen then
  376. UnExtendBodySize(30)
  377.  
  378. TweenService:Create(Button, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  379. TweenService:Create(Button, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  380. end
  381. end)
  382. end
  383.  
  384. function Utilities:CreateColorPicker(colorpickername, colorpickerpresetcolor, action)
  385. local ColorPickerHolder = Instance.new("Frame")
  386. local ColorPickerTitleText = Instance.new("TextLabel")
  387. local ColorPickerButton = Instance.new("TextButton")
  388. local ColorPickerMain = Instance.new("Frame")
  389. local ColorPallete = Instance.new("ImageLabel")
  390. local ColorPalleteMarker = Instance.new("ImageLabel")
  391. local ColorBrightness = Instance.new("ImageLabel")
  392. local ColorBrightnessMarker = Instance.new("Frame")
  393.  
  394. local HSD = false
  395. local VD = false
  396. local ColorPickerMainOpen = false
  397.  
  398. ColorPickerHolder.Name = (colorpickername .. "ColorPickerHolder")
  399. ColorPickerHolder.Parent = TabNameBody
  400. ColorPickerHolder.BackgroundColor3 = Library.Colors.Border
  401. ColorPickerHolder.BackgroundTransparency = 1
  402. ColorPickerHolder.BorderColor3 = Library.Colors.Border
  403. ColorPickerHolder.BorderSizePixel = 0
  404. ColorPickerHolder.Size = UDim2.new(0, 200, 0, 30)
  405.  
  406. ColorPickerTitleText.Name = "ColorPickerTitleText"
  407. ColorPickerTitleText.Parent = ColorPickerHolder
  408. ColorPickerTitleText.BackgroundColor3 = Library.Colors.Border
  409. ColorPickerTitleText.BackgroundTransparency = 1
  410. ColorPickerTitleText.BorderColor3 = Library.Colors.Border
  411. ColorPickerTitleText.BorderSizePixel = 0
  412. ColorPickerTitleText.Position = UDim2.new(0.0350000001, 0, 0.112999983, 0)
  413. ColorPickerTitleText.Size = UDim2.new(0, 146, 0, 25)
  414. ColorPickerTitleText.Font = Enum.Font.Code
  415. ColorPickerTitleText.Text = colorpickername
  416. ColorPickerTitleText.TextColor3 = Color3.new(1, 1, 1)
  417. ColorPickerTitleText.TextSize = Library.Settings.MainTextSize
  418. ColorPickerTitleText.TextXAlignment = Enum.TextXAlignment.Left
  419.  
  420. ColorPickerButton.Name = "ColorPickerButton"
  421. ColorPickerButton.Parent = ColorPickerHolder
  422. ColorPickerButton.BackgroundColor3 = colorpickerpresetcolor or Color3.fromRGB(255, 255, 255);
  423. ColorPickerButton.BorderColor3 = Library.Colors.Border
  424. ColorPickerButton.BorderSizePixel = 0
  425. ColorPickerButton.Position = UDim2.new(0.829999983, 0, 0.116999999, 0)
  426. ColorPickerButton.Size = UDim2.new(0, 25, 0, 24)
  427. ColorPickerButton.AutoButtonColor = false
  428. ColorPickerButton.Font = Library.Settings.MainTextFont
  429. ColorPickerButton.Text = ""
  430. ColorPickerButton.TextColor3 = Color3.new(255, 255, 255)
  431. ColorPickerButton.TextSize = Library.Settings.MainTextSize
  432.  
  433. ColorPickerMain.Name = "ColorPickerMain"
  434. ColorPickerMain.Parent = ColorPickerHolder
  435. ColorPickerMain.BackgroundColor3 = Library.Colors.Body
  436. ColorPickerMain.BorderColor3 = Library.Colors.Border
  437. ColorPickerMain.BorderSizePixel = 0
  438. ColorPickerMain.ClipsDescendants = true
  439. ColorPickerMain.Position = UDim2.new(0.995000005, 1, 0.116666667, 0)
  440. ColorPickerMain.Size = UDim2.new(0, 200, 0, 0)
  441.  
  442. ColorPallete.Name = "ColorPallete"
  443. ColorPallete.Parent = ColorPickerMain
  444. ColorPallete.BackgroundColor3 = Library.Colors.Border
  445. ColorPallete.BackgroundTransparency = 1
  446. ColorPallete.BorderColor3 = Library.Colors.Border
  447. ColorPallete.BorderSizePixel = 0
  448. ColorPallete.Position = UDim2.new(0, 5, 0, 4)
  449. ColorPallete.Size = UDim2.new(0, 149, 0, 151)
  450. ColorPallete.ZIndex = 2
  451. ColorPallete.Image = "rbxassetid://4477380641"
  452.  
  453. ColorPalleteMarker.Name = "ColorPalleteMarker"
  454. ColorPalleteMarker.Parent = ColorPallete
  455. ColorPalleteMarker.BackgroundColor3 = Library.Colors.Border
  456. ColorPalleteMarker.BackgroundTransparency = 1
  457. ColorPalleteMarker.BorderColor3 = Library.Colors.Border
  458. ColorPalleteMarker.BorderSizePixel = 0
  459. ColorPalleteMarker.Position = UDim2.new(colorpickerpresetcolor and select(1, Color3.toHSV(colorpickerpresetcolor)) or 0, 0, colorpickerpresetcolor and 1 - select(2, Color3.toHSV(colorpickerpresetcolor)) or 0, 0)
  460. ColorPalleteMarker.Size = UDim2.new(0, 0, 0.200000003, 0)
  461. ColorPalleteMarker.ZIndex = 2
  462. ColorPalleteMarker.Image = "rbxassetid://4409133510"
  463. ColorPalleteMarker.ScaleType = Enum.ScaleType.Crop
  464.  
  465. ColorBrightness.Name = "ColorBrightness"
  466. ColorBrightness.Parent = ColorPickerMain
  467. ColorBrightness.AnchorPoint = Vector2.new(1, 0)
  468. ColorBrightness.BackgroundColor3 = Library.Colors.Border
  469. ColorBrightness.BorderColor3 = Library.Colors.Border
  470. ColorBrightness.BorderSizePixel = 0
  471. ColorBrightness.Position = UDim2.new(0, 195, 0, 4)
  472. ColorBrightness.Size = UDim2.new(0, 34, 0, 151)
  473. ColorBrightness.ZIndex = 2
  474. ColorBrightness.Image = "rbxassetid://4477380092"
  475. ColorBrightness.ScaleType = Enum.ScaleType.Crop
  476.  
  477. ColorBrightnessMarker.Name = "ColorBrightnessMarker"
  478. ColorBrightnessMarker.Parent = ColorBrightness
  479. ColorBrightnessMarker.AnchorPoint = Vector2.new(0, 0.5)
  480. ColorBrightnessMarker.BackgroundColor3 = Library.Colors.ColorPickerMarker
  481. ColorBrightnessMarker.BorderColor3 = Library.Colors.Border
  482. ColorBrightnessMarker.BorderSizePixel = 0
  483. ColorBrightnessMarker.Position = UDim2.new(0, 0, 0.013245035, 0)
  484. ColorBrightnessMarker.Size = UDim2.new(1, 0, 0.0280000009, 0)
  485. ColorBrightnessMarker.ZIndex = 2
  486.  
  487. ColorPickerButton.MouseButton1Click:Connect(function()
  488. if not ColorPickerMainOpen then
  489. TabNameBody.ClipsDescendants = false
  490. ColorPickerMainOpen = true
  491.  
  492. TweenService:Create(ColorPickerMain, TweenInfo.new(Library.Settings.ColorPickerTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 200, 0, 160)}):Play()
  493. elseif ColorPickerMainOpen then
  494. ColorPickerMainOpen = false
  495. HSD = false
  496. VD = false
  497.  
  498. TweenService:Create(ColorPickerMain, TweenInfo.new(Library.Settings.ColorPickerTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 200, 0, 0)}):Play()
  499. end
  500. end)
  501.  
  502. ColorPallete.InputBegan:Connect(function(input)
  503. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  504. HSD = true
  505. end
  506. end)
  507.  
  508. ColorPallete.InputEnded:Connect(function(input)
  509. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  510. HSD = false
  511. end
  512. end)
  513.  
  514. ColorBrightness.InputBegan:Connect(function(input)
  515. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  516. VD = true
  517. end
  518. end)
  519.  
  520. ColorBrightness.InputEnded:Connect(function(input)
  521. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  522. VD = false
  523. end
  524. end)
  525.  
  526. game:GetService("UserInputService").InputChanged:Connect(function(input)
  527. if HSD and input.UserInputType == Enum.UserInputType.MouseMovement then
  528. ColorPalleteMarker.Position = UDim2.new(math.clamp((input.Position.X - ColorPallete.AbsolutePosition.X) / ColorPallete.AbsoluteSize.X, 0, 1), 0, math.clamp((input.Position.Y - ColorPallete.AbsolutePosition.Y) / ColorPallete.AbsoluteSize.Y, 0, 1), 0)
  529.  
  530. ColorPickerButton.BackgroundColor3 = Color3.fromHSV(ColorPalleteMarker.Position.X.Scale, 1 - ColorPalleteMarker.Position.Y.Scale, 1 - ColorBrightnessMarker.Position.Y.Scale)
  531.  
  532. action(ColorPickerButton.BackgroundColor3)
  533. elseif VD and input.UserInputType == Enum.UserInputType.MouseMovement then
  534. ColorBrightnessMarker.Position = UDim2.new(0, 0, math.clamp((input.Position.Y - ColorBrightness.AbsolutePosition.Y) / ColorBrightness.AbsoluteSize.Y, 0, 1), 0)
  535.  
  536. ColorPickerButton.BackgroundColor3 = Color3.fromHSV(ColorPalleteMarker.Position.X.Scale, 1 - ColorPalleteMarker.Position.Y.Scale, 1 - ColorBrightnessMarker.Position.Y.Scale)
  537.  
  538. action(ColorPickerButton.BackgroundColor3)
  539. end
  540. end)
  541.  
  542. TabName.MouseButton1Down:Connect(function()
  543. if not IsATabOpen then
  544. ExtendBodySize(30)
  545.  
  546. TweenService:Create(ColorPickerTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  547. TweenService:Create(ColorPickerButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  548. elseif IsATabOpen then
  549. UnExtendBodySize(30)
  550.  
  551. ColorPickerMainOpen = false
  552. HSD = false
  553. VD = false
  554. TabNameBody.ClipsDescendants = true
  555.  
  556. TweenService:Create(ColorPickerMain, TweenInfo.new(Library.Settings.ColorPickerTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 200, 0, 0)}):Play()
  557. TweenService:Create(ColorPickerTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  558. TweenService:Create(ColorPickerButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  559. end
  560. end)
  561. end
  562.  
  563. function Utilities:CreateSlider(slidername, minimumvalue, maximumvalue, startvalue, precisevalue, action)
  564. local SliderHolder = Instance.new("Frame")
  565. local SliderBackground = Instance.new("Frame")
  566. local SlidingSlider = Instance.new("Frame")
  567. local SliderTitleText = Instance.new("TextLabel")
  568. local SliderValueText = Instance.new("TextLabel")
  569.  
  570. local Dragging = false
  571. local PreciseSliderValue = precisevalue
  572.  
  573. SliderHolder.Name = (slidername .. "SliderHolder")
  574. SliderHolder.Parent = TabNameBody
  575. SliderHolder.BackgroundColor3 = Library.Colors.Border
  576. SliderHolder.BackgroundTransparency = 1
  577. SliderHolder.BorderColor3 = Library.Colors.Border
  578. SliderHolder.BorderSizePixel = 0
  579. SliderHolder.Size = UDim2.new(0, 200, 0, 35)
  580.  
  581. SliderBackground.Name = (slidername .. "SliderBackground")
  582. SliderBackground.Parent = SliderHolder
  583. SliderBackground.BackgroundColor3 = Library.Colors.SliderBackground
  584. SliderBackground.BorderColor3 = Library.Colors.Border
  585. SliderBackground.BorderSizePixel = 0
  586. SliderBackground.ClipsDescendants = true
  587. SliderBackground.Position = UDim2.new(0.0450000018, 0, 0.646000028, 0)
  588. SliderBackground.Size = UDim2.new(0, 182, 0, 5)
  589.  
  590. SlidingSlider.Name = (slidername .. "SlidingSlider")
  591. SlidingSlider.Parent = SliderBackground
  592. SlidingSlider.BackgroundColor3 = Library.Colors.Slider
  593. SlidingSlider.BorderColor3 = Library.Colors.Border
  594. SlidingSlider.BorderSizePixel = 0
  595. SlidingSlider.Position = UDim2.new(-0.00445053587, 0, 0, 0)
  596. SlidingSlider.Size = UDim2.new((startvalue or 0) / maximumvalue, 0, 0, 5)
  597.  
  598. SliderTitleText.Name = (slidername .. "SliderTitleText")
  599. SliderTitleText.Parent = SliderHolder
  600. SliderTitleText.BackgroundColor3 = Library.Colors.Border
  601. SliderTitleText.BackgroundTransparency = 1
  602. SliderTitleText.BorderColor3 = Library.Colors.Border
  603. SliderTitleText.BorderSizePixel = 0
  604. SliderTitleText.Position = UDim2.new(0.0350000001, 0, 0.112999983, 0)
  605. SliderTitleText.Size = UDim2.new(0, 146, 0, 14)
  606. SliderTitleText.Font = Library.Settings.MainTextFont
  607. SliderTitleText.Text = slidername
  608. SliderTitleText.TextColor3 = Library.Colors.Text
  609. SliderTitleText.TextSize = Library.Settings.MainTextSize
  610. SliderTitleText.TextXAlignment = Enum.TextXAlignment.Left
  611.  
  612. SliderValueText.Name = (slidername .. "SliderValueText")
  613. SliderValueText.Parent = SliderHolder
  614. SliderValueText.BackgroundColor3 = Library.Colors.Border
  615. SliderValueText.BackgroundTransparency = 1
  616. SliderValueText.BorderColor3 = Library.Colors.Border
  617. SliderValueText.BorderSizePixel = 0
  618. SliderValueText.Position = UDim2.new(0.829999983, 0, 0.11300005, 0)
  619. SliderValueText.Size = UDim2.new(0, 25, 0, 14)
  620. SliderValueText.Font = Library.Settings.MainTextFont
  621. SliderValueText.Text = tostring(startvalue or PreciseSliderValue and tonumber(string.format("%.2f", startvalue)))
  622. SliderValueText.TextColor3 = Library.Colors.Text
  623. SliderValueText.TextSize = Library.Settings.MainTextSize
  624. SliderValueText.TextXAlignment = Enum.TextXAlignment.Right
  625.  
  626. local function Sliding(input)
  627. local Pos = UDim2.new(math.clamp((input.Position.X - SliderBackground.AbsolutePosition.X) / SliderBackground.AbsoluteSize.X, 0, 1), 0, 1, 0)
  628. SlidingSlider.Size = Pos
  629.  
  630. local NonSliderPreciseValue = math.floor(((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue)
  631. local SliderPreciseValue = ((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue
  632.  
  633. local Value = (PreciseSliderValue and SliderPreciseValue or NonSliderPreciseValue)
  634. Value = tonumber(string.format("%.2f", Value))
  635.  
  636. SliderValueText.Text = tostring(Value)
  637. action(Value)
  638. end;
  639.  
  640. SliderBackground.InputBegan:Connect(function(input)
  641. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  642. Dragging = true
  643. end
  644. end)
  645.  
  646. SliderBackground.InputEnded:Connect(function(input)
  647. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  648. Dragging = false
  649. end
  650. end)
  651.  
  652. SliderBackground.InputBegan:Connect(function(input)
  653. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  654. Sliding(input)
  655. end
  656. end)
  657.  
  658. game:GetService("UserInputService").InputChanged:Connect(function(input)
  659. if Dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  660. Sliding(input)
  661. end
  662. end)
  663.  
  664. TabName.MouseButton1Down:Connect(function()
  665. if not IsATabOpen then
  666. ExtendBodySize(35)
  667.  
  668. TweenService:Create(SliderTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  669. TweenService:Create(SliderValueText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  670. TweenService:Create(SliderBackground, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  671. TweenService:Create(SlidingSlider, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  672. elseif IsATabOpen then
  673. UnExtendBodySize(35)
  674.  
  675. TweenService:Create(SliderTitleText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  676. TweenService:Create(SliderValueText, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  677. TweenService:Create(SliderBackground, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  678. TweenService:Create(SlidingSlider, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  679. end
  680. end)
  681. end
  682.  
  683. function Utilities:CreateDropdown(dropdownname, dropdownlistoptions, dropdownlistpresetnumber, action)
  684. local DropdownHolder = Instance.new("Frame")
  685. local SelectedOption = Instance.new("TextLabel")
  686. local DropdownButton = Instance.new("TextButton")
  687. local DropdownMain = Instance.new("Frame")
  688. local SelectionOrganizer = Instance.new("UIListLayout")
  689.  
  690. local DropdownYSize = 0
  691. local IsDropdownOpen = false
  692.  
  693. DropdownHolder.Name = (dropdownname .. "DropdownHolder")
  694. DropdownHolder.Parent = TabNameBody
  695. DropdownHolder.BackgroundColor3 = Library.Colors.Border
  696. DropdownHolder.BackgroundTransparency = 1
  697. DropdownHolder.BorderColor3 = Library.Colors.Border
  698. DropdownHolder.BorderSizePixel = 0
  699. DropdownHolder.Size = UDim2.new(0, 200, 0, 30)
  700.  
  701. SelectedOption.Name = (dropdownname .. "SelectedOption")
  702. SelectedOption.Parent = DropdownHolder
  703. SelectedOption.BackgroundColor3 = Library.Colors.Dropdown
  704. SelectedOption.BorderColor3 = Library.Colors.Border
  705. SelectedOption.BorderSizePixel = 0
  706. SelectedOption.Size = UDim2.new(0, 200, 0, 30)
  707. SelectedOption.Font = Library.Settings.MainTextFont
  708. SelectedOption.Text = dropdownlistoptions[dropdownlistpresetnumber]
  709. SelectedOption.TextColor3 = Library.Colors.Text
  710. SelectedOption.TextSize = Library.Settings.MainTextSize
  711.  
  712. DropdownButton.Name = (dropdownname .. "DropdownButton")
  713. DropdownButton.Parent = DropdownHolder
  714. DropdownButton.BackgroundColor3 = Library.Colors.Border
  715. DropdownButton.BackgroundTransparency = 1
  716. DropdownButton.BorderColor3 = Library.Colors.Border
  717. DropdownButton.BorderSizePixel = 0
  718. DropdownButton.Position = UDim2.new(0.829999983, 0, 0, 0)
  719. DropdownButton.Size = UDim2.new(0, 34, 0, 30)
  720. DropdownButton.ZIndex = 2
  721. DropdownButton.Font = Library.Settings.MainTextFont
  722. DropdownButton.Text = "v"
  723. DropdownButton.TextColor3 = Library.Colors.Text
  724. DropdownButton.TextSize = Library.Settings.MainTextSize
  725.  
  726. DropdownMain.Name = (dropdownname .. "DropdownMain")
  727. DropdownMain.Parent = DropdownHolder
  728. DropdownMain.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  729. DropdownMain.BorderColor3 = Library.Colors.Border
  730. DropdownMain.BorderSizePixel = 0
  731. DropdownMain.ClipsDescendants = true
  732. DropdownMain.Position = UDim2.new(0.995000005, 1, -0.0166666675, 0)
  733. DropdownMain.Size = UDim2.new(0, 185, 0, DropdownYSize)
  734.  
  735. SelectionOrganizer.Name = (dropdownname .. "SelectionOrganizer")
  736. SelectionOrganizer.Parent = DropdownMain
  737. SelectionOrganizer.SortOrder = Enum.SortOrder.LayoutOrder
  738.  
  739. for i, v in pairs(dropdownlistoptions) do
  740. local DropdownListOptionButton = Instance.new("TextButton")
  741.  
  742. DropdownListOptionButton.Name = (v .. "DropdownButton")
  743. DropdownListOptionButton.Parent = DropdownMain
  744. DropdownListOptionButton.BackgroundColor3 = Library.Colors.DropdownButton
  745. DropdownListOptionButton.BorderColor3 = Library.Colors.Border
  746. DropdownListOptionButton.BorderSizePixel = 0
  747. DropdownListOptionButton.Size = UDim2.new(0, 185, 0, 30)
  748. DropdownListOptionButton.AutoButtonColor = false
  749. DropdownListOptionButton.Font = Library.Settings.MainTextFont
  750. DropdownListOptionButton.Text = v;
  751. DropdownListOptionButton.TextColor3 = Library.Colors.Text
  752. DropdownListOptionButton.TextSize = Library.Settings.MainTextSize
  753.  
  754. DropdownYSize = DropdownYSize + 30
  755.  
  756. DropdownListOptionButton.InputBegan:Connect(function(input)
  757. if input.UserInputType == Enum.UserInputType.MouseMovement then
  758. TweenService:Create(DropdownListOptionButton, TweenInfo.new(Library.Settings.DropdownButtonColorHoverTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundColor3 = Library.Colors.DropdownButtonHover}):Play()
  759. end
  760. end)
  761.  
  762. DropdownListOptionButton.InputEnded:Connect(function(input)
  763. if input.UserInputType == Enum.UserInputType.MouseMovement then
  764. TweenService:Create(DropdownListOptionButton, TweenInfo.new(Library.Settings.DropdownButtonColorHoverTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundColor3 = Library.Colors.DropdownButton}):Play()
  765. end
  766. end)
  767.  
  768. DropdownListOptionButton.MouseButton1Click:Connect(function()
  769. action(v)
  770.  
  771. SelectedOption.Text = v;
  772.  
  773. TweenService:Create(DropdownMain, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 185, 0, 0)}):Play()
  774. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  775. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextColor3 = Library.Colors.Text}):Play()
  776.  
  777. IsDropdownOpen = false
  778. end)
  779. end
  780.  
  781. DropdownButton.MouseButton1Click:Connect(function()
  782. if IsDropdownOpen then
  783. TweenService:Create(DropdownMain, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 185, 0, 0)}):Play()
  784. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  785. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextColor3 = Library.Colors.Text}):Play()
  786.  
  787. IsDropdownOpen = false
  788. elseif not IsDropdownOpen then
  789. TabNameBody.ClipsDescendants = false
  790.  
  791. TweenService:Create(DropdownMain, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 185, 0, DropdownYSize)}):Play()
  792. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Rotation = -90}):Play()
  793. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(150, 150, 150)}):Play()
  794.  
  795. IsDropdownOpen = true
  796. end
  797. end)
  798.  
  799. TabName.MouseButton1Down:Connect(function()
  800. if not IsATabOpen then
  801. ExtendBodySize(30)
  802.  
  803. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  804. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  805. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 0}):Play()
  806. elseif IsATabOpen then
  807. UnExtendBodySize(30)
  808.  
  809. TabNameBody.ClipsDescendants = true
  810. IsDropdownOpen = false
  811.  
  812. TweenService:Create(DropdownMain, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Size = UDim2.new(0, 185, 0, 0)}):Play()
  813. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Rotation = 0}):Play()
  814. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.DropdownTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextColor3 = Library.Colors.Text}):Play()
  815. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  816. TweenService:Create(SelectedOption, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  817. TweenService:Create(DropdownButton, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
  818. end
  819. end)
  820. end
  821.  
  822. return Utilities;
  823. end
  824.  
  825. return Library;
  826. end
Add Comment
Please, Sign In to add comment