joefromsansnite

Untitled

Oct 18th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.02 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.  
  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(1000, 0, 1000, 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*.05
  256.  
  257. if Pattern.Position.X.Scale >= 10 or Pattern.Position.Y.Scale >= 10 then
  258. distance = -10
  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.  
  333.  
  334. local l2 = {}
  335.  
  336. function l2:Prompt(args)
  337. if player.PlayerGui:FindFirstChild("LIB_Prompt") then
  338. return
  339. end
  340. local title, text, duration = "Title", "Text.", 3
  341.  
  342. title = (args.Title == nil) and title or args.Title
  343. text = (args.Text == nil) and text or args.Text
  344. duration = (args.Duration == nil) and duration or args.Duration
  345.  
  346. local Prompt = Instance.new("ScreenGui")
  347. local BlackBackground = Instance.new("Frame")
  348. local Menu = Instance.new("Frame")
  349. local Title = Instance.new("TextLabel")
  350. local Background = Instance.new("Frame")
  351. local Description = Instance.new("TextLabel")
  352. local OkayButton = Instance.new("TextButton")
  353. local UICorner = Instance.new("UICorner")
  354. local Frame = Instance.new("Frame")
  355. local UICorner_2 = Instance.new("UICorner")
  356. local UIStroke = Instance.new("UIStroke")
  357.  
  358. Prompt.Name = "LIB_Prompt"
  359. Prompt.Parent = player.PlayerGui
  360. Prompt.Enabled = true
  361. Prompt.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  362.  
  363. BlackBackground.Name = "BlackBackground"
  364. BlackBackground.Parent = Prompt
  365. BlackBackground.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  366. BlackBackground.BackgroundTransparency = 0.500
  367. BlackBackground.BorderSizePixel = 0
  368. BlackBackground.Size = UDim2.new(10, 0, 10, 0)
  369. BlackBackground.ZIndex = -999999999
  370.  
  371. Menu.Name = "Menu"
  372. Menu.Parent = Prompt
  373. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  374. Menu.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  375. Menu.BorderSizePixel = 0
  376. Menu.Position = UDim2.new(0.5, 0, 2, 0)
  377. Menu.Size = UDim2.new(0, 350, 0, 15)
  378.  
  379. Title.Name = "Title"
  380. Title.Parent = Menu
  381. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  382. Title.BackgroundTransparency = 1.000
  383. Title.Position = UDim2.new(0.00303951371, 0, 0, 0)
  384. Title.Size = UDim2.new(0, 350, 0, 15)
  385. Title.Font = Enum.Font.SourceSansBold
  386. Title.Text = title
  387. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  388. Title.TextScaled = true
  389. Title.TextSize = 14.000
  390. Title.TextWrapped = true
  391.  
  392. Background.Name = "Background"
  393. Background.Parent = Menu
  394. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  395. Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  396. Background.BorderSizePixel = 0
  397. Background.ClipsDescendants = true
  398. Background.Position = UDim2.new(0.500805378, 0, 8.26666641, 0)
  399. Background.Size = UDim2.new(0, 350, 0, 218)
  400.  
  401. Description.Name = "Description"
  402. Description.Parent = Background
  403. Description.AnchorPoint = Vector2.new(0.5, 0.5)
  404. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  405. Description.BackgroundTransparency = 1.000
  406. Description.ClipsDescendants = true
  407. Description.Position = UDim2.new(0.5, 0, 0.389999986, 0)
  408. Description.Size = UDim2.new(0, 324, 0, 151)
  409. Description.Font = Enum.Font.SourceSansLight
  410. Description.Text = text
  411. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  412. Description.TextSize = 14.000
  413. Description.TextWrapped = true
  414. Description.TextYAlignment = Enum.TextYAlignment.Top
  415.  
  416. OkayButton.Name = "OkayButton"
  417. OkayButton.Parent = Background
  418. OkayButton.AnchorPoint = Vector2.new(0.5, 0.5)
  419. OkayButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  420. OkayButton.Position = UDim2.new(0.5, 0, 0.819000006, 0)
  421. OkayButton.Size = UDim2.new(0, 200, 0, 35)
  422. OkayButton.Font = Enum.Font.SourceSansLight
  423. OkayButton.Text = "Okay"
  424. OkayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  425. OkayButton.TextSize = 20.000
  426. OkayButton.TextWrapped = true
  427. OkayButton.AutoButtonColor = false
  428.  
  429. UICorner.Parent = OkayButton
  430.  
  431. Frame.Parent = OkayButton
  432. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  433. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  434. Frame.BackgroundTransparency = 1.000
  435. Frame.Position = UDim2.new(0.509506047, 0, 0.461233079, 0)
  436. Frame.Size = UDim2.new(0, 200, 0, 35)
  437.  
  438. UICorner_2.Parent = Frame
  439.  
  440. UIStroke.Parent = Frame
  441. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  442.  
  443. task.spawn(function()
  444. task.wait(duration)
  445. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  446. Prompt:Destroy()
  447. end)
  448. end)
  449.  
  450. Menu:TweenPosition(UDim2.new(0.5, 0, 0.35, 0))
  451.  
  452. OkayButton.MouseButton1Click:Connect(function()
  453. ButtonClickEffect(Frame)
  454. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  455. Prompt:Destroy()
  456. end)
  457. end)
  458. end
  459.  
  460. local function CreateContainer(parent, text, description)
  461. local Container = Instance.new("Frame")
  462. local Label = Instance.new("TextLabel")
  463. local Info = Instance.new("ImageLabel")
  464. local InfoMain = Instance.new("TextButton")
  465.  
  466. Container.Name = "Container"
  467. Container.Parent = parent
  468. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  469. Container.BackgroundTransparency = 1.000
  470. Container.Size = UDim2.new(0, 296, 0, 50)
  471. Container.AutomaticSize = Enum.AutomaticSize.Y
  472.  
  473. Label.Name = "Label"
  474. Label.Parent = Container
  475. Label.AnchorPoint = Vector2.new(0.5, 0.5)
  476. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  477. Label.BackgroundTransparency = 1.000
  478. Label.Position = UDim2.new(0.305000007, 0, 0.5, 0)
  479. Label.Size = UDim2.new(0, 110, 0, 25)
  480. Label.Font = Enum.Font.SourceSansBold
  481. Label.Text = text
  482. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  483. Label.TextScaled = true
  484. Label.TextSize = 25.000
  485. Label.TextWrapped = true
  486. Label.TextXAlignment = Enum.TextXAlignment.Left
  487.  
  488. Info.Name = "Info"
  489. Info.Parent = Container
  490. Info.AnchorPoint = Vector2.new(0.5, 0.5)
  491. Info.BackgroundTransparency = 1.000
  492. Info.Position = UDim2.new(0.0599999987, 0, 0.5, 0)
  493. Info.Size = UDim2.new(0, 20, 0, 20)
  494. Info.Image = "rbxassetid://7072717857"
  495. Info.ImageColor3 = Color3.fromRGB(200, 200, 200)
  496.  
  497. InfoMain.Name = "InfoMain"
  498. InfoMain.Parent = Info
  499. InfoMain.AnchorPoint = Vector2.new(0.5, 0.5)
  500. InfoMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  501. InfoMain.BackgroundTransparency = 1.000
  502. InfoMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  503. InfoMain.Size = UDim2.new(0, 15, 0, 15)
  504. InfoMain.AutoButtonColor = false
  505. InfoMain.Font = Enum.Font.SourceSans
  506. InfoMain.Text = ""
  507. InfoMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  508. InfoMain.TextSize = 14.000
  509.  
  510. Info.MouseEnter:Connect(function()
  511. onEnterHighlight(Info)
  512. end)
  513. Info.MouseLeave:Connect(function()
  514. onLeaveHighlight(Info)
  515. end)
  516. InfoMain.MouseButton1Click:Connect(function()
  517. l2:Prompt({
  518. Title = text,
  519. Text = description,
  520. Duration = 8
  521. })
  522. end)
  523. return Container
  524. end
  525.  
  526. function l2:AddTab(text, tabImage)
  527. -- Set Variables
  528. tabImage = (tabImage == nil) and "rbxassetid://3926305904" or tabImage
  529. text = (type(text) ~= "string") and "Tab" or text
  530.  
  531. pages += 1
  532.  
  533.  
  534. -- Gui
  535. local Tab = Instance.new("TextButton")
  536. local TabLabel = Instance.new("TextLabel")
  537. local tab = Instance.new("ImageLabel")
  538. local Seperator = Instance.new("Frame")
  539. local Page = Instance.new("ScrollingFrame")
  540. local UIListLayout = Instance.new("UIListLayout")
  541. local SectionOffset = Instance.new("Frame")
  542. local Highlight = Instance.new("ImageLabel")
  543.  
  544. Tab.Name = "Tab"
  545. Tab.Parent = Tabs
  546. Tab.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  547. Tab.BorderSizePixel = 0
  548. Tab.Size = UDim2.new(0, 150, 0, 40)
  549. Tab.Font = Enum.Font.SourceSansLight
  550. Tab.Text = ""
  551. Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  552. Tab.TextSize = 14.000
  553. Tab.TextWrapped = true
  554. Tab.AutoButtonColor = false
  555.  
  556. TabLabel.Name = "TabLabel"
  557. TabLabel.Parent = Tab
  558. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  559. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  560. TabLabel.BackgroundTransparency = 1.000
  561. TabLabel.Position = UDim2.new(0.6, 0, 0.5, 0)
  562. TabLabel.Size = UDim2.new(0, 100, 0, 18)
  563. TabLabel.Font = Enum.Font.SourceSansLight
  564. TabLabel.Text = text
  565. TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  566. TabLabel.TextSize = 14.000
  567. TabLabel.TextWrapped = true
  568. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  569. TabLabel.Font = Enum.Font.SourceSansSemibold
  570.  
  571. tab.Name = "tab"
  572. tab.Parent = Tab
  573. tab.AnchorPoint = Vector2.new(0.5, 0.5)
  574. tab.BackgroundTransparency = 1.000
  575. tab.Position = UDim2.new(0.15, 0, 0.5, 0)
  576. tab.Size = UDim2.new(0, 18, 0, 18)
  577. tab.ZIndex = 2
  578. tab.Image = tabImage
  579. tab.ImageRectOffset = Vector2.new(484, 484)
  580. tab.ImageRectSize = Vector2.new(36, 36)
  581. tab.ImageColor3 = Color3.fromRGB(200, 200, 200)
  582.  
  583. Seperator.Name = "Seperator"
  584. Seperator.Parent = Tab
  585. Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
  586. Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  587. Seperator.BackgroundTransparency = 1
  588. Seperator.BorderSizePixel = 0
  589. Seperator.Position = UDim2.new(0.5, 0, .99, 0)
  590. Seperator.Size = UDim2.new(0, 150, 0, 1)
  591. Seperator.ClipsDescendants = true
  592.  
  593. Highlight.Name = "Highlight"
  594. Highlight.Parent = Seperator
  595. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  596. Highlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  597. Highlight.BackgroundTransparency = 1.000
  598. Highlight.Position = UDim2.new(10, 0, 10, 0)
  599. Highlight.Size = UDim2.new(0, 125, 0, 125)
  600. Highlight.Image = "rbxassetid://1066722231"
  601. Highlight.ImageTransparency = 0.750
  602.  
  603. Page.Parent = Frames
  604. Page.Name = "Page"..(pages)
  605. Page.Active = true
  606. Page.AnchorPoint = Vector2.new(0.5, 0.5)
  607. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  608. Page.BackgroundTransparency = 1.000
  609. Page.BorderSizePixel = 0
  610. Page.Position = UDim2.new(-10.500741839, 0, 0.5, 0)
  611. Page.Size = UDim2.new(0, 337, 0, 270)
  612. Page.ScrollBarThickness = 8
  613. Page.CanvasSize = UDim2.new(0, 0, 0.5, 0)
  614. Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
  615. Page.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  616. Page.ElasticBehavior = Enum.ElasticBehavior.Always
  617.  
  618. UIListLayout.Parent = Page
  619. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  620. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  621. UIListLayout.Padding = UDim.new(0, 25)
  622.  
  623. SectionOffset.Name = "SectionOffset"
  624. SectionOffset.Parent = Page
  625. SectionOffset.BackgroundTransparency = 1.000
  626. SectionOffset.Position = UDim2.new(0, 0, 0, 0)
  627.  
  628.  
  629. -- Functions
  630. -- Set CanvasSize
  631. runService.RenderStepped:Connect(function() -- AutomaticCanvasSize Broken
  632. Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y)
  633. end)
  634.  
  635. -- Mouse Highlight Effect
  636. mouse.Move:Connect(function()
  637. local mousePosition = userInputService:GetMouseLocation()
  638.  
  639. Highlight.Position = UDim2.new(0, mousePosition.X - Seperator.AbsolutePosition.X, 0, mousePosition.Y - Seperator.AbsolutePosition.Y)
  640. end)
  641.  
  642. -- Jump To Page
  643. Tab.MouseButton1Click:Connect(function()
  644. ButtonClickEffect(Tab)
  645.  
  646. local pageName = Page.Name
  647. local pageIndex = string.gsub(pageName, "%D", "")
  648.  
  649. UIPageLayout:JumpToIndex(pageIndex-1)
  650. end)
  651.  
  652. -- Tab Highlight
  653. Tab.MouseEnter:Connect(function()
  654. onEnterHighlight(tab)
  655. end)
  656. Tab.MouseLeave:Connect(function()
  657. onLeaveHighlight(tab)
  658. end)
  659.  
  660.  
  661. -- Section
  662. local l3 = {}
  663.  
  664. function l3:AddSection(text)
  665. text = (type(text) ~= "string") and "Section" or text
  666.  
  667. local Section = Instance.new("Frame")
  668. local SectionLabel = Instance.new("TextLabel")
  669. local UIListLayout_3 = Instance.new("UIListLayout")
  670. local UIStroke = Instance.new("UIStroke")
  671.  
  672. Section.Name = "Section"
  673. Section.Parent = Page
  674. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  675. Section.BackgroundTransparency = 1.000
  676. Section.Position = UDim2.new(0.0608308613, 0, 0.0944444463, 0)
  677. Section.Size = UDim2.new(0, 296, 0, 50)
  678. Section.AutomaticSize = Enum.AutomaticSize.Y
  679.  
  680. UIStroke.Parent = Section
  681. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  682.  
  683. SectionLabel.Name = "Section"
  684. SectionLabel.Parent = Section
  685. SectionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  686. SectionLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  687. SectionLabel.BorderColor3 = Color3.fromRGB(25, 25, 25)
  688. SectionLabel.BorderSizePixel = 15
  689. SectionLabel.Position = UDim2.new(0, 0, 0, 0)
  690. SectionLabel.Size = UDim2.new(0, 0, 0, 0)
  691. SectionLabel.Font = Enum.Font.SourceSansBold
  692. SectionLabel.Text = text
  693. SectionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  694. SectionLabel.TextSize = 20
  695. SectionLabel.AutomaticSize = Enum.AutomaticSize.X
  696.  
  697. UIListLayout_3.Parent = Section
  698. UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
  699. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  700.  
  701. local l4 = {}
  702.  
  703. function l4:AddButton(text, description, callback)
  704. -- Set Variables
  705. text = (type(text) ~= "string") and "Button" or text
  706. description = (type(description) ~= "string") and "Description." or description
  707. callback = (type(callback) ~= "function") and function()
  708. print("Clicked!")
  709. end or callback
  710.  
  711.  
  712. -- Gui
  713. local Button = Instance.new("TextButton")
  714. local UICorner = Instance.new("UICorner")
  715. local UIStroke = Instance.new("UIStroke")
  716. local Frame = Instance.new("Frame")
  717. local UICorner_2 = Instance.new("UICorner")
  718. local Icon = Instance.new("ImageLabel")
  719. local Container = CreateContainer(Section, text, description)
  720.  
  721. Button.Name = "Button"
  722. Button.Parent = Container
  723. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  724. Button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  725. Button.BackgroundTransparency = 1
  726. Button.Position = UDim2.new(0.731304467, 0, 0.5, 0)
  727. Button.Size = UDim2.new(0, 144, 0, 32)
  728. Button.Font = Enum.Font.SourceSansLight
  729. Button.Text = ""
  730. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  731. Button.TextSize = 20.000
  732. Button.TextWrapped = true
  733. Button.AutoButtonColor = false
  734.  
  735. UICorner.Parent = Button
  736.  
  737. Frame.Parent = Button
  738. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  739. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  740. Frame.BackgroundTransparency = 1.000
  741. Frame.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  742. Frame.Size = UDim2.new(0, 144, 0, 32)
  743.  
  744. UICorner_2.Parent = Frame
  745.  
  746. UIStroke.Parent = Frame
  747. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  748.  
  749. Icon.Name = "Icon"
  750. Icon.Parent = Button
  751. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  752. Icon.BackgroundTransparency = 1.000
  753. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  754. Icon.Size = UDim2.new(0, 20, 0, 20)
  755. Icon.Image = "rbxassetid://7072719587"
  756. Icon.ImageColor3 = Color3.fromRGB(200, 200, 200)
  757.  
  758. -- Functions
  759. Button.MouseButton1Click:Connect(function()
  760. ButtonClickEffect(Frame)
  761. callback()
  762. end)
  763.  
  764. Button.MouseEnter:Connect(function()
  765. onEnterHighlight(Icon)
  766. end)
  767. Button.MouseLeave:Connect(function()
  768. onLeaveHighlight(Icon)
  769. end)
  770. end
  771. function l4:AddInput(text, description, callback)
  772. -- Set Variables
  773. text = (type(text) ~= "string") and "Input" or text
  774. description = (type(description) ~= "string") and "Description." or description
  775. callback = (type(callback) ~= "function") and function()
  776. print("Lost Focus!")
  777. end or callback
  778.  
  779.  
  780. -- Gui
  781. local Input = Instance.new("TextBox")
  782. local UICorner = Instance.new("UICorner")
  783. local UIStroke = Instance.new("UIStroke")
  784. local Outline = Instance.new("Frame")
  785. local UICorner_2 = Instance.new("UICorner")
  786. local Clipboard = Instance.new("ImageButton")
  787. local Container = CreateContainer(Section, text, description)
  788.  
  789. Input.Name = "Input"
  790. Input.Parent = Container
  791. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  792. Input.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  793. Input.Position = UDim2.new(0.731000006, 0, 0.5, 0)
  794. Input.Size = UDim2.new(0, 144, 0, 32)
  795. Input.ClearTextOnFocus = false
  796. Input.Font = Enum.Font.SourceSansLight
  797. Input.PlaceholderColor3 = Color3.fromRGB(200, 200, 200)
  798. Input.PlaceholderText = "Input"
  799. Input.Text = ""
  800. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  801. Input.TextSize = 14.000
  802. Input.TextWrapped = true
  803.  
  804. UICorner.Parent = Input
  805.  
  806. Outline.Parent = Input
  807. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  808. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  809. Outline.BackgroundTransparency = 1.000
  810. Outline.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  811. Outline.Size = UDim2.new(0, 144, 0, 32)
  812.  
  813. UICorner_2.Parent = Outline
  814.  
  815. UIStroke.Parent = Outline
  816. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  817.  
  818. Clipboard.Name = "Clipboard"
  819. Clipboard.Parent = Input
  820. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  821. Clipboard.BackgroundTransparency = 1.000
  822. Clipboard.Position = UDim2.new(0.925000012, 0, 0.409999996, 0)
  823. Clipboard.Size = UDim2.new(0, 17, 0, 17)
  824. Clipboard.Image = "rbxassetid://7072707198"
  825. Clipboard.ImageColor3 = Color3.fromRGB(200, 200, 200)
  826.  
  827. -- Functions
  828. Input.FocusLost:Connect(function()
  829. callback(Input.Text)
  830. end)
  831.  
  832. Clipboard.MouseEnter:Connect(function()
  833. onEnterHighlight(Clipboard)
  834. end)
  835. Clipboard.MouseLeave:Connect(function()
  836. onLeaveHighlight(Clipboard)
  837. end)
  838.  
  839. Clipboard.MouseButton1Click:Connect(function()
  840. if runService:IsStudio() then
  841. print("Copied: "..(Input.Text))
  842. return
  843. end
  844. setclipboard(Input.Text)
  845. end)
  846. end
  847. function l4:AddSlider(text, description, min, max, callback)
  848. -- Set Variables
  849. text = (type(text) ~= "string") and "Slider" or text
  850. description = (type(description) ~= "string") and "Description." or description
  851. min = (type(min) ~= "number") and 0 or min
  852. max = (type(max) ~= "number") and 10 or max
  853. callback = (type(callback) ~= "function") and function()
  854. print("Moved Slider!")
  855. end or callback
  856.  
  857. -- Variables
  858. local holding = false
  859. local selecting = false
  860.  
  861.  
  862. -- Gui
  863. local Slider = Instance.new("Frame")
  864. local UICorner = Instance.new("UICorner")
  865. local UIStroke = Instance.new("UIStroke")
  866. local Fill = Instance.new("Frame")
  867. local UICorner_2 = Instance.new("UICorner")
  868. local ValueLabel = Instance.new("TextLabel")
  869. local FillButton = Instance.new("Frame")
  870. local UICorner_3 = Instance.new("UICorner")
  871. local Container = CreateContainer(Section, text, description)
  872. local TransparentFillButton = Instance.new("TextButton")
  873.  
  874. Slider.Name = "Slider"
  875. Slider.Parent = Container
  876. Slider.AnchorPoint = Vector2.new(0.5, 0.5)
  877. Slider.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
  878. Slider.BackgroundTransparency = 1.000
  879. Slider.Position = UDim2.new(0.735, 0, 0.5, 0)
  880. Slider.Size = UDim2.new(0, 140, 0, 2)
  881.  
  882. UICorner.Parent = Slider
  883.  
  884. UIStroke.Parent = Slider
  885. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  886.  
  887. Fill.Name = "Fill"
  888. Fill.Parent = Slider
  889. Fill.AnchorPoint = Vector2.new(0.5, 0.5)
  890. Fill.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
  891. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  892. Fill.Size = UDim2.new(0, 1, 0, 4)
  893.  
  894. UICorner_2.Parent = Fill
  895.  
  896. ValueLabel.Name = "ValueLabel"
  897. ValueLabel.Parent = Slider
  898. ValueLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  899. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  900. ValueLabel.BackgroundTransparency = 1.000
  901. ValueLabel.Position = UDim2.new(0.5, 0, 8, 0)
  902. ValueLabel.Size = UDim2.new(0, 158, 0, 14)
  903. ValueLabel.Font = Enum.Font.SourceSansLight
  904. ValueLabel.Text = min
  905. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  906. ValueLabel.TextSize = 14.000
  907.  
  908. FillButton.Name = "FillButton"
  909. FillButton.Parent = Slider
  910. FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  911. FillButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
  912. FillButton.Position = UDim2.new(0, 0, 0.5, 0)
  913. FillButton.Size = UDim2.new(0, 8, 0, 16)
  914.  
  915. TransparentFillButton.Name = "TransparentFillButton"
  916. TransparentFillButton.Parent = Slider
  917. TransparentFillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  918. TransparentFillButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  919. TransparentFillButton.BackgroundTransparency = 1.000
  920. TransparentFillButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  921. TransparentFillButton.Size = UDim2.new(0, 140, 0, 16)
  922. TransparentFillButton.Font = Enum.Font.SourceSans
  923. TransparentFillButton.Text = ""
  924. TransparentFillButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  925. TransparentFillButton.TextSize = 14.000
  926.  
  927. UICorner_3.Parent = FillButton
  928.  
  929. TransparentFillButton.MouseButton1Down:Connect(function()
  930. holding = true
  931. end)
  932. TransparentFillButton.MouseButton1Up:Connect(function()
  933. holding = false
  934. end)
  935.  
  936. TransparentFillButton.MouseEnter:Connect(function()
  937. selecting = true
  938. end)
  939. TransparentFillButton.MouseLeave:Connect(function()
  940. selecting = false
  941. end)
  942.  
  943. runService.RenderStepped:Connect(function()
  944. FillButton.BackgroundColor3 = (selecting == true) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(0, 150, 255)
  945.  
  946. if holding then
  947. local mouseLocation = userInputService:GetMouseLocation()
  948. local xPos = (mouseLocation.X-Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
  949.  
  950. xPos = math.clamp(xPos, 0, 1)
  951.  
  952. local value = min + (xPos * (max-min))
  953.  
  954. ValueLabel.Text = tostring(math.round(value))
  955.  
  956. Fill.Size = UDim2.new(xPos, 0, 0, 6)
  957. Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
  958. FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
  959.  
  960. callback(value)
  961. end
  962. end)
  963. end
  964. function l4:AddToggle(text, description, callback)
  965. -- Set Variables
  966. text = (type(text) ~= "string") and "Toggle" or text
  967. description = (type(description) ~= "string") and "Description." or description
  968. callback = (type(callback) ~= "function") and function()
  969. print("Toggled!")
  970. end or callback
  971.  
  972.  
  973. -- Variables
  974. local toggled = false
  975. local debounce = false
  976.  
  977.  
  978. -- Gui
  979. local Toggle = Instance.new("Frame")
  980. local UICorner = Instance.new("UICorner")
  981. local UIStroke = Instance.new("UIStroke")
  982. local ToggleButton = Instance.new("TextButton")
  983. local UICorner_2 = Instance.new("UICorner")
  984. local Container = CreateContainer(Section, text, description)
  985.  
  986. Toggle.Name = "Toggle"
  987. Toggle.Parent = Container
  988. Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  989. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  990. Toggle.BackgroundTransparency = 1.000
  991. Toggle.Position = UDim2.new(0.879, 0, 0.5, 0)
  992. Toggle.Size = UDim2.new(0, 42, 0, 21)
  993.  
  994. UICorner.CornerRadius = UDim.new(1, 0)
  995. UICorner.Parent = Toggle
  996.  
  997. UIStroke.Parent = Toggle
  998. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  999.  
  1000. ToggleButton.Name = "ToggleButton"
  1001. ToggleButton.Parent = Toggle
  1002. ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1003. ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1004. ToggleButton.Position = UDim2.new(0.27, 0, 0.5, 0)
  1005. ToggleButton.Size = UDim2.new(0, 18, 0, 18)
  1006. ToggleButton.ZIndex = 1
  1007. ToggleButton.AutoButtonColor = false
  1008. ToggleButton.Font = Enum.Font.SourceSans
  1009. ToggleButton.Text = ""
  1010. ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1011. ToggleButton.TextSize = 14.000
  1012.  
  1013. UICorner_2.CornerRadius = UDim.new(1, 0)
  1014. UICorner_2.Parent = ToggleButton
  1015.  
  1016.  
  1017. -- Functions
  1018. ToggleButton.MouseButton1Click:Connect(function()
  1019. if debounce == false then
  1020. debounce = true
  1021.  
  1022. toggled = not toggled
  1023.  
  1024. local pos = (toggled == true) and UDim2.new(0.74, 0, 0.5, 0) or UDim2.new(0.27, 0, 0.5, 0)
  1025. local properties = (toggled == true) and {
  1026. BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  1027. } or {
  1028. BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1029. }
  1030.  
  1031. local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1032. local tween = tweenService:Create(ToggleButton, info, properties)
  1033.  
  1034. ToggleButton:TweenPosition(pos, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.75, false)
  1035. tween:Play()
  1036.  
  1037. callback(toggled)
  1038.  
  1039. task.wait(1)
  1040. debounce = false
  1041. end
  1042. end)
  1043. end
  1044. function l4:AddColorPicker(text, description, callback)
  1045. -- Set Variables
  1046. text = (type(text) ~= "string") and "Color Picker" or text
  1047. description = (type(description) ~= "string") and "Description." or description
  1048. callback = (type(callback) ~= "function") and function()
  1049. print("Picked Color!")
  1050. end or callback
  1051.  
  1052.  
  1053. -- Variables
  1054. local color = Color3.fromHSV(1, 1, 1)
  1055.  
  1056. local holdingHS = false
  1057. local holdingV = false
  1058.  
  1059.  
  1060. -- Gui
  1061. local ColorPicker = Instance.new("Frame")
  1062. local ColorPickerMain = Instance.new("ImageLabel")
  1063. local ColorPickerSelection = Instance.new("TextButton")
  1064. local ValueSelection = Instance.new("TextButton")
  1065. local ValuePickerMain = Instance.new("ImageLabel")
  1066. local CursorHS = Instance.new("ImageLabel")
  1067. local CursorV = Instance.new("ImageLabel")
  1068. local UIStroke = Instance.new("UIStroke")
  1069. local UIStroke_2 = Instance.new("UIStroke")
  1070. local UICorner = Instance.new("UICorner")
  1071. local UICorner_2 = Instance.new("UICorner")
  1072. local UIGradient = Instance.new("UIGradient")
  1073. local ColorValues = Instance.new("Frame")
  1074. local UIListLayout = Instance.new("UIListLayout")
  1075. local HSVLabel = Instance.new("TextLabel")
  1076. local RGBLabel = Instance.new("TextLabel")
  1077. local HEXLabel = Instance.new("TextLabel")
  1078. local Container = CreateContainer(Section, text, description)
  1079.  
  1080. ColorPicker.Name = "ColorPicker"
  1081. ColorPicker.Parent = Container
  1082. ColorPicker.AnchorPoint = Vector2.new(0.5, 0.5)
  1083. ColorPicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1084. ColorPicker.BackgroundTransparency = 1.000
  1085. ColorPicker.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1086. ColorPicker.Position = UDim2.new(0.75, 0, 1.05, 0)
  1087. ColorPicker.Size = UDim2.new(0, 130, 0, 80)
  1088.  
  1089. ColorPickerMain.Name = "ColorPickerMain"
  1090. ColorPickerMain.Parent = ColorPicker
  1091. ColorPickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1092. ColorPickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1093. ColorPickerMain.BorderSizePixel = 0
  1094. ColorPickerMain.Position = UDim2.new(0.414, 0, 0.5, 0)
  1095. ColorPickerMain.Size = UDim2.new(0, 100, 0, 75)
  1096. ColorPickerMain.Image = "rbxassetid://6320992248"
  1097.  
  1098. ColorPickerSelection.Parent = ColorPickerMain
  1099. ColorPickerSelection.BackgroundTransparency = 1
  1100. ColorPickerSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1101. ColorPickerSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1102. ColorPickerSelection.Size = UDim2.new(0, 140, 0, 80)
  1103. ColorPickerSelection.Text = ""
  1104.  
  1105. ValuePickerMain.Name = "ValuePickerMain"
  1106. ValuePickerMain.Parent = ColorPicker
  1107. ValuePickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1108. ValuePickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1109. ValuePickerMain.BorderSizePixel = 0
  1110. ValuePickerMain.LayoutOrder = 132
  1111. ValuePickerMain.Position = UDim2.new(0.957216084, 0, 0.5, 0)
  1112. ValuePickerMain.Size = UDim2.new(0, 15, 0, 75)
  1113.  
  1114. ValueSelection.Parent = ValuePickerMain
  1115. ValueSelection.BackgroundTransparency = 1
  1116. ValueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1117. ValueSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1118. ValueSelection.Size = UDim2.new(0, 15, 0, 80)
  1119. ValueSelection.Text = ""
  1120.  
  1121. UICorner_2.CornerRadius = UDim.new(0, 4)
  1122. UICorner_2.Parent = ValuePickerMain
  1123.  
  1124. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
  1125. UIGradient.Rotation = 90
  1126. UIGradient.Parent = ValuePickerMain
  1127.  
  1128. UIStroke_2.Parent = ValuePickerMain
  1129. UIStroke_2.Color = Color3.fromRGB(200, 200, 200)
  1130.  
  1131. CursorHS.Parent = ColorPickerMain
  1132. CursorHS.AnchorPoint = Vector2.new(0.5, 0.5)
  1133. CursorHS.Position = UDim2.new(0.5, 0, 0.5, 0)
  1134. CursorHS.Size = UDim2.new(0, 12, 0, 12)
  1135. CursorHS.BackgroundTransparency = 1
  1136. CursorHS.Image = "rbxassetid://7072707153"
  1137. CursorHS.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1138.  
  1139. CursorV.Parent = ValuePickerMain
  1140. CursorV.AnchorPoint = Vector2.new(0.5, 0.5)
  1141. CursorV.Position = UDim2.new(0.5, 0, 0.5, 0)
  1142. CursorV.Size = UDim2.new(0, 12, 0, 12)
  1143. CursorV.BackgroundTransparency = 1
  1144. CursorV.Image = "rbxassetid://7072707153"
  1145. CursorV.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1146.  
  1147. UICorner.CornerRadius = UDim.new(0, 4)
  1148. UICorner.Parent = ColorPickerMain
  1149.  
  1150. UIStroke.Parent = ColorPickerMain
  1151. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1152.  
  1153. ColorValues.Name = "ColorValues"
  1154. ColorValues.Parent = ColorPicker
  1155. ColorValues.AnchorPoint = Vector2.new(0.5, 0.5)
  1156. ColorValues.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1157. ColorValues.BackgroundTransparency = 1.000
  1158. ColorValues.Position = UDim2.new(-0.527472556, 0, 0.634970188, 0)
  1159. ColorValues.Size = UDim2.new(0, 115, 0, 56)
  1160.  
  1161. UIListLayout.Parent = ColorValues
  1162. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1163.  
  1164. HSVLabel.Name = "HSVLabel"
  1165. HSVLabel.Parent = ColorValues
  1166. HSVLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1167. HSVLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1168. HSVLabel.BackgroundTransparency = 1.000
  1169. HSVLabel.Position = UDim2.new(-0.515512824, 0, 0.857142866, 0)
  1170. HSVLabel.Size = UDim2.new(0, 110, 0, 18)
  1171. HSVLabel.Font = Enum.Font.SourceSansLight
  1172. HSVLabel.Text = "HSV: 360, 255, 255"
  1173. HSVLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1174. HSVLabel.TextScaled = true
  1175. HSVLabel.TextSize = 18.000
  1176. HSVLabel.TextWrapped = true
  1177. HSVLabel.TextXAlignment = Enum.TextXAlignment.Left
  1178.  
  1179. RGBLabel.Name = "RGBLabel"
  1180. RGBLabel.Parent = ColorValues
  1181. RGBLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1182. RGBLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1183. RGBLabel.BackgroundTransparency = 1.000
  1184. RGBLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
  1185. RGBLabel.Size = UDim2.new(0, 110, 0, 18)
  1186. RGBLabel.Font = Enum.Font.SourceSansLight
  1187. RGBLabel.Text = "RGB: 255, 255, 255"
  1188. RGBLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1189. RGBLabel.TextScaled = true
  1190. RGBLabel.TextSize = 18.000
  1191. RGBLabel.TextWrapped = true
  1192. RGBLabel.TextXAlignment = Enum.TextXAlignment.Left
  1193.  
  1194. HEXLabel.Name = "HEXLabel"
  1195. HEXLabel.Parent = ColorValues
  1196. HEXLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1197. HEXLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1198. HEXLabel.BackgroundTransparency = 1.000
  1199. HEXLabel.Position = UDim2.new(-0.515512824, 0, 0.547619045, 0)
  1200. HEXLabel.Size = UDim2.new(0, 110, 0, 18)
  1201. HEXLabel.Font = Enum.Font.SourceSansLight
  1202. HEXLabel.Text = "HEX: #FFFFFF"
  1203. HEXLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1204. HEXLabel.TextScaled = true
  1205. HEXLabel.TextSize = 18.000
  1206. HEXLabel.TextWrapped = true
  1207. HEXLabel.TextXAlignment = Enum.TextXAlignment.Left
  1208.  
  1209. ColorPickerSelection.MouseButton1Down:Connect(function()
  1210. holdingHS = true
  1211. end)
  1212. ColorPickerSelection.MouseButton1Up:Connect(function()
  1213. holdingHS = false
  1214. end)
  1215.  
  1216. ValueSelection.MouseButton1Down:Connect(function()
  1217. holdingV = true
  1218. end)
  1219. ValueSelection.MouseButton1Up:Connect(function()
  1220. holdingV = false
  1221. end)
  1222.  
  1223. runService.RenderStepped:Connect(function()
  1224. local mouseLocation = userInputService:GetMouseLocation()
  1225. local x, y = (mouseLocation.X - ColorPickerMain.AbsolutePosition.X)/ColorPickerMain.AbsoluteSize.X, (mouseLocation.Y - ColorPickerMain.AbsolutePosition.Y)/ColorPickerMain.AbsoluteSize.Y
  1226.  
  1227. if holdingHS and holdingV == false then
  1228. x = math.clamp(x, 0, 1)
  1229. y = math.clamp((y-.4), 0, 1)
  1230.  
  1231. CursorHS.Position = UDim2.new(x, 0, y, 0)
  1232.  
  1233. local h, s, v = Color3.toHSV(color)
  1234. local newColor = Color3.fromHSV(x, 1 - y, v)
  1235.  
  1236. color = newColor
  1237.  
  1238. callback(color)
  1239. end
  1240. if holdingV and holdingHS == false then
  1241. y = math.clamp((y-.4), 0, 1)
  1242.  
  1243. CursorV.Position = UDim2.new(0.5, 0, y, 0)
  1244.  
  1245. local h, s, v = Color3.toHSV(color)
  1246.  
  1247. local newColor = Color3.fromHSV(h, s, 1 - y)
  1248.  
  1249. color = newColor
  1250.  
  1251. callback(color)
  1252. end
  1253.  
  1254. local h, s, v = Color3.toHSV(color)
  1255. local r, g, b = color.R, color.G, color.B
  1256. local hex = string.format("#%02X%02X%02X", r*255, g*255, b*255)
  1257.  
  1258. h, s, v = math.floor(h * 10) / 10, math.floor(s * 10) / 10, math.floor(v * 10) / 10
  1259. r, g, b = math.floor(r * 10), math.floor(g * 10), math.floor(b * 10)
  1260.  
  1261. RGBLabel.Text = "RGB: "..(r*25)..", "..(g*25)..", "..(b*25)
  1262. HSVLabel.Text = "HSV: "..(h*360)..", "..(s*255)..", "..(v*255)
  1263. HEXLabel.Text = "HEX: "..(hex)
  1264. end)
  1265. end
  1266. return l4
  1267. end
  1268. function l3:SetIcon(imageId)
  1269. tab.Image = imageId
  1270. tab.ImageRectOffset = Vector2.new(0, 0)
  1271. tab.ImageRectSize = Vector2.new(0, 0)
  1272. end
  1273.  
  1274. return l3
  1275. end
  1276.  
  1277.  
  1278. -- Settings
  1279. local settingsTab = l2:AddTab("Settings")
  1280. local settingsSection = settingsTab:AddSection("Settings")
  1281.  
  1282. settingsTab:SetIcon("rbxassetid://7072721682")
  1283.  
  1284. settingsSection:AddInput("Scale", "Changes library scale.", function(v)
  1285. if tonumber(v) then
  1286. v = math.clamp(v, 0.5, 2)
  1287. UIScale.Scale = v
  1288. end
  1289. end)
  1290. settingsSection:AddToggle("Draggable", "", function(v)
  1291. Menu.Draggable = v
  1292. end)
  1293.  
  1294.  
  1295. -- Call Local Functions
  1296. setDraggable()
  1297. backgroundAnimation()
  1298.  
  1299. -- Exit, Maximize and Minimize
  1300. Exit.MouseButton1Click:Connect(function()
  1301. onExit()
  1302. end)
  1303. Maximize.MouseButton1Click:Connect(function()
  1304. onMaximize()
  1305. end)
  1306. Minimize.MouseButton1Click:Connect(function()
  1307. onMinimize()
  1308. end)
  1309.  
  1310. -- Exit, Maximize and Minimize Mouse Highlight
  1311. for _, button in pairs(Menu:GetChildren()) do
  1312. if button:IsA("ImageButton") then
  1313. button.MouseEnter:Connect(function()
  1314. onEnterHighlight(button)
  1315. end)
  1316. button.MouseLeave:Connect(function()
  1317. onLeaveHighlight(button)
  1318. end)
  1319. end
  1320. end
  1321.  
  1322. return l2
  1323. end
  1324.  
  1325. return library
Add Comment
Please, Sign In to add comment