joefromsansnite

Untitled

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