joefromsansnite

Untitled

Oct 22nd, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.10 KB | None | 0 0
  1. local library = {}
  2.  
  3. function library:AddWindow(title)
  4. title = (type(title) ~= "string") and "Title" or title
  5.  
  6. local runService = game:GetService("RunService")
  7. local tweenService = game:GetService("TweenService")
  8. local userInputService = game:GetService("UserInputService")
  9. local marketPlaceService = game:GetService("MarketplaceService")
  10. local players = game:GetService("Players")
  11.  
  12. local gameId = game.PlaceId
  13.  
  14. local player = players.LocalPlayer
  15. local mouse = player:GetMouse()
  16.  
  17. local name, profilePicture = player.Name, players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  18. local gameName = (not runService:IsStudio()) and marketPlaceService:GetProductInfo(gameId).Name or "Game: Studio"
  19. local pages = 0
  20. local textureSpeed = 0.1
  21.  
  22. -- Gui
  23. local ScreenGui = Instance.new("ScreenGui")
  24. local Menu = Instance.new("Frame")
  25. local Background = Instance.new("Frame")
  26. local Tabs = Instance.new("ScrollingFrame")
  27. local UIListLayout = Instance.new("UIListLayout")
  28. local Frames = Instance.new("Frame")
  29. local PlayerInfo = Instance.new("Frame")
  30. local Profile = Instance.new("ImageLabel")
  31. local UICorner_5 = Instance.new("UICorner")
  32. local Name = Instance.new("TextLabel")
  33. local GameName = Instance.new("TextLabel")
  34. local Seperator_2 = Instance.new("Frame")
  35. local Dropshadow = Instance.new("Frame")
  36. local Dropshadow2 = Instance.new("Frame")
  37. local UIGradient = Instance.new("UIGradient")
  38. local Pattern = Instance.new("ImageLabel")
  39. local Exit = Instance.new("ImageButton")
  40. local Maximize = Instance.new("ImageButton")
  41. local Minimize = Instance.new("ImageButton")
  42. local Title = Instance.new("TextLabel")
  43. local UIPageLayout = Instance.new("UIPageLayout")
  44. local UIScale = Instance.new("UIScale")
  45. local UIGradient_2 = Instance.new("UIGradient")
  46. local UIScale_2 = Instance.new("UIScale")
  47. local UIGradient_3 = Instance.new("UIGradient")
  48.  
  49. ScreenGui.Name = "NewLibrary"
  50. ScreenGui.Parent = player.PlayerGui
  51. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  52. ScreenGui.ResetOnSpawn = false
  53.  
  54. Menu.Name = "Menu"
  55. Menu.Parent = ScreenGui
  56. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  57. Menu.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  58. Menu.BorderSizePixel = 0
  59. Menu.Position = UDim2.new(0.521222174, 0, 0.295204312, 0)
  60. Menu.Size = UDim2.new(0, 488, 0, 15)
  61.  
  62. UIScale.Parent = Menu
  63.  
  64. Background.Name = "Background"
  65. Background.Parent = Menu
  66. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  67. Background.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  68. Background.BorderSizePixel = 0
  69. Background.Position = UDim2.new(0.5, 0, 10, 0)
  70. Background.Size = UDim2.new(0, 488, 0, 270)
  71. Background.ClipsDescendants = true
  72.  
  73. UIScale_2.Parent = Background
  74.  
  75. Tabs.Name = "Tabs"
  76. Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  77. Tabs.Parent = Background
  78. Tabs.Active = true
  79. Tabs.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  80. Tabs.BorderSizePixel = 0
  81. Tabs.Position = UDim2.new(0.154, 0, 0.57, 0)
  82. Tabs.Size = UDim2.new(0, 150, 0, 230)
  83. Tabs.ScrollBarThickness = 8
  84. Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
  85. Tabs.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  86.  
  87. UIListLayout.Parent = Tabs
  88. UIListLayout.Padding = UDim.new(0, 0)
  89.  
  90. Frames.Name = "Frames"
  91. Frames.Parent = Background
  92. Frames.AnchorPoint = Vector2.new(0.5, 0.5)
  93. Frames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Frames.BackgroundTransparency = 1.000
  95. Frames.Position = UDim2.new(0.65368849, 0, 0.5, 0)
  96. Frames.Size = UDim2.new(0, 337, 0, 270)
  97. Frames.ClipsDescendants = true
  98.  
  99. UIPageLayout.Parent = Frames
  100.  
  101. PlayerInfo.Name = "PlayerInfo"
  102. PlayerInfo.Parent = Background
  103. PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
  104. PlayerInfo.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  105. PlayerInfo.BorderSizePixel = 0
  106. PlayerInfo.Position = UDim2.new(0.154, 0, 0.07, 0)
  107. PlayerInfo.Size = UDim2.new(0, 150, 0, 40)
  108.  
  109. Profile.Name = "Profile"
  110. Profile.Parent = PlayerInfo
  111. Profile.AnchorPoint = Vector2.new(0.5, 0.5)
  112. Profile.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. Profile.BackgroundTransparency = 0
  114. Profile.Position = UDim2.new(0.142, 0, 0.5, 0)
  115. Profile.Size = UDim2.new(0, 28, 0, 28)
  116. Profile.Image = profilePicture
  117. Profile.BorderSizePixel = 0
  118.  
  119. UICorner_5.CornerRadius = UDim.new(1, 0)
  120. UICorner_5.Parent = Profile
  121.  
  122. Name.Name = "Name"
  123. Name.AnchorPoint = Vector2.new(0.5, 0.5)
  124. Name.Parent = PlayerInfo
  125. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  126. Name.BackgroundTransparency = 1.000
  127. Name.Position = UDim2.new(0.624, 0, 0.232, 0)
  128. Name.Size = UDim2.new(0, 95, 0, 25)
  129. Name.Font = Enum.Font.SourceSansBold
  130. Name.Text = name
  131. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  132. Name.TextScaled = true
  133. Name.TextSize = 14.000
  134. Name.TextWrapped = true
  135. Name.TextXAlignment = Enum.TextXAlignment.Left
  136.  
  137. GameName.Name = "GameName"
  138. GameName.Parent = PlayerInfo
  139. GameName.AnchorPoint = Vector2.new(0.5, 0.5)
  140. GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  141. GameName.BackgroundTransparency = 1.000
  142. GameName.Position = UDim2.new(0.624, 0, 0.727, 0)
  143. GameName.Size = UDim2.new(0, 95, 0, 25)
  144. GameName.Font = Enum.Font.SourceSansLight
  145. GameName.Text = gameName
  146. GameName.TextColor3 = Color3.fromRGB(255, 255, 255)
  147. GameName.TextScaled = true
  148. GameName.TextSize = 14.000
  149. GameName.TextWrapped = true
  150. GameName.TextXAlignment = Enum.TextXAlignment.Left
  151.  
  152. Seperator_2.Name = "Seperator"
  153. Seperator_2.Parent = PlayerInfo
  154. Seperator_2.AnchorPoint = Vector2.new(0.5, 0.5)
  155. Seperator_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  156. Seperator_2.BackgroundTransparency = 0.750
  157. Seperator_2.BorderSizePixel = 0
  158. Seperator_2.Position = UDim2.new(0.624, 0, 0.5, 0)
  159. Seperator_2.Size = UDim2.new(0, 95, 0, 1)
  160.  
  161. UIGradient_2.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 1.00), NumberSequenceKeypoint.new(0.29, 0.10), NumberSequenceKeypoint.new(0.50, 0.00), NumberSequenceKeypoint.new(0.70, 0.09), NumberSequenceKeypoint.new(1.00, 1.00)}
  162. UIGradient_2.Parent = Seperator_2
  163.  
  164. Dropshadow.Name = "Dropshadow"
  165. Dropshadow.Parent = Background
  166. Dropshadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167. Dropshadow.BackgroundTransparency = 0.500
  168. Dropshadow.BorderSizePixel = 0
  169. Dropshadow.Position = UDim2.new(0.30737704, 0, 0, 0)
  170. Dropshadow.Size = UDim2.new(0, 14, 0, 269)
  171. Dropshadow.ZIndex = 0
  172.  
  173. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(13, 13, 13)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(13, 13, 13))}
  174. UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)}
  175. UIGradient.Parent = Dropshadow
  176.  
  177. Dropshadow2.Name = "Dropshadow2"
  178. Dropshadow2.Parent = Background
  179. Dropshadow2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  180. Dropshadow2.BackgroundTransparency = 0.500
  181. Dropshadow2.BorderSizePixel = 0
  182. Dropshadow2.Position = UDim2.new(0.30737704, 0, 0.718518496, 0)
  183. Dropshadow2.Size = UDim2.new(0, 338, 0, 75)
  184. Dropshadow2.Visible = false
  185.  
  186. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
  187. UIGradient_3.Rotation = -90
  188. UIGradient_3.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)}
  189. UIGradient_3.Parent = Dropshadow2
  190.  
  191. Pattern.Name = "Pattern"
  192. Pattern.Parent = Background
  193. Pattern.AnchorPoint = Vector2.new(0.5, 0.5)
  194. Pattern.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  195. Pattern.BackgroundTransparency = 1.000
  196. Pattern.Position = UDim2.new(0.5, 0, 0.5, 0)
  197. Pattern.Size = UDim2.new(-9999, 0, -9999, 0)
  198. Pattern.Visible = true
  199. Pattern.ZIndex = -1
  200. Pattern.Image = "rbxassetid://3899340539"
  201. Pattern.ScaleType = Enum.ScaleType.Tile
  202. Pattern.SliceCenter = Rect.new(0, 256, 0, 256)
  203. Pattern.TileSize = UDim2.new(0, 240, 0, 240)
  204. Pattern.ImageTransparency = 0.5
  205.  
  206. Exit.Name = "Exit"
  207. Exit.Parent = Menu
  208. Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  209. Exit.BackgroundTransparency = 1.000
  210. Exit.Position = UDim2.new(0.982222199, 0, 0.5, 0)
  211. Exit.Size = UDim2.new(0, 13, 0, 13)
  212. Exit.ImageColor3 = Color3.fromRGB(200, 200, 200)
  213. Exit.Image = "rbxassetid://7072725342"
  214.  
  215. Maximize.Name = "Maximize"
  216. Maximize.Parent = Menu
  217. Maximize.AnchorPoint = Vector2.new(0.5, 0.5)
  218. Maximize.BackgroundTransparency = 1.000
  219. Maximize.Position = UDim2.new(0.931111097, 0, 0.5, 0)
  220. Maximize.Size = UDim2.new(0, 13, 0, 13)
  221. Maximize.Image = "rbxassetid://7072718726"
  222. Maximize.ImageColor3 = Color3.fromRGB(200, 200, 200)
  223.  
  224. Minimize.Name = "Minimize"
  225. Minimize.Parent = Menu
  226. Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
  227. Minimize.BackgroundTransparency = 1.000
  228. Minimize.Position = UDim2.new(0.879888833, 0, 0.5, 0)
  229. Minimize.Size = UDim2.new(0, 13, 0, 13)
  230. Minimize.Image = "rbxassetid://7072719185"
  231. Minimize.ImageColor3 = Color3.fromRGB(200, 200, 200)
  232.  
  233. Title.Name = "Title"
  234. Title.Parent = Menu
  235. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  236. Title.BackgroundTransparency = 1.000
  237. Title.Size = UDim2.new(0, 420, 0, 15)
  238. Title.Font = Enum.Font.SourceSansBold
  239. Title.Text = title
  240. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  241. Title.TextScaled = true
  242. Title.TextSize = 14.000
  243. Title.TextWrapped = true
  244. Title.Selectable = true
  245. Title.ZIndex = 0
  246.  
  247. local function setDraggable()
  248. Menu.Active = true
  249. Menu.Draggable = true
  250. end
  251. local function backgroundAnimation()
  252. local distance = 0
  253.  
  254. runService.RenderStepped:Connect(function(dt)
  255. distance += dt*textureSpeed
  256.  
  257. if Pattern.Position.X.Scale >= 9999 or Pattern.Position.Y.Scale >= 9999 then -- Takes ~3 days to get to x 9999, y 9999 at this speed
  258. distance = -9999
  259. end
  260. Pattern.Position = UDim2.new(distance, 0, distance, 0)
  261. end)
  262. end
  263. local function scaleTween(uiScale, scale)
  264. local properties = {
  265. Scale = scale
  266. }
  267. local info = TweenInfo.new(.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false)
  268.  
  269. local tween = tweenService:Create(uiScale, info, properties)
  270.  
  271. return tween
  272. end
  273. local function onExit()
  274. local tween = scaleTween(UIScale, 0)
  275.  
  276. tween:Play()
  277.  
  278. tween.Completed:Wait()
  279. ScreenGui:Destroy()
  280. end
  281. local function onMaximize()
  282. local tween = scaleTween(UIScale_2, 1)
  283.  
  284. tween:Play()
  285. end
  286. local function onMinimize()
  287. local tween = scaleTween(UIScale_2, 0)
  288.  
  289. tween:Play()
  290. end
  291.  
  292. local function onEnterHighlight(ui)
  293. ui.ImageColor3 = Color3.fromRGB(255, 255, 255)
  294. end
  295. local function onLeaveHighlight(ui)
  296. ui.ImageColor3 = Color3.fromRGB(200, 200, 200)
  297. end
  298. local function ButtonClickEffect(parent)
  299. parent.ClipsDescendants = true
  300.  
  301. local mouseLocation = userInputService:GetMouseLocation()
  302. local absolutePosition = parent.AbsolutePosition
  303.  
  304. local effectXPosition = UDim2.new(0, mouseLocation.X-absolutePosition.X, 0, (mouseLocation.Y-absolutePosition.Y)-36)
  305.  
  306. local ButtonEffect = Instance.new("ImageLabel")
  307.  
  308. ButtonEffect.Name = "ButtonEffect"
  309. ButtonEffect.Parent = parent
  310. ButtonEffect.AnchorPoint = Vector2.new(0.5, 0.5)
  311. ButtonEffect.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  312. ButtonEffect.BackgroundTransparency = 1.000
  313. ButtonEffect.BorderSizePixel = 0
  314. ButtonEffect.Position = UDim2.new(0, 0, 0, 0)
  315. ButtonEffect.Size = UDim2.new(0, 25, 0, 25)
  316. ButtonEffect.Image = "rbxassetid://7658630902"
  317. ButtonEffect.ImageTransparency = 0.500
  318. ButtonEffect.Position = effectXPosition
  319.  
  320. ButtonEffect:TweenSize(UDim2.new(0, 200, 0, 200))
  321.  
  322. spawn(function()
  323. for i = 0.5, 1.05, 0.05 do
  324. ButtonEffect.ImageTransparency = i
  325. if i >= 1 then
  326. ButtonEffect:Destroy()
  327. end
  328. wait()
  329. end
  330. end)
  331. end
  332. local function DropdownEffect(parent, ui, itemType, visible, rot1, rot2)
  333. if parent ~= nil and itemType ~= nil then
  334. task.spawn(function()
  335. for i, v in pairs(parent:GetChildren()) do
  336. if v:IsA(itemType) then
  337. v.Visible = visible
  338. task.wait()
  339. end
  340. end
  341. end)
  342. end
  343.  
  344. local properties = (visible == true) and {
  345. Rotation = rot1
  346. } or {
  347. Rotation = rot2
  348. }
  349.  
  350. local info = TweenInfo.new(0.5)
  351. local tween = tweenService:Create(ui, info, properties)
  352.  
  353. tween:Play()
  354. end
  355.  
  356. local l2 = {}
  357.  
  358. function l2:Prompt(args)
  359. if player.PlayerGui:FindFirstChild("LIB_Prompt") then
  360. return
  361. end
  362. local title, text, duration = "Title", "Text.", 3
  363.  
  364. title = (args.Title == nil) and title or args.Title
  365. text = (args.Text == nil) and text or args.Text
  366. duration = (args.Duration == nil) and duration or args.Duration
  367.  
  368. local Prompt = Instance.new("ScreenGui")
  369. local BlackBackground = Instance.new("Frame")
  370. local Menu = Instance.new("Frame")
  371. local Title = Instance.new("TextLabel")
  372. local Background = Instance.new("Frame")
  373. local Description = Instance.new("TextLabel")
  374. local OkayButton = Instance.new("TextButton")
  375. local UICorner = Instance.new("UICorner")
  376. local Frame = Instance.new("Frame")
  377. local UICorner_2 = Instance.new("UICorner")
  378. local UIStroke = Instance.new("UIStroke")
  379.  
  380. Prompt.Name = "LIB_Prompt"
  381. Prompt.Parent = player.PlayerGui
  382. Prompt.Enabled = true
  383. Prompt.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  384.  
  385. BlackBackground.Name = "BlackBackground"
  386. BlackBackground.Parent = Prompt
  387. BlackBackground.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  388. BlackBackground.BackgroundTransparency = 0.500
  389. BlackBackground.BorderSizePixel = 0
  390. BlackBackground.Size = UDim2.new(10, 0, 10, 0)
  391. BlackBackground.ZIndex = -999999999
  392.  
  393. Menu.Name = "Menu"
  394. Menu.Parent = Prompt
  395. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  396. Menu.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  397. Menu.BorderSizePixel = 0
  398. Menu.Position = UDim2.new(0.5, 0, 2, 0)
  399. Menu.Size = UDim2.new(0, 350, 0, 15)
  400.  
  401. Title.Name = "Title"
  402. Title.Parent = Menu
  403. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  404. Title.BackgroundTransparency = 1.000
  405. Title.Position = UDim2.new(0.00303951371, 0, 0, 0)
  406. Title.Size = UDim2.new(0, 350, 0, 15)
  407. Title.Font = Enum.Font.SourceSansBold
  408. Title.Text = title
  409. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  410. Title.TextScaled = true
  411. Title.TextSize = 14.000
  412. Title.TextWrapped = true
  413.  
  414. Background.Name = "Background"
  415. Background.Parent = Menu
  416. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  417. Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  418. Background.BorderSizePixel = 0
  419. Background.ClipsDescendants = true
  420. Background.Position = UDim2.new(0.500805378, 0, 8.26666641, 0)
  421. Background.Size = UDim2.new(0, 350, 0, 218)
  422.  
  423. Description.Name = "Description"
  424. Description.Parent = Background
  425. Description.AnchorPoint = Vector2.new(0.5, 0.5)
  426. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  427. Description.BackgroundTransparency = 1.000
  428. Description.ClipsDescendants = true
  429. Description.Position = UDim2.new(0.5, 0, 0.389999986, 0)
  430. Description.Size = UDim2.new(0, 324, 0, 151)
  431. Description.Font = Enum.Font.SourceSansLight
  432. Description.Text = text
  433. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  434. Description.TextSize = 14.000
  435. Description.TextWrapped = true
  436. Description.TextYAlignment = Enum.TextYAlignment.Top
  437.  
  438. OkayButton.Name = "OkayButton"
  439. OkayButton.Parent = Background
  440. OkayButton.AnchorPoint = Vector2.new(0.5, 0.5)
  441. OkayButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  442. OkayButton.Position = UDim2.new(0.5, 0, 0.819000006, 0)
  443. OkayButton.Size = UDim2.new(0, 200, 0, 35)
  444. OkayButton.Font = Enum.Font.SourceSansLight
  445. OkayButton.Text = "Okay"
  446. OkayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  447. OkayButton.TextSize = 20.000
  448. OkayButton.TextWrapped = true
  449. OkayButton.AutoButtonColor = false
  450.  
  451. UICorner.Parent = OkayButton
  452.  
  453. Frame.Parent = OkayButton
  454. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  455. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  456. Frame.BackgroundTransparency = 1.000
  457. Frame.Position = UDim2.new(0.509506047, 0, 0.461233079, 0)
  458. Frame.Size = UDim2.new(0, 200, 0, 35)
  459.  
  460. UICorner_2.Parent = Frame
  461.  
  462. UIStroke.Parent = Frame
  463. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  464.  
  465. task.spawn(function()
  466. task.wait(duration)
  467. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  468. Prompt:Destroy()
  469. end)
  470. end)
  471.  
  472. Menu:TweenPosition(UDim2.new(0.5, 0, 0.35, 0))
  473.  
  474. OkayButton.MouseButton1Click:Connect(function()
  475. ButtonClickEffect(Frame)
  476. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  477. Prompt:Destroy()
  478. end)
  479. end)
  480. end
  481.  
  482. local function CreateContainer(parent, text, description)
  483. local Container = Instance.new("Frame")
  484. local Label = Instance.new("TextLabel")
  485. local Info = Instance.new("ImageLabel")
  486. local InfoMain = Instance.new("TextButton")
  487.  
  488. Container.Name = "Container"
  489. Container.Parent = parent
  490. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  491. Container.BackgroundTransparency = 1.000
  492. Container.Size = UDim2.new(0, 296, 0, 50)
  493. Container.AutomaticSize = Enum.AutomaticSize.Y
  494.  
  495. Label.Name = "Label"
  496. Label.Parent = Container
  497. Label.AnchorPoint = Vector2.new(0.5, 0.5)
  498. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  499. Label.BackgroundTransparency = 1.000
  500. Label.Position = UDim2.new(0.305000007, 0, 0.5, 0)
  501. Label.Size = UDim2.new(0, 110, 0, 25)
  502. Label.Font = Enum.Font.SourceSansBold
  503. Label.Text = text
  504. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  505. Label.TextScaled = true
  506. Label.TextSize = 25.000
  507. Label.TextWrapped = true
  508. Label.TextXAlignment = Enum.TextXAlignment.Left
  509.  
  510. Info.Name = "Info"
  511. Info.Parent = Container
  512. Info.AnchorPoint = Vector2.new(0.5, 0.5)
  513. Info.BackgroundTransparency = 1.000
  514. Info.Position = UDim2.new(0.0599999987, 0, 0.5, 0)
  515. Info.Size = UDim2.new(0, 20, 0, 20)
  516. Info.Image = "rbxassetid://7072717857"
  517. Info.ImageColor3 = Color3.fromRGB(200, 200, 200)
  518.  
  519. InfoMain.Name = "InfoMain"
  520. InfoMain.Parent = Info
  521. InfoMain.AnchorPoint = Vector2.new(0.5, 0.5)
  522. InfoMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  523. InfoMain.BackgroundTransparency = 1.000
  524. InfoMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  525. InfoMain.Size = UDim2.new(0, 15, 0, 15)
  526. InfoMain.AutoButtonColor = false
  527. InfoMain.Font = Enum.Font.SourceSans
  528. InfoMain.Text = ""
  529. InfoMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  530. InfoMain.TextSize = 14.000
  531.  
  532. Info.MouseEnter:Connect(function()
  533. onEnterHighlight(Info)
  534. end)
  535. Info.MouseLeave:Connect(function()
  536. onLeaveHighlight(Info)
  537. end)
  538. InfoMain.MouseButton1Click:Connect(function()
  539. l2:Prompt({
  540. Title = text,
  541. Text = description,
  542. Duration = 8
  543. })
  544. end)
  545. return Container
  546. end
  547.  
  548. function l2:AddTab(text, tabImage)
  549. -- Set Variables
  550. tabImage = (tabImage == nil) and "rbxassetid://3926305904" or tabImage
  551. text = (type(text) ~= "string") and "Tab" or text
  552.  
  553. pages += 1
  554.  
  555.  
  556. -- Gui
  557. local Tab = Instance.new("TextButton")
  558. local TabLabel = Instance.new("TextLabel")
  559. local tab = Instance.new("ImageLabel")
  560. local Seperator = Instance.new("Frame")
  561. local Page = Instance.new("ScrollingFrame")
  562. local UIListLayout = Instance.new("UIListLayout")
  563. local SectionOffset = Instance.new("Frame")
  564. local Highlight = Instance.new("ImageLabel")
  565.  
  566. Tab.Name = "Tab"
  567. Tab.Parent = Tabs
  568. Tab.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  569. Tab.BorderSizePixel = 0
  570. Tab.Size = UDim2.new(0, 150, 0, 40)
  571. Tab.Font = Enum.Font.SourceSansLight
  572. Tab.Text = ""
  573. Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  574. Tab.TextSize = 14.000
  575. Tab.TextWrapped = true
  576. Tab.AutoButtonColor = false
  577.  
  578. TabLabel.Name = "TabLabel"
  579. TabLabel.Parent = Tab
  580. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  581. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  582. TabLabel.BackgroundTransparency = 1.000
  583. TabLabel.Position = UDim2.new(0.6, 0, 0.5, 0)
  584. TabLabel.Size = UDim2.new(0, 100, 0, 18)
  585. TabLabel.Font = Enum.Font.SourceSansLight
  586. TabLabel.Text = text
  587. TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  588. TabLabel.TextSize = 14.000
  589. TabLabel.TextWrapped = true
  590. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  591. TabLabel.Font = Enum.Font.SourceSansSemibold
  592.  
  593. tab.Name = "tab"
  594. tab.Parent = Tab
  595. tab.AnchorPoint = Vector2.new(0.5, 0.5)
  596. tab.BackgroundTransparency = 1.000
  597. tab.Position = UDim2.new(0.15, 0, 0.5, 0)
  598. tab.Size = UDim2.new(0, 18, 0, 18)
  599. tab.ZIndex = 2
  600. tab.Image = tabImage
  601. tab.ImageRectOffset = Vector2.new(484, 484)
  602. tab.ImageRectSize = Vector2.new(36, 36)
  603. tab.ImageColor3 = Color3.fromRGB(200, 200, 200)
  604.  
  605. Seperator.Name = "Seperator"
  606. Seperator.Parent = Tab
  607. Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
  608. Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  609. Seperator.BackgroundTransparency = 1
  610. Seperator.BorderSizePixel = 0
  611. Seperator.Position = UDim2.new(0.5, 0, .99, 0)
  612. Seperator.Size = UDim2.new(0, 150, 0, 1)
  613. Seperator.ClipsDescendants = true
  614.  
  615. Highlight.Name = "Highlight"
  616. Highlight.Parent = Seperator
  617. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  618. Highlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  619. Highlight.BackgroundTransparency = 1.000
  620. Highlight.Position = UDim2.new(10, 0, 10, 0)
  621. Highlight.Size = UDim2.new(0, 125, 0, 125)
  622. Highlight.Image = "rbxassetid://1066722231"
  623. Highlight.ImageTransparency = 0.750
  624.  
  625. Page.Parent = Frames
  626. Page.Name = "Page"..(pages)
  627. Page.Active = true
  628. Page.AnchorPoint = Vector2.new(0.5, 0.5)
  629. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  630. Page.BackgroundTransparency = 1.000
  631. Page.BorderSizePixel = 0
  632. Page.Position = UDim2.new(-10.500741839, 0, 0.5, 0)
  633. Page.Size = UDim2.new(0, 337, 0, 270)
  634. Page.ScrollBarThickness = 8
  635. Page.CanvasSize = UDim2.new(0, 0, 0.5, 0)
  636. Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
  637. Page.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  638. Page.ElasticBehavior = Enum.ElasticBehavior.Always
  639.  
  640. UIListLayout.Parent = Page
  641. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  642. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  643. UIListLayout.Padding = UDim.new(0, 25)
  644.  
  645. SectionOffset.Name = "SectionOffset"
  646. SectionOffset.Parent = Page
  647. SectionOffset.BackgroundTransparency = 1.000
  648. SectionOffset.Position = UDim2.new(0, 0, 0, 0)
  649.  
  650.  
  651. -- Functions
  652. -- Set CanvasSize
  653. runService.RenderStepped:Connect(function() -- AutomaticCanvasSize Broken
  654. Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y)
  655. end)
  656.  
  657. -- Mouse Highlight Effect
  658. mouse.Move:Connect(function()
  659. local mousePosition = userInputService:GetMouseLocation()
  660.  
  661. Highlight.Position = UDim2.new(0, mousePosition.X - Seperator.AbsolutePosition.X, 0, mousePosition.Y - Seperator.AbsolutePosition.Y)
  662. end)
  663.  
  664. -- Jump To Page
  665. Tab.MouseButton1Click:Connect(function()
  666. ButtonClickEffect(Tab)
  667.  
  668. local pageName = Page.Name
  669. local pageIndex = string.gsub(pageName, "%D", "")
  670.  
  671. UIPageLayout:JumpToIndex(pageIndex-1)
  672. end)
  673.  
  674. -- Tab Highlight
  675. Tab.MouseEnter:Connect(function()
  676. onEnterHighlight(tab)
  677. end)
  678. Tab.MouseLeave:Connect(function()
  679. onLeaveHighlight(tab)
  680. end)
  681.  
  682.  
  683. -- Section
  684. local l3 = {}
  685.  
  686. function l3:AddSection(text)
  687. text = (type(text) ~= "string") and "Section" or text
  688.  
  689. local Section = Instance.new("Frame")
  690. local SectionLabel = Instance.new("TextLabel")
  691. local UIListLayout_3 = Instance.new("UIListLayout")
  692. local UIStroke = Instance.new("UIStroke")
  693.  
  694. Section.Name = "Section"
  695. Section.Parent = Page
  696. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  697. Section.BackgroundTransparency = 1.000
  698. Section.Position = UDim2.new(0.0608308613, 0, 0.0944444463, 0)
  699. Section.Size = UDim2.new(0, 296, 0, 50)
  700. Section.AutomaticSize = Enum.AutomaticSize.Y
  701.  
  702. UIStroke.Parent = Section
  703. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  704.  
  705. SectionLabel.Name = "Section"
  706. SectionLabel.Parent = Section
  707. SectionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  708. SectionLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  709. SectionLabel.BorderColor3 = Color3.fromRGB(25, 25, 25)
  710. SectionLabel.BorderSizePixel = 15
  711. SectionLabel.Position = UDim2.new(0, 0, 0, 0)
  712. SectionLabel.Size = UDim2.new(0, 0, 0, 0)
  713. SectionLabel.Font = Enum.Font.SourceSansBold
  714. SectionLabel.Text = text
  715. SectionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  716. SectionLabel.TextSize = 20
  717. SectionLabel.AutomaticSize = Enum.AutomaticSize.X
  718.  
  719. UIListLayout_3.Parent = Section
  720. UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
  721. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  722.  
  723. local l4 = {}
  724.  
  725. function l4:AddButton(text, description, callback)
  726. -- Set Variables
  727. text = (type(text) ~= "string") and "Button" or text
  728. description = (type(description) ~= "string") and "Description." or description
  729. callback = (type(callback) ~= "function") and function()
  730. print("Clicked!")
  731. end or callback
  732.  
  733.  
  734. -- Gui
  735. local Button = Instance.new("TextButton")
  736. local UICorner = Instance.new("UICorner")
  737. local UIStroke = Instance.new("UIStroke")
  738. local Frame = Instance.new("Frame")
  739. local UICorner_2 = Instance.new("UICorner")
  740. local Icon = Instance.new("ImageLabel")
  741. local Container = CreateContainer(Section, text, description)
  742.  
  743. Button.Name = "Button"
  744. Button.Parent = Container
  745. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  746. Button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  747. Button.BackgroundTransparency = 0
  748. Button.Position = UDim2.new(0.731304467, 0, 0.5, 0)
  749. Button.Size = UDim2.new(0, 144, 0, 32)
  750. Button.Font = Enum.Font.SourceSansLight
  751. Button.Text = ""
  752. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  753. Button.TextSize = 20.000
  754. Button.TextWrapped = true
  755. Button.AutoButtonColor = false
  756.  
  757. UICorner.Parent = Button
  758.  
  759. Frame.Parent = Button
  760. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  761. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  762. Frame.BackgroundTransparency = 1.000
  763. Frame.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  764. Frame.Size = UDim2.new(0, 144, 0, 32)
  765.  
  766. UICorner_2.Parent = Frame
  767.  
  768. UIStroke.Parent = Frame
  769. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  770.  
  771. Icon.Name = "Icon"
  772. Icon.Parent = Button
  773. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  774. Icon.BackgroundTransparency = 1.000
  775. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  776. Icon.Size = UDim2.new(0, 20, 0, 20)
  777. Icon.Image = "rbxassetid://7072719587"
  778. Icon.ImageColor3 = Color3.fromRGB(200, 200, 200)
  779.  
  780. -- Functions
  781. Button.MouseButton1Click:Connect(function()
  782. ButtonClickEffect(Frame)
  783. callback()
  784. end)
  785.  
  786. Button.MouseEnter:Connect(function()
  787. onEnterHighlight(Icon)
  788. end)
  789. Button.MouseLeave:Connect(function()
  790. onLeaveHighlight(Icon)
  791. end)
  792. end
  793. function l4:AddInput(text, description, callback)
  794. -- Set Variables
  795. text = (type(text) ~= "string") and "Input" or text
  796. description = (type(description) ~= "string") and "Description." or description
  797. callback = (type(callback) ~= "function") and function()
  798. print("Lost Focus!")
  799. end or callback
  800.  
  801.  
  802. -- Gui
  803. local Input = Instance.new("TextBox")
  804. local UICorner = Instance.new("UICorner")
  805. local UIStroke = Instance.new("UIStroke")
  806. local Outline = Instance.new("Frame")
  807. local UICorner_2 = Instance.new("UICorner")
  808. local Clipboard = Instance.new("ImageButton")
  809. local Container = CreateContainer(Section, text, description)
  810.  
  811. Input.Name = "Input"
  812. Input.Parent = Container
  813. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  814. Input.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  815. Input.Position = UDim2.new(0.731000006, 0, 0.5, 0)
  816. Input.Size = UDim2.new(0, 144, 0, 32)
  817. Input.ClearTextOnFocus = false
  818. Input.Font = Enum.Font.SourceSansLight
  819. Input.PlaceholderColor3 = Color3.fromRGB(200, 200, 200)
  820. Input.PlaceholderText = "Input"
  821. Input.Text = ""
  822. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  823. Input.TextSize = 14.000
  824. Input.TextWrapped = true
  825.  
  826. UICorner.Parent = Input
  827.  
  828. Outline.Parent = Input
  829. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  830. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  831. Outline.BackgroundTransparency = 1.000
  832. Outline.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  833. Outline.Size = UDim2.new(0, 144, 0, 32)
  834.  
  835. UICorner_2.Parent = Outline
  836.  
  837. UIStroke.Parent = Outline
  838. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  839.  
  840. Clipboard.Name = "Clipboard"
  841. Clipboard.Parent = Input
  842. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  843. Clipboard.BackgroundTransparency = 1.000
  844. Clipboard.Position = UDim2.new(0.925000012, 0, 0.409999996, 0)
  845. Clipboard.Size = UDim2.new(0, 17, 0, 17)
  846. Clipboard.Image = "rbxassetid://7072707198"
  847. Clipboard.ImageColor3 = Color3.fromRGB(200, 200, 200)
  848.  
  849. -- Functions
  850. Input.FocusLost:Connect(function()
  851. callback(Input.Text)
  852. end)
  853.  
  854. Clipboard.MouseEnter:Connect(function()
  855. onEnterHighlight(Clipboard)
  856. end)
  857. Clipboard.MouseLeave:Connect(function()
  858. onLeaveHighlight(Clipboard)
  859. end)
  860.  
  861. Clipboard.MouseButton1Click:Connect(function()
  862. if runService:IsStudio() then
  863. print("Copied: "..(Input.Text))
  864. return
  865. end
  866. setclipboard(Input.Text)
  867. end)
  868. end
  869. function l4:AddSlider(text, description, min, max, callback)
  870. -- Set Variables
  871. text = (type(text) ~= "string") and "Slider" or text
  872. description = (type(description) ~= "string") and "Description." or description
  873. min = (type(min) ~= "number") and 0 or min
  874. max = (type(max) ~= "number") and 10 or max
  875. callback = (type(callback) ~= "function") and function()
  876. print("Moved Slider!")
  877. end or callback
  878.  
  879. -- Variables
  880. local holding = false
  881. local selecting = false
  882.  
  883.  
  884. -- Gui
  885. local Slider = Instance.new("Frame")
  886. local UICorner = Instance.new("UICorner")
  887. local UIStroke = Instance.new("UIStroke")
  888. local Fill = Instance.new("Frame")
  889. local UICorner_2 = Instance.new("UICorner")
  890. local ValueLabel = Instance.new("TextLabel")
  891. local FillButton = Instance.new("Frame")
  892. local UICorner_3 = Instance.new("UICorner")
  893. local Container = CreateContainer(Section, text, description)
  894. local TransparentFillButton = Instance.new("TextButton")
  895.  
  896. Slider.Name = "Slider"
  897. Slider.Parent = Container
  898. Slider.AnchorPoint = Vector2.new(0.5, 0.5)
  899. Slider.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
  900. Slider.BackgroundTransparency = 1.000
  901. Slider.Position = UDim2.new(0.735, 0, 0.5, 0)
  902. Slider.Size = UDim2.new(0, 140, 0, 2)
  903.  
  904. UICorner.Parent = Slider
  905.  
  906. UIStroke.Parent = Slider
  907. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  908.  
  909. Fill.Name = "Fill"
  910. Fill.Parent = Slider
  911. Fill.AnchorPoint = Vector2.new(0.5, 0.5)
  912. Fill.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
  913. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  914. Fill.Size = UDim2.new(0, 1, 0, 4)
  915.  
  916. UICorner_2.Parent = Fill
  917.  
  918. ValueLabel.Name = "ValueLabel"
  919. ValueLabel.Parent = Slider
  920. ValueLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  921. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  922. ValueLabel.BackgroundTransparency = 1.000
  923. ValueLabel.Position = UDim2.new(0.5, 0, 8, 0)
  924. ValueLabel.Size = UDim2.new(0, 158, 0, 14)
  925. ValueLabel.Font = Enum.Font.SourceSansLight
  926. ValueLabel.Text = min
  927. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  928. ValueLabel.TextSize = 14.000
  929.  
  930. FillButton.Name = "FillButton"
  931. FillButton.Parent = Slider
  932. FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  933. FillButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
  934. FillButton.Position = UDim2.new(0, 0, 0.5, 0)
  935. FillButton.Size = UDim2.new(0, 8, 0, 16)
  936.  
  937. TransparentFillButton.Name = "TransparentFillButton"
  938. TransparentFillButton.Parent = Slider
  939. TransparentFillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  940. TransparentFillButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  941. TransparentFillButton.BackgroundTransparency = 1.000
  942. TransparentFillButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  943. TransparentFillButton.Size = UDim2.new(0, 140, 0, 16)
  944. TransparentFillButton.Font = Enum.Font.SourceSans
  945. TransparentFillButton.Text = ""
  946. TransparentFillButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  947. TransparentFillButton.TextSize = 14.000
  948.  
  949. UICorner_3.Parent = FillButton
  950.  
  951. TransparentFillButton.MouseButton1Down:Connect(function()
  952. holding = true
  953. end)
  954. TransparentFillButton.MouseButton1Up:Connect(function()
  955. holding = false
  956. end)
  957.  
  958. TransparentFillButton.MouseEnter:Connect(function()
  959. selecting = true
  960. end)
  961. TransparentFillButton.MouseLeave:Connect(function()
  962. selecting = false
  963. end)
  964.  
  965. runService.RenderStepped:Connect(function()
  966. FillButton.BackgroundColor3 = (selecting == true) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(0, 150, 255)
  967.  
  968. if holding then
  969. local mouseLocation = userInputService:GetMouseLocation()
  970. local xPos = (mouseLocation.X-Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
  971.  
  972. xPos = math.clamp(xPos, 0, 1)
  973.  
  974. local value = min + (xPos * (max-min))
  975.  
  976. ValueLabel.Text = tostring(math.round(value))
  977.  
  978. Fill.Size = UDim2.new(xPos, 0, 0, 6)
  979. Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
  980. FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
  981.  
  982. callback(value)
  983. end
  984. end)
  985. end
  986. function l4:AddToggle(text, description, callback)
  987. -- Set Variables
  988. text = (type(text) ~= "string") and "Toggle" or text
  989. description = (type(description) ~= "string") and "Description." or description
  990. callback = (type(callback) ~= "function") and function()
  991. print("Toggled!")
  992. end or callback
  993.  
  994.  
  995. -- Variables
  996. local toggled = false
  997. local debounce = false
  998.  
  999.  
  1000. -- Gui
  1001. local Toggle = Instance.new("Frame")
  1002. local UICorner = Instance.new("UICorner")
  1003. local UIStroke = Instance.new("UIStroke")
  1004. local ToggleButton = Instance.new("TextButton")
  1005. local UICorner_2 = Instance.new("UICorner")
  1006. local Container = CreateContainer(Section, text, description)
  1007.  
  1008. Toggle.Name = "Toggle"
  1009. Toggle.Parent = Container
  1010. Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  1011. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1012. Toggle.BackgroundTransparency = 1.000
  1013. Toggle.Position = UDim2.new(0.879, 0, 0.5, 0)
  1014. Toggle.Size = UDim2.new(0, 42, 0, 21)
  1015.  
  1016. UICorner.CornerRadius = UDim.new(1, 0)
  1017. UICorner.Parent = Toggle
  1018.  
  1019. UIStroke.Parent = Toggle
  1020. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1021.  
  1022. ToggleButton.Name = "ToggleButton"
  1023. ToggleButton.Parent = Toggle
  1024. ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1025. ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1026. ToggleButton.Position = UDim2.new(0.27, 0, 0.5, 0)
  1027. ToggleButton.Size = UDim2.new(0, 18, 0, 18)
  1028. ToggleButton.ZIndex = 1
  1029. ToggleButton.AutoButtonColor = false
  1030. ToggleButton.Font = Enum.Font.SourceSans
  1031. ToggleButton.Text = ""
  1032. ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1033. ToggleButton.TextSize = 14.000
  1034.  
  1035. UICorner_2.CornerRadius = UDim.new(1, 0)
  1036. UICorner_2.Parent = ToggleButton
  1037.  
  1038.  
  1039. -- Functions
  1040. ToggleButton.MouseButton1Click:Connect(function()
  1041. if debounce == false then
  1042. debounce = true
  1043.  
  1044. toggled = not toggled
  1045.  
  1046. local pos = (toggled == true) and UDim2.new(0.74, 0, 0.5, 0) or UDim2.new(0.27, 0, 0.5, 0)
  1047. local properties = (toggled == true) and {
  1048. BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  1049. } or {
  1050. BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1051. }
  1052.  
  1053. local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1054. local tween = tweenService:Create(ToggleButton, info, properties)
  1055.  
  1056. ToggleButton:TweenPosition(pos, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.75, false)
  1057. tween:Play()
  1058.  
  1059. callback(toggled)
  1060.  
  1061. task.wait(1)
  1062. debounce = false
  1063. end
  1064. end)
  1065. end
  1066. function l4:AddColorPicker(text, description, callback)
  1067. -- Set Variables
  1068. text = (type(text) ~= "string") and "Color Picker" or text
  1069. description = (type(description) ~= "string") and "Description." or description
  1070. callback = (type(callback) ~= "function") and function()
  1071. print("Picked Color!")
  1072. end or callback
  1073.  
  1074.  
  1075. -- Variables
  1076. local color = Color3.fromHSV(1, 1, 1)
  1077.  
  1078. local holdingHS = false
  1079. local holdingV = false
  1080.  
  1081.  
  1082. -- Gui
  1083. local ColorPicker = Instance.new("Frame")
  1084. local ColorPickerMain = Instance.new("ImageLabel")
  1085. local ColorPickerSelection = Instance.new("TextButton")
  1086. local ValueSelection = Instance.new("TextButton")
  1087. local ValuePickerMain = Instance.new("ImageLabel")
  1088. local CursorHS = Instance.new("ImageLabel")
  1089. local CursorV = Instance.new("ImageLabel")
  1090. local UIStroke = Instance.new("UIStroke")
  1091. local UIStroke_2 = Instance.new("UIStroke")
  1092. local UICorner = Instance.new("UICorner")
  1093. local UICorner_2 = Instance.new("UICorner")
  1094. local UIGradient = Instance.new("UIGradient")
  1095. local ColorValues = Instance.new("Frame")
  1096. local UIListLayout = Instance.new("UIListLayout")
  1097. local HSVLabel = Instance.new("TextLabel")
  1098. local RGBLabel = Instance.new("TextLabel")
  1099. local HEXLabel = Instance.new("TextLabel")
  1100. local Container = CreateContainer(Section, text, description)
  1101.  
  1102. ColorPicker.Name = "ColorPicker"
  1103. ColorPicker.Parent = Container
  1104. ColorPicker.AnchorPoint = Vector2.new(0.5, 0.5)
  1105. ColorPicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1106. ColorPicker.BackgroundTransparency = 1.000
  1107. ColorPicker.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1108. ColorPicker.Position = UDim2.new(0.75, 0, 1.05, 0)
  1109. ColorPicker.Size = UDim2.new(0, 130, 0, 80)
  1110.  
  1111. ColorPickerMain.Name = "ColorPickerMain"
  1112. ColorPickerMain.Parent = ColorPicker
  1113. ColorPickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1114. ColorPickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1115. ColorPickerMain.BorderSizePixel = 0
  1116. ColorPickerMain.Position = UDim2.new(0.414, 0, 0.5, 0)
  1117. ColorPickerMain.Size = UDim2.new(0, 100, 0, 75)
  1118. ColorPickerMain.Image = "rbxassetid://6320992248"
  1119.  
  1120. ColorPickerSelection.Parent = ColorPickerMain
  1121. ColorPickerSelection.BackgroundTransparency = 1
  1122. ColorPickerSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1123. ColorPickerSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1124. ColorPickerSelection.Size = UDim2.new(0, 140, 0, 80)
  1125. ColorPickerSelection.Text = ""
  1126.  
  1127. ValuePickerMain.Name = "ValuePickerMain"
  1128. ValuePickerMain.Parent = ColorPicker
  1129. ValuePickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1130. ValuePickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1131. ValuePickerMain.BorderSizePixel = 0
  1132. ValuePickerMain.LayoutOrder = 132
  1133. ValuePickerMain.Position = UDim2.new(0.957216084, 0, 0.5, 0)
  1134. ValuePickerMain.Size = UDim2.new(0, 15, 0, 75)
  1135.  
  1136. ValueSelection.Parent = ValuePickerMain
  1137. ValueSelection.BackgroundTransparency = 1
  1138. ValueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1139. ValueSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1140. ValueSelection.Size = UDim2.new(0, 15, 0, 80)
  1141. ValueSelection.Text = ""
  1142.  
  1143. UICorner_2.CornerRadius = UDim.new(0, 4)
  1144. UICorner_2.Parent = ValuePickerMain
  1145.  
  1146. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
  1147. UIGradient.Rotation = 90
  1148. UIGradient.Parent = ValuePickerMain
  1149.  
  1150. UIStroke_2.Parent = ValuePickerMain
  1151. UIStroke_2.Color = Color3.fromRGB(200, 200, 200)
  1152.  
  1153. CursorHS.Parent = ColorPickerMain
  1154. CursorHS.AnchorPoint = Vector2.new(0.5, 0.5)
  1155. CursorHS.Position = UDim2.new(0.5, 0, 0.5, 0)
  1156. CursorHS.Size = UDim2.new(0, 12, 0, 12)
  1157. CursorHS.BackgroundTransparency = 1
  1158. CursorHS.Image = "rbxassetid://7072707153"
  1159. CursorHS.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1160.  
  1161. CursorV.Parent = ValuePickerMain
  1162. CursorV.AnchorPoint = Vector2.new(0.5, 0.5)
  1163. CursorV.Position = UDim2.new(0.5, 0, 0.5, 0)
  1164. CursorV.Size = UDim2.new(0, 12, 0, 12)
  1165. CursorV.BackgroundTransparency = 1
  1166. CursorV.Image = "rbxassetid://7072707153"
  1167. CursorV.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1168.  
  1169. UICorner.CornerRadius = UDim.new(0, 4)
  1170. UICorner.Parent = ColorPickerMain
  1171.  
  1172. UIStroke.Parent = ColorPickerMain
  1173. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1174.  
  1175. ColorValues.Name = "ColorValues"
  1176. ColorValues.Parent = ColorPicker
  1177. ColorValues.AnchorPoint = Vector2.new(0.5, 0.5)
  1178. ColorValues.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1179. ColorValues.BackgroundTransparency = 1.000
  1180. ColorValues.Position = UDim2.new(-0.527472556, 0, 0.634970188, 0)
  1181. ColorValues.Size = UDim2.new(0, 115, 0, 56)
  1182.  
  1183. UIListLayout.Parent = ColorValues
  1184. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1185.  
  1186. HSVLabel.Name = "HSVLabel"
  1187. HSVLabel.Parent = ColorValues
  1188. HSVLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1189. HSVLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1190. HSVLabel.BackgroundTransparency = 1.000
  1191. HSVLabel.Position = UDim2.new(-0.515512824, 0, 0.857142866, 0)
  1192. HSVLabel.Size = UDim2.new(0, 110, 0, 18)
  1193. HSVLabel.Font = Enum.Font.SourceSansLight
  1194. HSVLabel.Text = "HSV: 360, 255, 255"
  1195. HSVLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1196. HSVLabel.TextScaled = true
  1197. HSVLabel.TextSize = 18.000
  1198. HSVLabel.TextWrapped = true
  1199. HSVLabel.TextXAlignment = Enum.TextXAlignment.Left
  1200.  
  1201. RGBLabel.Name = "RGBLabel"
  1202. RGBLabel.Parent = ColorValues
  1203. RGBLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1204. RGBLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1205. RGBLabel.BackgroundTransparency = 1.000
  1206. RGBLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
  1207. RGBLabel.Size = UDim2.new(0, 110, 0, 18)
  1208. RGBLabel.Font = Enum.Font.SourceSansLight
  1209. RGBLabel.Text = "RGB: 255, 255, 255"
  1210. RGBLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1211. RGBLabel.TextScaled = true
  1212. RGBLabel.TextSize = 18.000
  1213. RGBLabel.TextWrapped = true
  1214. RGBLabel.TextXAlignment = Enum.TextXAlignment.Left
  1215.  
  1216. HEXLabel.Name = "HEXLabel"
  1217. HEXLabel.Parent = ColorValues
  1218. HEXLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1219. HEXLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1220. HEXLabel.BackgroundTransparency = 1.000
  1221. HEXLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
  1222. HEXLabel.Size = UDim2.new(0, 110, 0, 18)
  1223. HEXLabel.Font = Enum.Font.SourceSansLight
  1224. HEXLabel.Text = "HEX: #FFFFFF"
  1225. HEXLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1226. HEXLabel.TextScaled = true
  1227. HEXLabel.TextSize = 18.000
  1228. HEXLabel.TextWrapped = true
  1229. HEXLabel.TextXAlignment = Enum.TextXAlignment.Left
  1230.  
  1231. ColorPickerSelection.MouseButton1Down:Connect(function()
  1232. holdingHS = true
  1233. end)
  1234. ColorPickerSelection.MouseButton1Up:Connect(function()
  1235. holdingHS = false
  1236. end)
  1237.  
  1238. ValueSelection.MouseButton1Down:Connect(function()
  1239. holdingV = true
  1240. end)
  1241. ValueSelection.MouseButton1Up:Connect(function()
  1242. holdingV = false
  1243. end)
  1244.  
  1245. runService.RenderStepped:Connect(function()
  1246. local mouseLocation = userInputService:GetMouseLocation()
  1247. local x, y = (mouseLocation.X - ColorPickerMain.AbsolutePosition.X)/ColorPickerMain.AbsoluteSize.X, (mouseLocation.Y - ColorPickerMain.AbsolutePosition.Y)/ColorPickerMain.AbsoluteSize.Y
  1248.  
  1249. if holdingHS and holdingV == false then
  1250. x = math.clamp(x, 0, 1)
  1251. y = math.clamp((y-.4), 0, 1)
  1252.  
  1253. CursorHS.Position = UDim2.new(x, 0, y, 0)
  1254.  
  1255. local h, s, v = Color3.toHSV(color)
  1256. local newColor = Color3.fromHSV(x, 1 - y, v)
  1257.  
  1258. color = newColor
  1259.  
  1260. callback(color)
  1261. end
  1262. if holdingV and holdingHS == false then
  1263. y = math.clamp((y-.4), 0, 1)
  1264.  
  1265. CursorV.Position = UDim2.new(0.5, 0, y, 0)
  1266.  
  1267. local h, s, v = Color3.toHSV(color)
  1268.  
  1269. local newColor = Color3.fromHSV(h, s, 1 - y)
  1270.  
  1271. color = newColor
  1272.  
  1273. callback(color)
  1274. end
  1275.  
  1276. local h, s, v = Color3.toHSV(color)
  1277. local r, g, b = color.R, color.G, color.B
  1278. local hex = string.format("#%02X%02X%02X", r*255, g*255, b*255)
  1279.  
  1280. h, s, v = math.floor(h * 10) / 10, math.floor(s * 10) / 10, math.floor(v * 10) / 10
  1281. r, g, b = math.floor(r * 10), math.floor(g * 10), math.floor(b * 10)
  1282.  
  1283. RGBLabel.Text = "RGB: "..(r*25)..", "..(g*25)..", "..(b*25)
  1284. HSVLabel.Text = "HSV: "..(h*360)..", "..(s*255)..", "..(v*255)
  1285. HEXLabel.Text = "HEX: "..(hex)
  1286. end)
  1287. end
  1288. function l4:AddDropdown(text, description, items, callback)
  1289. text = (type(text) ~= "string") and "Dropdown" or text
  1290. description = (type(description) ~= "string") and "Description" or description
  1291. items = (type(items) ~= "table") and {} or items
  1292. callback = (type(callback) ~= "function") and function()
  1293. print("Selected item")
  1294. end or callback
  1295.  
  1296. local visible = true
  1297.  
  1298.  
  1299. local Dropdown = Instance.new("Frame")
  1300. local UICorner = Instance.new("UICorner")
  1301. local TextLabel = Instance.new("TextLabel")
  1302. local navigate_next = Instance.new("ImageButton")
  1303. local ScrollingFrame = Instance.new("ScrollingFrame")
  1304. local UIListLayout = Instance.new("UIListLayout")
  1305. local UIStroke = Instance.new("UIStroke")
  1306. local Container = CreateContainer(Section, text, description)
  1307. local ContainerLabel = Container.Label
  1308. local ContainerIcon = Container.Info
  1309.  
  1310. ContainerLabel.Position = UDim2.new(0.305, 0, 0.205, 0)
  1311. ContainerIcon.Position = UDim2.new(0.06, 0, 0.205, 0)
  1312.  
  1313. Container.AutomaticSize = Enum.AutomaticSize.None
  1314. Container.Size = UDim2.new(0, 295, 0, 122)
  1315.  
  1316. Dropdown.Name = "Dropdown"
  1317. Dropdown.Parent = Container
  1318. Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  1319. Dropdown.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1320. Dropdown.BorderSizePixel = 0
  1321. Dropdown.Position = UDim2.new(0.748000026, 0, 0.550000012, 0)
  1322. Dropdown.Size = UDim2.new(0, 140, 0, 100)
  1323.  
  1324. UICorner.Parent = Dropdown
  1325.  
  1326. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1327. UIStroke.Parent = Dropdown
  1328.  
  1329. TextLabel.Parent = Dropdown
  1330. TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1331. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1332. TextLabel.BackgroundTransparency = 1.000
  1333. TextLabel.Position = UDim2.new(0.642857134, 0, 0.0800000131, 0)
  1334. TextLabel.Size = UDim2.new(0, 100, 0, 15)
  1335. TextLabel.Font = Enum.Font.SourceSansLight
  1336. TextLabel.Text = "Selected: nil"
  1337. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1338. TextLabel.TextScaled = true
  1339. TextLabel.TextSize = 15.000
  1340. TextLabel.TextWrapped = true
  1341. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1342.  
  1343. navigate_next.Name = "navigate_next"
  1344. navigate_next.Parent = Dropdown
  1345. navigate_next.AnchorPoint = Vector2.new(0.5, 0.5)
  1346. navigate_next.BackgroundTransparency = 1.000
  1347. navigate_next.LayoutOrder = 13
  1348. navigate_next.Position = UDim2.new(0.0857142881, 0, 0.0800000131, 0)
  1349. navigate_next.Size = UDim2.new(0, 17, 0, 17)
  1350. navigate_next.ZIndex = 2
  1351. navigate_next.Image = "rbxassetid://3926305904"
  1352. navigate_next.ImageRectOffset = Vector2.new(444, 844)
  1353. navigate_next.ImageRectSize = Vector2.new(36, 36)
  1354.  
  1355. ScrollingFrame.Parent = Dropdown
  1356. ScrollingFrame.Active = true
  1357. ScrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  1358. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1359. ScrollingFrame.BackgroundTransparency = 1.000
  1360. ScrollingFrame.BorderSizePixel = 0
  1361. ScrollingFrame.Position = UDim2.new(0.5, 0, 0.623749971, 0)
  1362. ScrollingFrame.Size = UDim2.new(0, 140, 0, 75)
  1363. ScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1364.  
  1365. UIListLayout.Parent = ScrollingFrame
  1366. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1367. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1368.  
  1369. for _, item in pairs(items) do
  1370. item = (typeof(item) == "Instance") and item.Name or item
  1371.  
  1372. local Item = Instance.new("TextButton")
  1373. local UICorner_2 = Instance.new("UICorner")
  1374. local ButtonLabel = Instance.new("TextLabel")
  1375.  
  1376. Item.Name = "Item"
  1377. Item.Parent = ScrollingFrame
  1378. Item.AnchorPoint = Vector2.new(0.5, 0.5)
  1379. Item.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  1380. Item.Position = UDim2.new(0.5, 0, 0.150000006, 0)
  1381. Item.Size = UDim2.new(0, 140, 0, 30)
  1382. Item.AutoButtonColor = false
  1383. Item.Font = Enum.Font.SourceSansLight
  1384. Item.Text = ""
  1385. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1386. Item.TextScaled = true
  1387. Item.TextSize = 14.000
  1388. Item.TextWrapped = true
  1389.  
  1390. UICorner_2.Parent = Item
  1391.  
  1392. ButtonLabel.Name = "ButtonLabel"
  1393. ButtonLabel.Parent = Item
  1394. ButtonLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1395. ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1396. ButtonLabel.BackgroundTransparency = 1.000
  1397. ButtonLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  1398. ButtonLabel.Size = UDim2.new(0, 140, 0, 15)
  1399. ButtonLabel.Font = Enum.Font.SourceSansLight
  1400. ButtonLabel.Text = item
  1401. ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1402. ButtonLabel.TextScaled = true
  1403. ButtonLabel.TextSize = 14.000
  1404. ButtonLabel.TextWrapped = true
  1405.  
  1406. Item.MouseButton1Click:Connect(function()
  1407. ButtonClickEffect(Item)
  1408.  
  1409. DropdownEffect(ScrollingFrame, navigate_next, "TextButton", false, -90, 0)
  1410.  
  1411. Container.Size = UDim2.new(0, 296, 0, 50)
  1412. navigate_next.Position = UDim2.new(0.086, 0, 0.5, 0)
  1413. TextLabel.Position = UDim2.new(0.643, 0, 0.5, 0)
  1414. ContainerIcon.Position = UDim2.new(0.06, 0, 0.5, 0)
  1415. ContainerLabel.Position = UDim2.new(0.305, 0, 0.5, 0)
  1416. Dropdown.Size = UDim2.new(0, 140, 0, 20)
  1417. Dropdown.Position = UDim2.new(0.748, 0, 0.275, 0)
  1418. ScrollingFrame.Visible = false
  1419.  
  1420. TextLabel.Text = "Selected: "..(item)
  1421.  
  1422. callback(item)
  1423. end)
  1424. end
  1425. navigate_next.MouseButton1Click:Connect(function()
  1426. visible = not visible
  1427.  
  1428. DropdownEffect(ScrollingFrame, navigate_next, "TextButton", visible, -90, 0)
  1429.  
  1430. Container.Size = (visible == true) and UDim2.new(0, 296, 0, 122) or UDim2.new(0, 296, 0, 50)
  1431. navigate_next.Position = (visible == true) and UDim2.new(0.086, 0, 0.08, 0) or UDim2.new(0.086, 0, 0.5, 0)
  1432. TextLabel.Position = (visible == true) and UDim2.new(0.643, 0, 0.08, 0) or UDim2.new(0.643, 0, 0.5, 0)
  1433. ContainerIcon.Position = (visible == true) and UDim2.new(0.06, 0, 0.205, 0) or UDim2.new(0.06, 0, 0.5, 0)
  1434. ContainerLabel.Position = (visible == true) and UDim2.new(0.305, 0, 0.205, 0) or UDim2.new(0.305, 0, 0.5, 0)
  1435. Dropdown.Size = UDim2.new(0, 140, 0, 20)
  1436. Dropdown.Position = (visible == true) and UDim2.new(0.748, 0, 0.5, 0) or UDim2.new(0.748, 0, 0.275, 0)
  1437. ScrollingFrame.Visible = visible
  1438. end)
  1439. end
  1440. return l4
  1441. end
  1442. function l3:SetIcon(imageId)
  1443. tab.Image = imageId
  1444. tab.ImageRectOffset = Vector2.new(0, 0)
  1445. tab.ImageRectSize = Vector2.new(0, 0)
  1446. end
  1447.  
  1448. return l3
  1449. end
  1450.  
  1451.  
  1452. -- Settings
  1453. local settingsTab = l2:AddTab("Settings")
  1454. local settingsSection = settingsTab:AddSection("Settings")
  1455.  
  1456. settingsTab:SetIcon("rbxassetid://7072721682")
  1457.  
  1458. settingsSection:AddInput("Scale", "Changes library scale.", function(v)
  1459. if tonumber(v) then
  1460. v = math.clamp(v, 0.5, 2)
  1461. UIScale.Scale = v
  1462. end
  1463. end)
  1464. settingsSection:AddSlider("Background Texture Speed", "Changes the background texture speed 0 - 1.", 0, 1, function(v)
  1465. textureSpeed = v
  1466. end)
  1467. settingsSection:AddToggle("Draggable", "", function(v)
  1468. Menu.Draggable = v
  1469. end)
  1470.  
  1471.  
  1472. -- Call Local Functions
  1473. setDraggable()
  1474. backgroundAnimation()
  1475.  
  1476. -- Exit, Maximize and Minimize
  1477. Exit.MouseButton1Click:Connect(function()
  1478. onExit()
  1479. end)
  1480. Maximize.MouseButton1Click:Connect(function()
  1481. onMaximize()
  1482. end)
  1483. Minimize.MouseButton1Click:Connect(function()
  1484. onMinimize()
  1485. end)
  1486.  
  1487. -- Exit, Maximize and Minimize Mouse Highlight
  1488. for _, button in pairs(Menu:GetChildren()) do
  1489. if button:IsA("ImageButton") then
  1490. button.MouseEnter:Connect(function()
  1491. onEnterHighlight(button)
  1492. end)
  1493. button.MouseLeave:Connect(function()
  1494. onLeaveHighlight(button)
  1495. end)
  1496. end
  1497. end
  1498.  
  1499. return l2
  1500. end
  1501.  
  1502. return library
Add Comment
Please, Sign In to add comment