joefromsansnite

Untitled

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